From e51daa869808c4c9ea402e70575b8fbc9d68cc47 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 25 Oct 2022 11:09:58 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#6918) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/928 --- .../accessapprovalpb/accessapproval.pb.go | 56 ++--- accessapproval/go.mod | 2 +- .../access_context_manager.pb.go | 22 +- .../accesscontextmanagerpb/access_level.pb.go | 14 +- .../access_policy.pb.go | 16 +- .../gcp_user_access_binding.pb.go | 2 +- .../service_perimeter.pb.go | 14 +- accesscontextmanager/go.mod | 2 +- .../apiv1/apigatewaypb/apigateway.pb.go | 54 ++--- .../apigatewaypb/apigateway_service.pb.go | 2 +- apigateway/go.mod | 2 +- .../apiv1/apigeeconnectpb/connection.pb.go | 2 +- .../apiv1/apigeeconnectpb/tether.pb.go | 34 +-- apigeeconnect/go.mod | 2 +- appengine/apiv1/appenginepb/app_yaml.pb.go | 42 ++-- appengine/apiv1/appenginepb/appengine.pb.go | 54 ++--- appengine/apiv1/appenginepb/application.pb.go | 10 +- appengine/apiv1/appenginepb/audit_data.pb.go | 2 +- appengine/apiv1/appenginepb/certificate.pb.go | 14 +- appengine/apiv1/appenginepb/deploy.pb.go | 22 +- .../apiv1/appenginepb/deployed_files.pb.go | 2 +- appengine/apiv1/appenginepb/domain.pb.go | 2 +- .../apiv1/appenginepb/domain_mapping.pb.go | 2 +- appengine/apiv1/appenginepb/firewall.pb.go | 2 +- appengine/apiv1/appenginepb/instance.pb.go | 10 +- appengine/apiv1/appenginepb/location.pb.go | 2 +- .../apiv1/appenginepb/network_settings.pb.go | 2 +- appengine/apiv1/appenginepb/operation.pb.go | 14 +- appengine/apiv1/appenginepb/service.pb.go | 2 +- appengine/apiv1/appenginepb/version.pb.go | 38 +-- appengine/go.mod | 2 +- .../artifactregistrypb/apt_artifact.pb.go | 2 +- .../apiv1/artifactregistrypb/artifact.pb.go | 14 +- .../apiv1/artifactregistrypb/file.pb.go | 26 +-- .../apiv1/artifactregistrypb/package.pb.go | 24 +- .../apiv1/artifactregistrypb/repository.pb.go | 22 +- .../apiv1/artifactregistrypb/service.pb.go | 16 +- .../apiv1/artifactregistrypb/settings.pb.go | 10 +- .../apiv1/artifactregistrypb/tag.pb.go | 24 +- .../apiv1/artifactregistrypb/version.pb.go | 36 +-- .../artifactregistrypb/yum_artifact.pb.go | 2 +- asset/apiv1/assetpb/asset_service.pb.go | 102 ++++---- asset/apiv1/assetpb/assets.pb.go | 42 ++-- .../assuredworkloadspb/assuredworkloads.pb.go | 72 +++--- .../apiv1/automlpb/annotation_payload.pb.go | 2 +- automl/apiv1/automlpb/annotation_spec.pb.go | 2 +- automl/apiv1/automlpb/classification.pb.go | 2 +- automl/apiv1/automlpb/data_items.pb.go | 2 +- automl/apiv1/automlpb/dataset.pb.go | 10 +- automl/apiv1/automlpb/detection.pb.go | 2 +- automl/apiv1/automlpb/geometry.pb.go | 2 +- automl/apiv1/automlpb/image.pb.go | 2 +- automl/apiv1/automlpb/io.pb.go | 2 +- automl/apiv1/automlpb/model.pb.go | 14 +- automl/apiv1/automlpb/model_evaluation.pb.go | 10 +- automl/apiv1/automlpb/operations.pb.go | 14 +- .../apiv1/automlpb/prediction_service.pb.go | 2 +- automl/apiv1/automlpb/service.pb.go | 14 +- automl/apiv1/automlpb/text.pb.go | 2 +- automl/apiv1/automlpb/text_extraction.pb.go | 2 +- automl/apiv1/automlpb/text_segment.pb.go | 2 +- automl/apiv1/automlpb/text_sentiment.pb.go | 2 +- automl/apiv1/automlpb/translation.pb.go | 2 +- .../baremetalsolution.pb.go | 14 +- .../apiv2/baremetalsolutionpb/instance.pb.go | 22 +- .../apiv2/baremetalsolutionpb/lun.pb.go | 2 +- .../apiv2/baremetalsolutionpb/network.pb.go | 10 +- .../apiv2/baremetalsolutionpb/nfs_share.pb.go | 10 +- .../apiv2/baremetalsolutionpb/volume.pb.go | 10 +- baremetalsolution/go.mod | 2 +- batch/apiv1/batchpb/batch.pb.go | 14 +- batch/apiv1/batchpb/job.pb.go | 22 +- batch/apiv1/batchpb/task.pb.go | 22 +- batch/apiv1/batchpb/volume.pb.go | 2 +- batch/go.mod | 2 +- .../app_connections_service.pb.go | 30 +-- .../app_connector_instance_config.pb.go | 10 +- .../app_connectors_service.pb.go | 30 +-- .../apiv1/appconnectorspb/resource_info.pb.go | 22 +- .../appgatewayspb/app_gateways_service.pb.go | 22 +- .../client_connector_services_service.pb.go | 30 +-- .../client_gateways_service.pb.go | 22 +- beyondcorp/go.mod | 2 +- billing/apiv1/billingpb/cloud_billing.pb.go | 10 +- billing/apiv1/billingpb/cloud_catalog.pb.go | 18 +- .../apiv1/budgetspb/budget_model.pb.go | 10 +- .../apiv1/budgetspb/budget_service.pb.go | 38 +-- .../binaryauthorizationpb/resources.pb.go | 14 +- .../apiv1/binaryauthorizationpb/service.pb.go | 16 +- .../certificate_issuance_config.pb.go | 22 +- .../certificate_manager.pb.go | 72 +++--- certificatemanager/go.mod | 2 +- .../channelpb/channel_partner_links.pb.go | 22 +- channel/apiv1/channelpb/common.pb.go | 10 +- channel/apiv1/channelpb/customers.pb.go | 14 +- channel/apiv1/channelpb/entitlements.pb.go | 26 +-- channel/apiv1/channelpb/offers.pb.go | 14 +- channel/apiv1/channelpb/operations.pb.go | 2 +- channel/apiv1/channelpb/products.pb.go | 2 +- channel/apiv1/channelpb/reports_service.pb.go | 14 +- channel/apiv1/channelpb/repricing.pb.go | 14 +- channel/apiv1/channelpb/service.pb.go | 48 ++-- .../apiv1/channelpb/subscriber_event.pb.go | 2 +- channel/go.mod | 2 +- .../apiv1/v2/cloudbuildpb/cloudbuild.pb.go | 108 ++++----- clouddms/apiv1/clouddmspb/clouddms.pb.go | 26 +-- .../apiv1/clouddmspb/clouddms_resources.pb.go | 68 +++--- clouddms/go.mod | 2 +- .../apiv2/cloudtaskspb/cloudtasks.pb.go | 34 +-- cloudtasks/apiv2/cloudtaskspb/queue.pb.go | 26 +-- cloudtasks/apiv2/cloudtaskspb/target.pb.go | 2 +- cloudtasks/apiv2/cloudtaskspb/task.pb.go | 46 ++-- .../contact_center_insights.pb.go | 142 ++++++------ .../contactcenterinsightspb/resources.pb.go | 110 ++++----- contactcenterinsights/go.mod | 2 +- .../apiv1/containerpb/cluster_service.pb.go | 66 +++--- container/go.mod | 2 +- .../apiv1/datacatalogpb/bigquery.pb.go | 2 +- datacatalog/apiv1/datacatalogpb/common.pb.go | 14 +- .../apiv1/datacatalogpb/data_source.pb.go | 2 +- .../apiv1/datacatalogpb/datacatalog.pb.go | 88 +++---- .../apiv1/datacatalogpb/dataplex_spec.pb.go | 2 +- .../datacatalogpb/gcs_fileset_spec.pb.go | 2 +- .../apiv1/datacatalogpb/physical_schema.pb.go | 2 +- .../datacatalogpb/policytagmanager.pb.go | 38 +-- .../policytagmanagerserialization.pb.go | 2 +- datacatalog/apiv1/datacatalogpb/schema.pb.go | 2 +- datacatalog/apiv1/datacatalogpb/search.pb.go | 16 +- .../apiv1/datacatalogpb/table_spec.pb.go | 2 +- datacatalog/apiv1/datacatalogpb/tags.pb.go | 10 +- .../apiv1/datacatalogpb/timestamps.pb.go | 20 +- datacatalog/apiv1/datacatalogpb/usage.pb.go | 16 +- .../apiv1/datafusionpb/datafusion.pb.go | 30 +-- datafusion/go.mod | 2 +- dataplex/apiv1/dataplexpb/analyze.pb.go | 46 ++-- dataplex/apiv1/dataplexpb/content.pb.go | 24 +- dataplex/apiv1/dataplexpb/logs.pb.go | 26 +-- dataplex/apiv1/dataplexpb/metadata.pb.go | 38 +-- dataplex/apiv1/dataplexpb/resources.pb.go | 66 +++--- dataplex/apiv1/dataplexpb/service.pb.go | 52 ++--- dataplex/apiv1/dataplexpb/tasks.pb.go | 44 ++-- dataplex/go.mod | 2 +- .../dataprocpb/autoscaling_policies.pb.go | 28 +-- dataproc/apiv1/dataprocpb/batches.pb.go | 32 +-- dataproc/apiv1/dataprocpb/clusters.pb.go | 46 ++-- dataproc/apiv1/dataprocpb/jobs.pb.go | 36 +-- dataproc/apiv1/dataprocpb/operations.pb.go | 18 +- dataproc/apiv1/dataprocpb/shared.pb.go | 2 +- .../apiv1/dataprocpb/workflow_templates.pb.go | 56 ++--- dataproc/go.mod | 2 +- .../apiv1/datastreampb/datastream.pb.go | 26 +-- .../datastreampb/datastream_resources.pb.go | 74 +++--- debugger/apiv2/debuggerpb/controller.pb.go | 2 +- debugger/apiv2/debuggerpb/data.pb.go | 22 +- debugger/apiv2/debuggerpb/debugger.pb.go | 16 +- deploy/apiv1/deploypb/cloud_deploy.pb.go | 102 ++++---- ...eliverypipeline_notification_payload.pb.go | 2 +- .../jobrun_notification_payload.pb.go | 2 +- deploy/apiv1/deploypb/log_enums.pb.go | 2 +- .../release_notification_payload.pb.go | 2 +- .../deploypb/release_render_payload.pb.go | 2 +- .../rollout_notification_payload.pb.go | 2 +- .../target_notification_payload.pb.go | 2 +- deploy/go.mod | 2 +- dialogflow/apiv2/dialogflowpb/agent.pb.go | 24 +- .../apiv2/dialogflowpb/answer_record.pb.go | 22 +- .../apiv2/dialogflowpb/audio_config.pb.go | 14 +- dialogflow/apiv2/dialogflowpb/context.pb.go | 42 ++-- .../apiv2/dialogflowpb/conversation.pb.go | 14 +- .../dialogflowpb/conversation_dataset.pb.go | 14 +- .../dialogflowpb/conversation_event.pb.go | 2 +- .../dialogflowpb/conversation_model.pb.go | 34 +-- .../dialogflowpb/conversation_profile.pb.go | 44 ++-- dialogflow/apiv2/dialogflowpb/document.pb.go | 18 +- .../apiv2/dialogflowpb/entity_type.pb.go | 32 +-- .../apiv2/dialogflowpb/environment.pb.go | 36 +-- .../apiv2/dialogflowpb/fulfillment.pb.go | 10 +- dialogflow/apiv2/dialogflowpb/gcs.pb.go | 2 +- .../human_agent_assistant_event.pb.go | 2 +- dialogflow/apiv2/dialogflowpb/intent.pb.go | 36 +-- .../apiv2/dialogflowpb/knowledge_base.pb.go | 24 +- .../apiv2/dialogflowpb/participant.pb.go | 36 +-- dialogflow/apiv2/dialogflowpb/session.pb.go | 46 ++-- .../dialogflowpb/session_entity_type.pb.go | 24 +- .../dialogflowpb/validation_result.pb.go | 2 +- dialogflow/apiv2/dialogflowpb/version.pb.go | 48 ++-- dialogflow/apiv2/dialogflowpb/webhook.pb.go | 14 +- .../cx/apiv3/cxpb/advanced_settings.pb.go | 2 +- dialogflow/cx/apiv3/cxpb/agent.pb.go | 24 +- dialogflow/cx/apiv3/cxpb/audio_config.pb.go | 14 +- dialogflow/cx/apiv3/cxpb/changelog.pb.go | 10 +- dialogflow/cx/apiv3/cxpb/deployment.pb.go | 14 +- dialogflow/cx/apiv3/cxpb/entity_type.pb.go | 24 +- dialogflow/cx/apiv3/cxpb/environment.pb.go | 36 +-- dialogflow/cx/apiv3/cxpb/experiment.pb.go | 68 +++--- dialogflow/cx/apiv3/cxpb/flow.pb.go | 32 +-- dialogflow/cx/apiv3/cxpb/fulfillment.pb.go | 10 +- dialogflow/cx/apiv3/cxpb/intent.pb.go | 24 +- dialogflow/cx/apiv3/cxpb/page.pb.go | 32 +-- .../cx/apiv3/cxpb/response_message.pb.go | 18 +- .../cx/apiv3/cxpb/security_settings.pb.go | 24 +- dialogflow/cx/apiv3/cxpb/session.pb.go | 38 +-- .../cx/apiv3/cxpb/session_entity_type.pb.go | 24 +- dialogflow/cx/apiv3/cxpb/test_case.pb.go | 56 ++--- .../apiv3/cxpb/transition_route_group.pb.go | 24 +- .../cx/apiv3/cxpb/validation_message.pb.go | 2 +- dialogflow/cx/apiv3/cxpb/version.pb.go | 36 +-- dialogflow/cx/apiv3/cxpb/webhook.pb.go | 58 ++--- dlp/apiv2/dlppb/dlp.pb.go | 208 ++++++++--------- dlp/apiv2/dlppb/storage.pb.go | 18 +- dlp/go.mod | 2 +- documentai/apiv1/documentaipb/barcode.pb.go | 2 +- documentai/apiv1/documentaipb/document.pb.go | 10 +- .../apiv1/documentaipb/document_io.pb.go | 2 +- .../document_processor_service.pb.go | 22 +- .../apiv1/documentaipb/document_schema.pb.go | 2 +- documentai/apiv1/documentaipb/geometry.pb.go | 2 +- .../documentaipb/operation_metadata.pb.go | 14 +- documentai/apiv1/documentaipb/processor.pb.go | 18 +- .../apiv1/documentaipb/processor_type.pb.go | 2 +- .../apiv1/essentialcontactspb/enums.pb.go | 2 +- .../apiv1/essentialcontactspb/service.pb.go | 42 ++-- essentialcontacts/go.mod | 2 +- eventarc/apiv1/eventarcpb/channel.pb.go | 18 +- .../apiv1/eventarcpb/channel_connection.pb.go | 16 +- eventarc/apiv1/eventarcpb/discovery.pb.go | 2 +- eventarc/apiv1/eventarcpb/eventarc.pb.go | 26 +-- eventarc/apiv1/eventarcpb/trigger.pb.go | 30 +-- eventarc/go.mod | 2 +- .../apiv1/publishingpb/publisher.pb.go | 14 +- .../filestorepb/cloud_filestore_service.pb.go | 38 +-- filestore/go.mod | 2 +- functions/apiv1/functionspb/functions.pb.go | 26 +-- functions/apiv1/functionspb/operations.pb.go | 22 +- functions/apiv2/functionspb/functions.pb.go | 34 +-- gaming/apiv1/gamingpb/common.pb.go | 30 +-- .../apiv1/gamingpb/game_server_clusters.pb.go | 38 +-- .../game_server_clusters_service.pb.go | 2 +- .../apiv1/gamingpb/game_server_configs.pb.go | 14 +- .../game_server_configs_service.pb.go | 2 +- .../gamingpb/game_server_deployments.pb.go | 50 ++-- .../game_server_deployments_service.pb.go | 2 +- gaming/apiv1/gamingpb/realms.pb.go | 30 +-- gaming/apiv1/gamingpb/realms_service.pb.go | 2 +- gkebackup/apiv1/gkebackuppb/backup.pb.go | 26 +-- gkebackup/apiv1/gkebackuppb/backup_plan.pb.go | 14 +- gkebackup/apiv1/gkebackuppb/common.pb.go | 2 +- gkebackup/apiv1/gkebackuppb/gkebackup.pb.go | 34 +-- gkebackup/apiv1/gkebackuppb/restore.pb.go | 18 +- .../apiv1/gkebackuppb/restore_plan.pb.go | 20 +- gkebackup/apiv1/gkebackuppb/volume.pb.go | 30 +-- gkebackup/go.mod | 2 +- .../apiv1/gkemulticloudpb/aws_resources.pb.go | 22 +- .../apiv1/gkemulticloudpb/aws_service.pb.go | 22 +- .../gkemulticloudpb/azure_resources.pb.go | 26 +-- .../apiv1/gkemulticloudpb/azure_service.pb.go | 22 +- .../gkemulticloudpb/common_resources.pb.go | 14 +- gkemulticloud/go.mod | 2 +- .../apiv1/gsuiteaddonspb/gsuiteaddons.pb.go | 44 ++-- gsuiteaddons/go.mod | 2 +- .../apiv1/credentialspb/common.pb.go | 18 +- .../apiv1/credentialspb/iamcredentials.pb.go | 2 +- iap/apiv1/iappb/service.pb.go | 80 +++---- iap/go.mod | 2 +- ids/apiv1/idspb/ids.pb.go | 22 +- ids/go.mod | 2 +- ...google.cloud.bigquery.analyticshub.v1.json | 2 +- ...a.google.cloud.bigquery.connection.v1.json | 2 +- ...gle.cloud.bigquery.connection.v1beta1.json | 2 +- ...e.cloud.bigquery.dataexchange.v1beta1.json | 2 +- ...e.cloud.bigquery.datapolicies.v1beta1.json | 2 +- ...google.cloud.bigquery.datatransfer.v1.json | 2 +- ...ta.google.cloud.bigquery.migration.v2.json | 2 +- ...ogle.cloud.bigquery.migration.v2alpha.json | 2 +- ....google.cloud.bigquery.reservation.v1.json | 2 +- ...le.cloud.bigquery.reservation.v1beta1.json | 2 +- ...data.google.cloud.bigquery.storage.v1.json | 2 +- ...google.cloud.bigquery.storage.v1beta1.json | 2 +- ...google.cloud.bigquery.storage.v1beta2.json | 2 +- iot/apiv1/iotpb/device_manager.pb.go | 46 ++-- iot/apiv1/iotpb/resources.pb.go | 58 ++--- iot/go.mod | 2 +- kms/apiv1/kmspb/ekm_service.pb.go | 26 +-- kms/apiv1/kmspb/resources.pb.go | 74 +++--- kms/apiv1/kmspb/service.pb.go | 82 +++---- kms/go.mod | 2 +- .../apiv1/languagepb/language_service.pb.go | 2 +- .../autogen/longrunningpb/operations.pb.go | 72 +++--- .../managed_identities_service.pb.go | 22 +- .../apiv1/managedidentitiespb/resource.pb.go | 40 ++-- managedidentities/go.mod | 2 +- .../apiv1/memcachepb/cloud_memcache.pb.go | 34 +-- metastore/apiv1/metastorepb/metastore.pb.go | 78 +++---- monitoring/apiv3/v2/monitoringpb/alert.pb.go | 34 +-- .../apiv3/v2/monitoringpb/alert_service.pb.go | 24 +- monitoring/apiv3/v2/monitoringpb/common.pb.go | 22 +- .../v2/monitoringpb/dropped_labels.pb.go | 2 +- monitoring/apiv3/v2/monitoringpb/group.pb.go | 2 +- .../apiv3/v2/monitoringpb/group_service.pb.go | 16 +- monitoring/apiv3/v2/monitoringpb/metric.pb.go | 2 +- .../v2/monitoringpb/metric_service.pb.go | 36 +-- .../v2/monitoringpb/mutation_record.pb.go | 12 +- .../apiv3/v2/monitoringpb/notification.pb.go | 10 +- .../monitoringpb/notification_service.pb.go | 46 ++-- .../apiv3/v2/monitoringpb/query_service.pb.go | 2 +- .../apiv3/v2/monitoringpb/service.pb.go | 18 +- .../v2/monitoringpb/service_service.pb.go | 38 +-- .../apiv3/v2/monitoringpb/span_context.pb.go | 2 +- monitoring/apiv3/v2/monitoringpb/uptime.pb.go | 14 +- .../v2/monitoringpb/uptime_service.pb.go | 24 +- .../apiv1/dashboardpb/alertchart.pb.go | 2 +- .../apiv1/dashboardpb/collapsible_group.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/common.pb.go | 10 +- .../apiv1/dashboardpb/dashboard.pb.go | 2 +- .../apiv1/dashboardpb/dashboard_filter.pb.go | 2 +- .../dashboardpb/dashboards_service.pb.go | 16 +- .../apiv1/dashboardpb/drilldowns.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/layouts.pb.go | 2 +- .../apiv1/dashboardpb/logs_panel.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/metrics.pb.go | 2 +- .../apiv1/dashboardpb/scorecard.pb.go | 10 +- .../dashboard/apiv1/dashboardpb/service.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/table.pb.go | 10 +- .../dashboardpb/table_display_options.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/text.pb.go | 2 +- .../dashboard/apiv1/dashboardpb/widget.pb.go | 10 +- .../dashboard/apiv1/dashboardpb/xychart.pb.go | 14 +- .../apiv1/metricsscopepb/metrics_scope.pb.go | 22 +- .../apiv1/metricsscopepb/metrics_scopes.pb.go | 14 +- .../apiv1/networkconnectivitypb/common.pb.go | 16 +- .../apiv1/networkconnectivitypb/hub.pb.go | 34 +-- .../connectivity_test.pb.go | 18 +- .../networkmanagementpb/reachability.pb.go | 22 +- .../apiv1/networkmanagementpb/trace.pb.go | 2 +- networkmanagement/go.mod | 2 +- notebooks/apiv1/notebookspb/environment.pb.go | 16 +- notebooks/apiv1/notebookspb/event.pb.go | 16 +- notebooks/apiv1/notebookspb/execution.pb.go | 18 +- notebooks/apiv1/notebookspb/instance.pb.go | 18 +- .../apiv1/notebookspb/instance_config.pb.go | 2 +- .../apiv1/notebookspb/managed_service.pb.go | 10 +- notebooks/apiv1/notebookspb/runtime.pb.go | 14 +- notebooks/apiv1/notebookspb/schedule.pb.go | 22 +- notebooks/apiv1/notebookspb/service.pb.go | 14 +- .../apiv1/optimizationpb/async_model.pb.go | 14 +- .../apiv1/optimizationpb/fleet_routing.pb.go | 218 +++++++++--------- optimization/go.mod | 4 +- .../apiv1/servicepb/environments.pb.go | 22 +- .../apiv1/servicepb/image_versions.pb.go | 2 +- .../service/apiv1/servicepb/operations.pb.go | 20 +- orchestration/go.mod | 2 +- orgpolicy/apiv2/orgpolicypb/constraint.pb.go | 2 +- orgpolicy/apiv2/orgpolicypb/orgpolicy.pb.go | 24 +- orgpolicy/go.mod | 2 +- .../apiv1/agentendpointpb/agentendpoint.pb.go | 2 +- .../apiv1/agentendpointpb/config_common.pb.go | 2 +- .../apiv1/agentendpointpb/inventory.pb.go | 14 +- .../apiv1/agentendpointpb/os_policy.pb.go | 2 +- .../apiv1/agentendpointpb/patch_jobs.pb.go | 2 +- .../apiv1/agentendpointpb/tasks.pb.go | 2 +- osconfig/apiv1/osconfigpb/inventory.pb.go | 26 +-- osconfig/apiv1/osconfigpb/os_policy.pb.go | 2 +- .../os_policy_assignment_reports.pb.go | 10 +- .../osconfigpb/os_policy_assignments.pb.go | 34 +-- .../apiv1/osconfigpb/osconfig_common.pb.go | 2 +- .../apiv1/osconfigpb/osconfig_service.pb.go | 16 +- .../osconfigpb/osconfig_zonal_service.pb.go | 2 +- .../apiv1/osconfigpb/patch_deployments.pb.go | 54 ++--- osconfig/apiv1/osconfigpb/patch_jobs.pb.go | 26 +-- osconfig/apiv1/osconfigpb/vulnerability.pb.go | 18 +- oslogin/apiv1/osloginpb/oslogin.pb.go | 34 +-- .../policytroubleshooterpb/checker.pb.go | 2 +- .../policytroubleshooterpb/explanations.pb.go | 2 +- policytroubleshooter/go.mod | 2 +- .../recaptchaenterprise.pb.go | 40 ++-- recommender/apiv1/recommenderpb/insight.pb.go | 26 +-- .../recommenderpb/insight_type_config.pb.go | 18 +- .../apiv1/recommenderpb/recommendation.pb.go | 40 ++-- .../recommenderpb/recommender_config.pb.go | 18 +- .../recommenderpb/recommender_service.pb.go | 14 +- redis/apiv1/redispb/cloud_redis.pb.go | 66 +++--- .../apiv2/resourcemanagerpb/folders.pb.go | 22 +- .../apiv3/resourcemanagerpb/folders.pb.go | 26 +-- .../resourcemanagerpb/organizations.pb.go | 18 +- .../apiv3/resourcemanagerpb/projects.pb.go | 30 +-- .../resourcemanagerpb/tag_bindings.pb.go | 2 +- .../apiv3/resourcemanagerpb/tag_keys.pb.go | 22 +- .../apiv3/resourcemanagerpb/tag_values.pb.go | 22 +- resourcemanager/go.mod | 2 +- .../resource_settings.pb.go | 2 +- retail/apiv2/retailpb/catalog.pb.go | 2 +- retail/apiv2/retailpb/catalog_service.pb.go | 44 ++-- retail/apiv2/retailpb/common.pb.go | 22 +- .../apiv2/retailpb/completion_service.pb.go | 2 +- retail/apiv2/retailpb/control.pb.go | 2 +- retail/apiv2/retailpb/control_service.pb.go | 38 +-- retail/apiv2/retailpb/import_config.pb.go | 22 +- .../apiv2/retailpb/prediction_service.pb.go | 14 +- retail/apiv2/retailpb/product.pb.go | 68 +++--- retail/apiv2/retailpb/product_service.pb.go | 60 ++--- retail/apiv2/retailpb/promotion.pb.go | 2 +- retail/apiv2/retailpb/purge_config.pb.go | 2 +- retail/apiv2/retailpb/search_service.pb.go | 18 +- retail/apiv2/retailpb/serving_config.pb.go | 2 +- .../retailpb/serving_config_service.pb.go | 24 +- retail/apiv2/retailpb/user_event.pb.go | 34 +-- .../apiv2/retailpb/user_event_service.pb.go | 2 +- run/apiv2/runpb/condition.pb.go | 10 +- run/apiv2/runpb/k8s.min.pb.go | 2 +- run/apiv2/runpb/revision.pb.go | 30 +-- run/apiv2/runpb/revision_template.pb.go | 26 +-- run/apiv2/runpb/service.pb.go | 22 +- run/apiv2/runpb/traffic_target.pb.go | 2 +- run/apiv2/runpb/vendor_settings.pb.go | 2 +- run/go.mod | 2 +- .../apiv1/schedulerpb/cloudscheduler.pb.go | 44 ++-- scheduler/apiv1/schedulerpb/job.pb.go | 52 ++--- scheduler/apiv1/schedulerpb/target.pb.go | 2 +- .../apiv1/secretmanagerpb/resources.pb.go | 38 +-- .../apiv1/secretmanagerpb/service.pb.go | 24 +- secretmanager/go.mod | 2 +- .../apiv1/privatecapb/resources.pb.go | 78 +++---- .../privateca/apiv1/privatecapb/service.pb.go | 38 +-- .../apiv1/securitycenterpb/access.pb.go | 2 +- .../apiv1/securitycenterpb/asset.pb.go | 22 +- .../securitycenterpb/bigquery_export.pb.go | 16 +- .../apiv1/securitycenterpb/compliance.pb.go | 2 +- .../apiv1/securitycenterpb/connection.pb.go | 2 +- .../securitycenterpb/contact_details.pb.go | 2 +- .../apiv1/securitycenterpb/container.pb.go | 2 +- .../apiv1/securitycenterpb/database.pb.go | 2 +- .../apiv1/securitycenterpb/exfiltration.pb.go | 2 +- .../securitycenterpb/external_system.pb.go | 12 +- .../apiv1/securitycenterpb/file.pb.go | 2 +- .../apiv1/securitycenterpb/finding.pb.go | 72 +++--- .../apiv1/securitycenterpb/folder.pb.go | 2 +- .../apiv1/securitycenterpb/iam_binding.pb.go | 2 +- .../apiv1/securitycenterpb/indicator.pb.go | 2 +- .../apiv1/securitycenterpb/kubernetes.pb.go | 2 +- .../apiv1/securitycenterpb/label.pb.go | 2 +- .../apiv1/securitycenterpb/mitre_attack.pb.go | 2 +- .../apiv1/securitycenterpb/mute_config.pb.go | 16 +- .../notification_config.pb.go | 2 +- .../notification_message.pb.go | 2 +- .../organization_settings.pb.go | 2 +- .../apiv1/securitycenterpb/process.pb.go | 2 +- .../apiv1/securitycenterpb/resource.pb.go | 2 +- .../run_asset_discovery_response.pb.go | 10 +- .../securitycenterpb/security_marks.pb.go | 2 +- .../securitycenter_service.pb.go | 152 ++++++------ .../apiv1/securitycenterpb/source.pb.go | 2 +- .../securitycenterpb/vulnerability.pb.go | 2 +- .../apiv1/servicecontrolpb/check_error.pb.go | 2 +- .../apiv1/servicecontrolpb/distribution.pb.go | 2 +- .../apiv1/servicecontrolpb/http_request.pb.go | 12 +- .../apiv1/servicecontrolpb/log_entry.pb.go | 26 +-- .../apiv1/servicecontrolpb/metric_value.pb.go | 22 +- .../apiv1/servicecontrolpb/operation.pb.go | 32 +-- .../servicecontrolpb/quota_controller.pb.go | 2 +- .../servicecontrolpb/service_controller.pb.go | 2 +- servicecontrol/go.mod | 4 +- .../apiv1/servicedirectorypb/endpoint.pb.go | 2 +- .../servicedirectorypb/lookup_service.pb.go | 2 +- .../apiv1/servicedirectorypb/namespace.pb.go | 2 +- .../registration_service.pb.go | 52 ++--- .../apiv1/servicedirectorypb/service.pb.go | 2 +- .../apiv1/servicemanagementpb/resources.pb.go | 14 +- .../servicemanagementpb/servicemanager.pb.go | 14 +- servicemanagement/go.mod | 2 +- .../apiv1/serviceusagepb/resources.pb.go | 10 +- .../apiv1/serviceusagepb/serviceusage.pb.go | 2 +- shell/apiv1/shellpb/cloudshell.pb.go | 10 +- shell/go.mod | 4 +- speech/apiv1/speechpb/cloud_speech.pb.go | 58 ++--- .../speechpb/cloud_speech_adaptation.pb.go | 38 +-- speech/apiv1/speechpb/resource.pb.go | 2 +- .../apiv1/storagetransferpb/transfer.pb.go | 58 ++--- .../storagetransferpb/transfer_types.pb.go | 50 ++-- storagetransfer/go.mod | 2 +- talent/apiv4/talentpb/common.pb.go | 34 +-- talent/apiv4/talentpb/company.pb.go | 2 +- talent/apiv4/talentpb/company_service.pb.go | 24 +- .../apiv4/talentpb/completion_service.pb.go | 2 +- talent/apiv4/talentpb/event.pb.go | 16 +- talent/apiv4/talentpb/event_service.pb.go | 2 +- talent/apiv4/talentpb/filters.pb.go | 10 +- talent/apiv4/talentpb/histogram.pb.go | 2 +- talent/apiv4/talentpb/job.pb.go | 30 +-- talent/apiv4/talentpb/job_service.pb.go | 36 +-- talent/apiv4/talentpb/tenant.pb.go | 2 +- talent/apiv4/talentpb/tenant_service.pb.go | 40 ++-- .../apiv1/texttospeechpb/cloud_tts.pb.go | 2 +- texttospeech/go.mod | 2 +- tpu/apiv1/tpupb/cloud_tpu.pb.go | 22 +- tpu/go.mod | 2 +- trace/apiv1/tracepb/trace.pb.go | 36 +-- trace/apiv2/tracepb/trace.pb.go | 32 +-- trace/apiv2/tracepb/tracing.pb.go | 16 +- trace/go.mod | 2 +- .../translatepb/translation_service.pb.go | 54 ++--- translate/go.mod | 2 +- video/go.mod | 2 +- .../apiv1/livestreampb/outputs.pb.go | 22 +- .../apiv1/livestreampb/resources.pb.go | 46 ++-- .../apiv1/livestreampb/service.pb.go | 40 ++-- .../apiv1/stitcherpb/ad_tag_details.pb.go | 32 +-- .../stitcher/apiv1/stitcherpb/cdn_keys.pb.go | 2 +- .../apiv1/stitcherpb/companions.pb.go | 2 +- video/stitcher/apiv1/stitcherpb/events.pb.go | 20 +- .../stitcher/apiv1/stitcherpb/sessions.pb.go | 22 +- video/stitcher/apiv1/stitcherpb/slates.pb.go | 2 +- .../apiv1/stitcherpb/stitch_details.pb.go | 24 +- .../stitcherpb/video_stitcher_service.pb.go | 38 +-- .../apiv1/transcoderpb/resources.pb.go | 78 +++---- .../apiv1/transcoderpb/services.pb.go | 26 +-- .../video_intelligence.pb.go | 58 ++--- vision/v2/apiv1/visionpb/geometry.pb.go | 2 +- .../v2/apiv1/visionpb/image_annotator.pb.go | 14 +- vision/v2/apiv1/visionpb/product_search.pb.go | 10 +- .../visionpb/product_search_service.pb.go | 84 +++---- .../v2/apiv1/visionpb/text_annotation.pb.go | 2 +- vision/v2/apiv1/visionpb/web_detection.pb.go | 2 +- vision/v2/go.mod | 2 +- .../apiv1/vmmigrationpb/vmmigration.pb.go | 146 ++++++------ vmmigration/go.mod | 2 +- vpcaccess/apiv1/vpcaccesspb/vpc_access.pb.go | 14 +- vpcaccess/go.mod | 2 +- webrisk/apiv1/webriskpb/webrisk.pb.go | 22 +- .../websecurityscannerpb/crawled_url.pb.go | 2 +- .../apiv1/websecurityscannerpb/finding.pb.go | 2 +- .../websecurityscannerpb/finding_addon.pb.go | 2 +- .../finding_type_stats.pb.go | 2 +- .../websecurityscannerpb/scan_config.pb.go | 10 +- .../scan_config_error.pb.go | 2 +- .../apiv1/websecurityscannerpb/scan_run.pb.go | 24 +- .../scan_run_error_trace.pb.go | 2 +- .../websecurityscannerpb/scan_run_log.pb.go | 2 +- .../scan_run_warning_trace.pb.go | 2 +- .../web_security_scanner.pb.go | 24 +- websecurityscanner/go.mod | 2 +- workflows/apiv1/workflowspb/workflows.pb.go | 34 +-- .../apiv1/executionspb/executions.pb.go | 14 +- 542 files changed, 5206 insertions(+), 5206 deletions(-) diff --git a/accessapproval/apiv1/accessapprovalpb/accessapproval.pb.go b/accessapproval/apiv1/accessapprovalpb/accessapproval.pb.go index 61350024aa10..4a79fbfb1e53 100644 --- a/accessapproval/apiv1/accessapprovalpb/accessapproval.pb.go +++ b/accessapproval/apiv1/accessapprovalpb/accessapproval.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/accessapproval/v1/accessapproval.proto package accessapprovalpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -417,11 +417,11 @@ type ApproveDecision struct { unknownFields protoimpl.UnknownFields // The time at which approval was granted. - ApproveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"` + ApproveTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"` // The time at which the approval expires. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // If set, denotes the timestamp at which the approval is invalidated. - InvalidateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=invalidate_time,json=invalidateTime,proto3" json:"invalidate_time,omitempty"` + InvalidateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=invalidate_time,json=invalidateTime,proto3" json:"invalidate_time,omitempty"` // The signature for the ApprovalRequest and details on how it was signed. SignatureInfo *SignatureInfo `protobuf:"bytes,4,opt,name=signature_info,json=signatureInfo,proto3" json:"signature_info,omitempty"` // True when the request has been auto-approved. @@ -460,21 +460,21 @@ func (*ApproveDecision) Descriptor() ([]byte, []int) { return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{3} } -func (x *ApproveDecision) GetApproveTime() *timestamppb.Timestamp { +func (x *ApproveDecision) GetApproveTime() *timestamp.Timestamp { if x != nil { return x.ApproveTime } return nil } -func (x *ApproveDecision) GetExpireTime() *timestamppb.Timestamp { +func (x *ApproveDecision) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } return nil } -func (x *ApproveDecision) GetInvalidateTime() *timestamppb.Timestamp { +func (x *ApproveDecision) GetInvalidateTime() *timestamp.Timestamp { if x != nil { return x.InvalidateTime } @@ -502,7 +502,7 @@ type DismissDecision struct { unknownFields protoimpl.UnknownFields // The time at which the approval request was dismissed. - DismissTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=dismiss_time,json=dismissTime,proto3" json:"dismiss_time,omitempty"` + DismissTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=dismiss_time,json=dismissTime,proto3" json:"dismiss_time,omitempty"` // This field will be true if the ApprovalRequest was implicitly dismissed due // to inaction by the access approval approvers (the request is not acted // on by the approvers before the exiration time). @@ -541,7 +541,7 @@ func (*DismissDecision) Descriptor() ([]byte, []int) { return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{4} } -func (x *DismissDecision) GetDismissTime() *timestamppb.Timestamp { +func (x *DismissDecision) GetDismissTime() *timestamp.Timestamp { if x != nil { return x.DismissTime } @@ -629,10 +629,10 @@ type ApprovalRequest struct { // The locations for which approval is being requested. RequestedLocations *AccessLocations `protobuf:"bytes,4,opt,name=requested_locations,json=requestedLocations,proto3" json:"requested_locations,omitempty"` // The time at which approval was requested. - RequestTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` // The requested expiration for the approval. If the request is approved, // access will be granted from the time of approval until the expiration time. - RequestedExpiration *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=requested_expiration,json=requestedExpiration,proto3" json:"requested_expiration,omitempty"` + RequestedExpiration *timestamp.Timestamp `protobuf:"bytes,6,opt,name=requested_expiration,json=requestedExpiration,proto3" json:"requested_expiration,omitempty"` // The current decision on the approval request. // // Types that are assignable to Decision: @@ -709,14 +709,14 @@ func (x *ApprovalRequest) GetRequestedLocations() *AccessLocations { return nil } -func (x *ApprovalRequest) GetRequestTime() *timestamppb.Timestamp { +func (x *ApprovalRequest) GetRequestTime() *timestamp.Timestamp { if x != nil { return x.RequestTime } return nil } -func (x *ApprovalRequest) GetRequestedExpiration() *timestamppb.Timestamp { +func (x *ApprovalRequest) GetRequestedExpiration() *timestamp.Timestamp { if x != nil { return x.RequestedExpiration } @@ -1285,7 +1285,7 @@ type ApproveApprovalRequestMessage struct { // Name of the approval request to approve. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The expiration time of this approval. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *ApproveApprovalRequestMessage) Reset() { @@ -1327,7 +1327,7 @@ func (x *ApproveApprovalRequestMessage) GetName() string { return "" } -func (x *ApproveApprovalRequestMessage) GetExpireTime() *timestamppb.Timestamp { +func (x *ApproveApprovalRequestMessage) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1500,7 +1500,7 @@ type UpdateAccessApprovalSettingsMessage struct { // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // If this field is left unset, only the notification_emails field will be // updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAccessApprovalSettingsMessage) Reset() { @@ -1542,7 +1542,7 @@ func (x *UpdateAccessApprovalSettingsMessage) GetSettings() *AccessApprovalSetti return nil } -func (x *UpdateAccessApprovalSettingsMessage) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAccessApprovalSettingsMessage) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2199,9 +2199,9 @@ var file_google_cloud_accessapproval_v1_accessapproval_proto_goTypes = []interfa (*UpdateAccessApprovalSettingsMessage)(nil), // 19: google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage (*DeleteAccessApprovalSettingsMessage)(nil), // 20: google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage (*GetAccessApprovalServiceAccountMessage)(nil), // 21: google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 23: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 24: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask + (*empty.Empty)(nil), // 24: google.protobuf.Empty } var file_google_cloud_accessapproval_v1_accessapproval_proto_depIdxs = []int32{ 1, // 0: google.cloud.accessapproval.v1.AccessReason.type:type_name -> google.cloud.accessapproval.v1.AccessReason.Type @@ -2578,7 +2578,7 @@ type AccessApprovalClient interface { // Approval disabled. If Access Approval is enabled at a higher level of the // hierarchy, then Access Approval will still be enabled at this level as // the settings are inherited. - DeleteAccessApprovalSettings(ctx context.Context, in *DeleteAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAccessApprovalSettings(ctx context.Context, in *DeleteAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*empty.Empty, error) // Retrieves the service account that is used by Access Approval to access KMS // keys for signing approved approval requests. GetAccessApprovalServiceAccount(ctx context.Context, in *GetAccessApprovalServiceAccountMessage, opts ...grpc.CallOption) (*AccessApprovalServiceAccount, error) @@ -2655,8 +2655,8 @@ func (c *accessApprovalClient) UpdateAccessApprovalSettings(ctx context.Context, return out, nil } -func (c *accessApprovalClient) DeleteAccessApprovalSettings(ctx context.Context, in *DeleteAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *accessApprovalClient) DeleteAccessApprovalSettings(ctx context.Context, in *DeleteAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.accessapproval.v1.AccessApproval/DeleteAccessApprovalSettings", in, out, opts...) if err != nil { return nil, err @@ -2717,7 +2717,7 @@ type AccessApprovalServer interface { // Approval disabled. If Access Approval is enabled at a higher level of the // hierarchy, then Access Approval will still be enabled at this level as // the settings are inherited. - DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*emptypb.Empty, error) + DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*empty.Empty, error) // Retrieves the service account that is used by Access Approval to access KMS // keys for signing approved approval requests. GetAccessApprovalServiceAccount(context.Context, *GetAccessApprovalServiceAccountMessage) (*AccessApprovalServiceAccount, error) @@ -2748,7 +2748,7 @@ func (*UnimplementedAccessApprovalServer) GetAccessApprovalSettings(context.Cont func (*UnimplementedAccessApprovalServer) UpdateAccessApprovalSettings(context.Context, *UpdateAccessApprovalSettingsMessage) (*AccessApprovalSettings, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAccessApprovalSettings not implemented") } -func (*UnimplementedAccessApprovalServer) DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*emptypb.Empty, error) { +func (*UnimplementedAccessApprovalServer) DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAccessApprovalSettings not implemented") } func (*UnimplementedAccessApprovalServer) GetAccessApprovalServiceAccount(context.Context, *GetAccessApprovalServiceAccountMessage) (*AccessApprovalServiceAccount, error) { diff --git a/accessapproval/go.mod b/accessapproval/go.mod index 79908c4f3f9e..c987efe65417 100644 --- a/accessapproval/go.mod +++ b/accessapproval/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/accessapproval go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_context_manager.pb.go b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_context_manager.pb.go index b739c11cfef8..040efa00d5cf 100644 --- a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_context_manager.pb.go +++ b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_context_manager.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/identity/accesscontextmanager/v1/access_context_manager.proto package accesscontextmanagerpb @@ -27,12 +27,12 @@ import ( _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -288,7 +288,7 @@ type UpdateAccessPolicyRequest struct { // Required. The updated AccessPolicy. Policy *AccessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // Required. Mask to control which fields get updated. Must be non-empty. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAccessPolicyRequest) Reset() { @@ -330,7 +330,7 @@ func (x *UpdateAccessPolicyRequest) GetPolicy() *AccessPolicy { return nil } -func (x *UpdateAccessPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAccessPolicyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -681,7 +681,7 @@ type UpdateAccessLevelRequest struct { // precondition for creation. AccessLevel *AccessLevel `protobuf:"bytes,1,opt,name=access_level,json=accessLevel,proto3" json:"access_level,omitempty"` // Required. Mask to control which fields get updated. Must be non-empty. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAccessLevelRequest) Reset() { @@ -723,7 +723,7 @@ func (x *UpdateAccessLevelRequest) GetAccessLevel() *AccessLevel { return nil } -func (x *UpdateAccessLevelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAccessLevelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1180,7 +1180,7 @@ type UpdateServicePerimeterRequest struct { // `ServicePerimeter` is a precondition for creation. ServicePerimeter *ServicePerimeter `protobuf:"bytes,1,opt,name=service_perimeter,json=servicePerimeter,proto3" json:"service_perimeter,omitempty"` // Required. Mask to control which fields get updated. Must be non-empty. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateServicePerimeterRequest) Reset() { @@ -1222,7 +1222,7 @@ func (x *UpdateServicePerimeterRequest) GetServicePerimeter() *ServicePerimeter return nil } -func (x *UpdateServicePerimeterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServicePerimeterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1799,7 +1799,7 @@ type UpdateGcpUserAccessBindingRequest struct { // update_mask { // paths: "access_levels" // } - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateGcpUserAccessBindingRequest) Reset() { @@ -1841,7 +1841,7 @@ func (x *UpdateGcpUserAccessBindingRequest) GetGcpUserAccessBinding() *GcpUserAc return nil } -func (x *UpdateGcpUserAccessBindingRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGcpUserAccessBindingRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2779,7 +2779,7 @@ var file_google_identity_accesscontextmanager_v1_access_context_manager_proto_go (*GcpUserAccessBindingOperationMetadata)(nil), // 30: google.identity.accesscontextmanager.v1.GcpUserAccessBindingOperationMetadata (*AccessContextManagerOperationMetadata)(nil), // 31: google.identity.accesscontextmanager.v1.AccessContextManagerOperationMetadata (*AccessPolicy)(nil), // 32: google.identity.accesscontextmanager.v1.AccessPolicy - (*fieldmaskpb.FieldMask)(nil), // 33: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 33: google.protobuf.FieldMask (*AccessLevel)(nil), // 34: google.identity.accesscontextmanager.v1.AccessLevel (*ServicePerimeter)(nil), // 35: google.identity.accesscontextmanager.v1.ServicePerimeter (*GcpUserAccessBinding)(nil), // 36: google.identity.accesscontextmanager.v1.GcpUserAccessBinding diff --git a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_level.pb.go b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_level.pb.go index 1feeb66c2dac..38ae468b2714 100644 --- a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_level.pb.go +++ b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_level.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/identity/accesscontextmanager/v1/access_level.proto package accesscontextmanagerpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" _type "google.golang.org/genproto/googleapis/identity/accesscontextmanager/type" expr "google.golang.org/genproto/googleapis/type/expr" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -114,9 +114,9 @@ type AccessLevel struct { // *AccessLevel_Custom Level isAccessLevel_Level `protobuf_oneof:"level"` // Output only. Time the `AccessLevel` was created in UTC. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the `AccessLevel` was updated in UTC. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *AccessLevel) Reset() { @@ -193,14 +193,14 @@ func (x *AccessLevel) GetCustom() *CustomLevel { return nil } -func (x *AccessLevel) GetCreateTime() *timestamppb.Timestamp { +func (x *AccessLevel) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AccessLevel) GetUpdateTime() *timestamppb.Timestamp { +func (x *AccessLevel) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -808,7 +808,7 @@ var file_google_identity_accesscontextmanager_v1_access_level_proto_goTypes = [] (*CustomLevel)(nil), // 4: google.identity.accesscontextmanager.v1.CustomLevel (*DevicePolicy)(nil), // 5: google.identity.accesscontextmanager.v1.DevicePolicy (*OsConstraint)(nil), // 6: google.identity.accesscontextmanager.v1.OsConstraint - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp (*expr.Expr)(nil), // 8: google.type.Expr (_type.DeviceEncryptionStatus)(0), // 9: google.identity.accesscontextmanager.type.DeviceEncryptionStatus (_type.DeviceManagementLevel)(0), // 10: google.identity.accesscontextmanager.type.DeviceManagementLevel diff --git a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_policy.pb.go b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_policy.pb.go index 31c98c114dba..695626cbdb14 100644 --- a/accesscontextmanager/apiv1/accesscontextmanagerpb/access_policy.pb.go +++ b/accesscontextmanager/apiv1/accesscontextmanagerpb/access_policy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/identity/accesscontextmanager/v1/access_policy.proto package accesscontextmanagerpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -57,9 +57,9 @@ type AccessPolicy struct { // Required. Human readable title. Does not affect behavior. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // Output only. Time the `AccessPolicy` was created in UTC. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the `AccessPolicy` was updated in UTC. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. An opaque identifier for the current version of the // `AccessPolicy`. This will always be a strongly validated etag, meaning that // two Access Polices will be identical if and only if their etags are @@ -120,14 +120,14 @@ func (x *AccessPolicy) GetTitle() string { return "" } -func (x *AccessPolicy) GetCreateTime() *timestamppb.Timestamp { +func (x *AccessPolicy) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AccessPolicy) GetUpdateTime() *timestamppb.Timestamp { +func (x *AccessPolicy) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -209,8 +209,8 @@ func file_google_identity_accesscontextmanager_v1_access_policy_proto_rawDescGZI var file_google_identity_accesscontextmanager_v1_access_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_identity_accesscontextmanager_v1_access_policy_proto_goTypes = []interface{}{ - (*AccessPolicy)(nil), // 0: google.identity.accesscontextmanager.v1.AccessPolicy - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*AccessPolicy)(nil), // 0: google.identity.accesscontextmanager.v1.AccessPolicy + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_identity_accesscontextmanager_v1_access_policy_proto_depIdxs = []int32{ 1, // 0: google.identity.accesscontextmanager.v1.AccessPolicy.create_time:type_name -> google.protobuf.Timestamp diff --git a/accesscontextmanager/apiv1/accesscontextmanagerpb/gcp_user_access_binding.pb.go b/accesscontextmanager/apiv1/accesscontextmanagerpb/gcp_user_access_binding.pb.go index e75c5550b9d4..de49bec194ea 100644 --- a/accesscontextmanager/apiv1/accesscontextmanagerpb/gcp_user_access_binding.pb.go +++ b/accesscontextmanager/apiv1/accesscontextmanagerpb/gcp_user_access_binding.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/identity/accesscontextmanager/v1/gcp_user_access_binding.proto package accesscontextmanagerpb diff --git a/accesscontextmanager/apiv1/accesscontextmanagerpb/service_perimeter.pb.go b/accesscontextmanager/apiv1/accesscontextmanagerpb/service_perimeter.pb.go index 1a27602a647b..5ff208ba4683 100644 --- a/accesscontextmanager/apiv1/accesscontextmanagerpb/service_perimeter.pb.go +++ b/accesscontextmanager/apiv1/accesscontextmanagerpb/service_perimeter.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/identity/accesscontextmanager/v1/service_perimeter.proto package accesscontextmanagerpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -188,9 +188,9 @@ type ServicePerimeter struct { // behavior. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. Time the `ServicePerimeter` was created in UTC. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the `ServicePerimeter` was updated in UTC. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Perimeter type indicator. A single project is // allowed to be a member of single regular perimeter, but multiple service // perimeter bridges. A project cannot be a included in a perimeter bridge @@ -273,14 +273,14 @@ func (x *ServicePerimeter) GetDescription() string { return "" } -func (x *ServicePerimeter) GetCreateTime() *timestamppb.Timestamp { +func (x *ServicePerimeter) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ServicePerimeter) GetUpdateTime() *timestamppb.Timestamp { +func (x *ServicePerimeter) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1518,7 +1518,7 @@ var file_google_identity_accesscontextmanager_v1_service_perimeter_proto_goTypes (*ServicePerimeterConfig_IngressPolicy)(nil), // 11: google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy (*ServicePerimeterConfig_EgressPolicy)(nil), // 12: google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy (*ServicePerimeterConfig_EgressFrom)(nil), // 13: google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp } var file_google_identity_accesscontextmanager_v1_service_perimeter_proto_depIdxs = []int32{ 14, // 0: google.identity.accesscontextmanager.v1.ServicePerimeter.create_time:type_name -> google.protobuf.Timestamp diff --git a/accesscontextmanager/go.mod b/accesscontextmanager/go.mod index 732a96df9f47..6eefdd8cafd8 100644 --- a/accesscontextmanager/go.mod +++ b/accesscontextmanager/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/apigateway/apiv1/apigatewaypb/apigateway.pb.go b/apigateway/apiv1/apigatewaypb/apigateway.pb.go index e3623dd464f1..ffb5c8548add 100644 --- a/apigateway/apiv1/apigatewaypb/apigateway.pb.go +++ b/apigateway/apiv1/apigatewaypb/apigateway.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/apigateway/v1/apigateway.proto package apigatewaypb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -300,9 +300,9 @@ type Api struct { // Format: projects/{project}/locations/global/apis/{api} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Created time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Updated time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user-provided metadata. // Refer to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources @@ -357,14 +357,14 @@ func (x *Api) GetName() string { return "" } -func (x *Api) GetCreateTime() *timestamppb.Timestamp { +func (x *Api) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Api) GetUpdateTime() *timestamppb.Timestamp { +func (x *Api) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -410,9 +410,9 @@ type ApiConfig struct { // Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Created time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Updated time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user-provided metadata. // Refer to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources @@ -492,14 +492,14 @@ func (x *ApiConfig) GetName() string { return "" } -func (x *ApiConfig) GetCreateTime() *timestamppb.Timestamp { +func (x *ApiConfig) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ApiConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *ApiConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -574,9 +574,9 @@ type Gateway struct { // Format: projects/{project}/locations/{location}/gateways/{gateway} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Created time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Updated time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user-provided metadata. // Refer to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources @@ -632,14 +632,14 @@ func (x *Gateway) GetName() string { return "" } -func (x *Gateway) GetCreateTime() *timestamppb.Timestamp { +func (x *Gateway) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Gateway) GetUpdateTime() *timestamppb.Timestamp { +func (x *Gateway) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -964,7 +964,7 @@ type UpdateGatewayRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Gateway resource. Gateway *Gateway `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` } @@ -1001,7 +1001,7 @@ func (*UpdateGatewayRequest) Descriptor() ([]byte, []int) { return file_google_cloud_apigateway_v1_apigateway_proto_rawDescGZIP(), []int{7} } -func (x *UpdateGatewayRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGatewayRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1348,7 +1348,7 @@ type UpdateApiRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. API resource. Api *Api `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` } @@ -1385,7 +1385,7 @@ func (*UpdateApiRequest) Descriptor() ([]byte, []int) { return file_google_cloud_apigateway_v1_apigateway_proto_rawDescGZIP(), []int{13} } -func (x *UpdateApiRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateApiRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1742,7 +1742,7 @@ type UpdateApiConfigRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. API Config resource. ApiConfig *ApiConfig `protobuf:"bytes,2,opt,name=api_config,json=apiConfig,proto3" json:"api_config,omitempty"` } @@ -1779,7 +1779,7 @@ func (*UpdateApiConfigRequest) Descriptor() ([]byte, []int) { return file_google_cloud_apigateway_v1_apigateway_proto_rawDescGZIP(), []int{19} } -func (x *UpdateApiConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateApiConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1850,9 +1850,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1902,14 +1902,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_apigateway_v1_apigateway_proto_rawDescGZIP(), []int{21} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2676,8 +2676,8 @@ var file_google_cloud_apigateway_v1_apigateway_proto_goTypes = []interface{}{ nil, // 30: google.cloud.apigateway.v1.ApiConfig.LabelsEntry nil, // 31: google.cloud.apigateway.v1.Gateway.LabelsEntry (*OperationMetadata_Diagnostic)(nil), // 32: google.cloud.apigateway.v1.OperationMetadata.Diagnostic - (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 34: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 33: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 34: google.protobuf.FieldMask } var file_google_cloud_apigateway_v1_apigateway_proto_depIdxs = []int32{ 33, // 0: google.cloud.apigateway.v1.Api.create_time:type_name -> google.protobuf.Timestamp diff --git a/apigateway/apiv1/apigatewaypb/apigateway_service.pb.go b/apigateway/apiv1/apigatewaypb/apigateway_service.pb.go index fda2e5e56b66..7dd9088748ab 100644 --- a/apigateway/apiv1/apigatewaypb/apigateway_service.pb.go +++ b/apigateway/apiv1/apigatewaypb/apigateway_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/apigateway/v1/apigateway_service.proto package apigatewaypb diff --git a/apigateway/go.mod b/apigateway/go.mod index 9c116d8a75d5..bf482db07f61 100644 --- a/apigateway/go.mod +++ b/apigateway/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/apigeeconnect/apiv1/apigeeconnectpb/connection.pb.go b/apigeeconnect/apiv1/apigeeconnectpb/connection.pb.go index 5411db562233..33c6a6ad4e98 100644 --- a/apigeeconnect/apiv1/apigeeconnectpb/connection.pb.go +++ b/apigeeconnect/apiv1/apigeeconnectpb/connection.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/apigeeconnect/v1/connection.proto package apigeeconnectpb diff --git a/apigeeconnect/apiv1/apigeeconnectpb/tether.pb.go b/apigeeconnect/apiv1/apigeeconnectpb/tether.pb.go index d64c059a600e..61fbd7c0e5ba 100644 --- a/apigeeconnect/apiv1/apigeeconnectpb/tether.pb.go +++ b/apigeeconnect/apiv1/apigeeconnectpb/tether.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/apigeeconnect/v1/tether.proto package apigeeconnectpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -215,7 +215,7 @@ type EgressRequest struct { // Unique identifier for clients to trace their request/response. TraceId string `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // Timeout for the HTTP request. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` } func (x *EgressRequest) Reset() { @@ -285,7 +285,7 @@ func (x *EgressRequest) GetTraceId() string { return "" } -func (x *EgressRequest) GetTimeout() *durationpb.Duration { +func (x *EgressRequest) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -1018,19 +1018,19 @@ func file_google_cloud_apigeeconnect_v1_tether_proto_rawDescGZIP() []byte { var file_google_cloud_apigeeconnect_v1_tether_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_google_cloud_apigeeconnect_v1_tether_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_google_cloud_apigeeconnect_v1_tether_proto_goTypes = []interface{}{ - (Action)(0), // 0: google.cloud.apigeeconnect.v1.Action - (TetherEndpoint)(0), // 1: google.cloud.apigeeconnect.v1.TetherEndpoint - (Scheme)(0), // 2: google.cloud.apigeeconnect.v1.Scheme - (*EgressRequest)(nil), // 3: google.cloud.apigeeconnect.v1.EgressRequest - (*Payload)(nil), // 4: google.cloud.apigeeconnect.v1.Payload - (*StreamInfo)(nil), // 5: google.cloud.apigeeconnect.v1.StreamInfo - (*EgressResponse)(nil), // 6: google.cloud.apigeeconnect.v1.EgressResponse - (*HttpRequest)(nil), // 7: google.cloud.apigeeconnect.v1.HttpRequest - (*Url)(nil), // 8: google.cloud.apigeeconnect.v1.Url - (*Header)(nil), // 9: google.cloud.apigeeconnect.v1.Header - (*HttpResponse)(nil), // 10: google.cloud.apigeeconnect.v1.HttpResponse - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration - (*status.Status)(nil), // 12: google.rpc.Status + (Action)(0), // 0: google.cloud.apigeeconnect.v1.Action + (TetherEndpoint)(0), // 1: google.cloud.apigeeconnect.v1.TetherEndpoint + (Scheme)(0), // 2: google.cloud.apigeeconnect.v1.Scheme + (*EgressRequest)(nil), // 3: google.cloud.apigeeconnect.v1.EgressRequest + (*Payload)(nil), // 4: google.cloud.apigeeconnect.v1.Payload + (*StreamInfo)(nil), // 5: google.cloud.apigeeconnect.v1.StreamInfo + (*EgressResponse)(nil), // 6: google.cloud.apigeeconnect.v1.EgressResponse + (*HttpRequest)(nil), // 7: google.cloud.apigeeconnect.v1.HttpRequest + (*Url)(nil), // 8: google.cloud.apigeeconnect.v1.Url + (*Header)(nil), // 9: google.cloud.apigeeconnect.v1.Header + (*HttpResponse)(nil), // 10: google.cloud.apigeeconnect.v1.HttpResponse + (*duration.Duration)(nil), // 11: google.protobuf.Duration + (*status.Status)(nil), // 12: google.rpc.Status } var file_google_cloud_apigeeconnect_v1_tether_proto_depIdxs = []int32{ 4, // 0: google.cloud.apigeeconnect.v1.EgressRequest.payload:type_name -> google.cloud.apigeeconnect.v1.Payload diff --git a/apigeeconnect/go.mod b/apigeeconnect/go.mod index 8726feacf1ad..a4cf5cc03b28 100644 --- a/apigeeconnect/go.mod +++ b/apigeeconnect/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/apigeeconnect go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/appengine/apiv1/appenginepb/app_yaml.pb.go b/appengine/apiv1/appenginepb/app_yaml.pb.go index 2e65a43c4181..9b67ea3b16d4 100644 --- a/appengine/apiv1/appenginepb/app_yaml.pb.go +++ b/appengine/apiv1/appenginepb/app_yaml.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/app_yaml.proto package appenginepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -680,7 +680,7 @@ type StaticFilesHandler struct { MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // Time a static file served by this handler should be cached // by web proxies and browsers. - Expiration *durationpb.Duration `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"` + Expiration *duration.Duration `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"` // Whether this handler should match the request if the file // referenced by the handler does not exist. RequireMatchingFile bool `protobuf:"varint,6,opt,name=require_matching_file,json=requireMatchingFile,proto3" json:"require_matching_file,omitempty"` @@ -752,7 +752,7 @@ func (x *StaticFilesHandler) GetMimeType() string { return "" } -func (x *StaticFilesHandler) GetExpiration() *durationpb.Duration { +func (x *StaticFilesHandler) GetExpiration() *duration.Duration { if x != nil { return x.Expiration } @@ -894,9 +894,9 @@ type HealthCheck struct { // restarted. RestartThreshold uint32 `protobuf:"varint,5,opt,name=restart_threshold,json=restartThreshold,proto3" json:"restart_threshold,omitempty"` // Interval between health checks. - CheckInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` + CheckInterval *duration.Duration `protobuf:"bytes,6,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` // Time before the health check is considered failed. - Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"` } func (x *HealthCheck) Reset() { @@ -966,14 +966,14 @@ func (x *HealthCheck) GetRestartThreshold() uint32 { return 0 } -func (x *HealthCheck) GetCheckInterval() *durationpb.Duration { +func (x *HealthCheck) GetCheckInterval() *duration.Duration { if x != nil { return x.CheckInterval } return nil } -func (x *HealthCheck) GetTimeout() *durationpb.Duration { +func (x *HealthCheck) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -999,13 +999,13 @@ type ReadinessCheck struct { // traffic. SuccessThreshold uint32 `protobuf:"varint,4,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"` // Interval between health checks. - CheckInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` + CheckInterval *duration.Duration `protobuf:"bytes,5,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` // Time before the check is considered failed. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` // A maximum time limit on application initialization, measured from moment // the application successfully replies to a healthcheck until it is ready to // serve traffic. - AppStartTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=app_start_timeout,json=appStartTimeout,proto3" json:"app_start_timeout,omitempty"` + AppStartTimeout *duration.Duration `protobuf:"bytes,7,opt,name=app_start_timeout,json=appStartTimeout,proto3" json:"app_start_timeout,omitempty"` } func (x *ReadinessCheck) Reset() { @@ -1068,21 +1068,21 @@ func (x *ReadinessCheck) GetSuccessThreshold() uint32 { return 0 } -func (x *ReadinessCheck) GetCheckInterval() *durationpb.Duration { +func (x *ReadinessCheck) GetCheckInterval() *duration.Duration { if x != nil { return x.CheckInterval } return nil } -func (x *ReadinessCheck) GetTimeout() *durationpb.Duration { +func (x *ReadinessCheck) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } return nil } -func (x *ReadinessCheck) GetAppStartTimeout() *durationpb.Duration { +func (x *ReadinessCheck) GetAppStartTimeout() *duration.Duration { if x != nil { return x.AppStartTimeout } @@ -1108,11 +1108,11 @@ type LivenessCheck struct { // the VM healthy. SuccessThreshold uint32 `protobuf:"varint,4,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"` // Interval between health checks. - CheckInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` + CheckInterval *duration.Duration `protobuf:"bytes,5,opt,name=check_interval,json=checkInterval,proto3" json:"check_interval,omitempty"` // Time before the check is considered failed. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` // The initial delay before starting to execute the checks. - InitialDelay *durationpb.Duration `protobuf:"bytes,7,opt,name=initial_delay,json=initialDelay,proto3" json:"initial_delay,omitempty"` + InitialDelay *duration.Duration `protobuf:"bytes,7,opt,name=initial_delay,json=initialDelay,proto3" json:"initial_delay,omitempty"` } func (x *LivenessCheck) Reset() { @@ -1175,21 +1175,21 @@ func (x *LivenessCheck) GetSuccessThreshold() uint32 { return 0 } -func (x *LivenessCheck) GetCheckInterval() *durationpb.Duration { +func (x *LivenessCheck) GetCheckInterval() *duration.Duration { if x != nil { return x.CheckInterval } return nil } -func (x *LivenessCheck) GetTimeout() *durationpb.Duration { +func (x *LivenessCheck) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } return nil } -func (x *LivenessCheck) GetInitialDelay() *durationpb.Duration { +func (x *LivenessCheck) GetInitialDelay() *duration.Duration { if x != nil { return x.InitialDelay } @@ -1519,7 +1519,7 @@ var file_google_appengine_v1_app_yaml_proto_goTypes = []interface{}{ (*LivenessCheck)(nil), // 13: google.appengine.v1.LivenessCheck (*Library)(nil), // 14: google.appengine.v1.Library nil, // 15: google.appengine.v1.StaticFilesHandler.HttpHeadersEntry - (*durationpb.Duration)(nil), // 16: google.protobuf.Duration + (*duration.Duration)(nil), // 16: google.protobuf.Duration } var file_google_appengine_v1_app_yaml_proto_depIdxs = []int32{ 0, // 0: google.appengine.v1.ApiConfigHandler.auth_fail_action:type_name -> google.appengine.v1.AuthFailAction diff --git a/appengine/apiv1/appenginepb/appengine.pb.go b/appengine/apiv1/appenginepb/appengine.pb.go index 7fb7ccee3e55..cea8bcd7e1d9 100644 --- a/appengine/apiv1/appenginepb/appengine.pb.go +++ b/appengine/apiv1/appenginepb/appengine.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/appengine.proto package appenginepb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -315,7 +315,7 @@ type UpdateApplicationRequest struct { // An Application containing the updated resource. Application *Application `protobuf:"bytes,2,opt,name=application,proto3" json:"application,omitempty"` // Required. Standard field mask for the set of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateApplicationRequest) Reset() { @@ -364,7 +364,7 @@ func (x *UpdateApplicationRequest) GetApplication() *Application { return nil } -func (x *UpdateApplicationRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateApplicationRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -606,7 +606,7 @@ type UpdateServiceRequest struct { // field mask will be updated. Service *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // Required. Standard field mask for the set of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Set to `true` to gradually shift traffic to one or more versions that you // specify. By default, traffic is shifted immediately. // For gradual traffic migration, the target versions @@ -668,7 +668,7 @@ func (x *UpdateServiceRequest) GetService() *Service { return nil } -func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServiceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -997,7 +997,7 @@ type UpdateVersionRequest struct { // mask will be updated. Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Standard field mask for the set of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateVersionRequest) Reset() { @@ -1046,7 +1046,7 @@ func (x *UpdateVersionRequest) GetVersion() *Version { return nil } -func (x *UpdateVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateVersionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1769,7 +1769,7 @@ type UpdateIngressRuleRequest struct { // A FirewallRule containing the updated resource Rule *FirewallRule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` // Standard field mask for the set of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateIngressRuleRequest) Reset() { @@ -1818,7 +1818,7 @@ func (x *UpdateIngressRuleRequest) GetRule() *FirewallRule { return nil } -func (x *UpdateIngressRuleRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIngressRuleRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2265,7 +2265,7 @@ type UpdateAuthorizedCertificateRequest struct { Certificate *AuthorizedCertificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // Standard field mask for the set of fields to be updated. Updates are only // supported on the `certificate_raw_data` and `display_name` fields. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAuthorizedCertificateRequest) Reset() { @@ -2314,7 +2314,7 @@ func (x *UpdateAuthorizedCertificateRequest) GetCertificate() *AuthorizedCertifi return nil } -func (x *UpdateAuthorizedCertificateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAuthorizedCertificateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2627,7 +2627,7 @@ type UpdateDomainMappingRequest struct { // in the field mask will be updated. DomainMapping *DomainMapping `protobuf:"bytes,2,opt,name=domain_mapping,json=domainMapping,proto3" json:"domain_mapping,omitempty"` // Required. Standard field mask for the set of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDomainMappingRequest) Reset() { @@ -2676,7 +2676,7 @@ func (x *UpdateDomainMappingRequest) GetDomainMapping() *DomainMapping { return nil } -func (x *UpdateDomainMappingRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDomainMappingRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3618,7 +3618,7 @@ var file_google_appengine_v1_appengine_proto_goTypes = []interface{}{ (*UpdateDomainMappingRequest)(nil), // 43: google.appengine.v1.UpdateDomainMappingRequest (*DeleteDomainMappingRequest)(nil), // 44: google.appengine.v1.DeleteDomainMappingRequest (*Application)(nil), // 45: google.appengine.v1.Application - (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 46: google.protobuf.FieldMask (*Service)(nil), // 47: google.appengine.v1.Service (*Version)(nil), // 48: google.appengine.v1.Version (*Instance)(nil), // 49: google.appengine.v1.Instance @@ -3627,7 +3627,7 @@ var file_google_appengine_v1_appengine_proto_goTypes = []interface{}{ (*AuthorizedCertificate)(nil), // 52: google.appengine.v1.AuthorizedCertificate (*DomainMapping)(nil), // 53: google.appengine.v1.DomainMapping (*longrunning.Operation)(nil), // 54: google.longrunning.Operation - (*emptypb.Empty)(nil), // 55: google.protobuf.Empty + (*empty.Empty)(nil), // 55: google.protobuf.Empty } var file_google_appengine_v1_appengine_proto_depIdxs = []int32{ 45, // 0: google.appengine.v1.CreateApplicationRequest.application:type_name -> google.appengine.v1.Application @@ -5249,7 +5249,7 @@ type FirewallClient interface { // Updates the specified firewall rule. UpdateIngressRule(ctx context.Context, in *UpdateIngressRuleRequest, opts ...grpc.CallOption) (*FirewallRule, error) // Deletes the specified firewall rule. - DeleteIngressRule(ctx context.Context, in *DeleteIngressRuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteIngressRule(ctx context.Context, in *DeleteIngressRuleRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type firewallClient struct { @@ -5305,8 +5305,8 @@ func (c *firewallClient) UpdateIngressRule(ctx context.Context, in *UpdateIngres return out, nil } -func (c *firewallClient) DeleteIngressRule(ctx context.Context, in *DeleteIngressRuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *firewallClient) DeleteIngressRule(ctx context.Context, in *DeleteIngressRuleRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.appengine.v1.Firewall/DeleteIngressRule", in, out, opts...) if err != nil { return nil, err @@ -5331,7 +5331,7 @@ type FirewallServer interface { // Updates the specified firewall rule. UpdateIngressRule(context.Context, *UpdateIngressRuleRequest) (*FirewallRule, error) // Deletes the specified firewall rule. - DeleteIngressRule(context.Context, *DeleteIngressRuleRequest) (*emptypb.Empty, error) + DeleteIngressRule(context.Context, *DeleteIngressRuleRequest) (*empty.Empty, error) } // UnimplementedFirewallServer can be embedded to have forward compatible implementations. @@ -5353,7 +5353,7 @@ func (*UnimplementedFirewallServer) GetIngressRule(context.Context, *GetIngressR func (*UnimplementedFirewallServer) UpdateIngressRule(context.Context, *UpdateIngressRuleRequest) (*FirewallRule, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateIngressRule not implemented") } -func (*UnimplementedFirewallServer) DeleteIngressRule(context.Context, *DeleteIngressRuleRequest) (*emptypb.Empty, error) { +func (*UnimplementedFirewallServer) DeleteIngressRule(context.Context, *DeleteIngressRuleRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteIngressRule not implemented") } @@ -5593,7 +5593,7 @@ type AuthorizedCertificatesClient interface { // updated. UpdateAuthorizedCertificate(ctx context.Context, in *UpdateAuthorizedCertificateRequest, opts ...grpc.CallOption) (*AuthorizedCertificate, error) // Deletes the specified SSL certificate. - DeleteAuthorizedCertificate(ctx context.Context, in *DeleteAuthorizedCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAuthorizedCertificate(ctx context.Context, in *DeleteAuthorizedCertificateRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type authorizedCertificatesClient struct { @@ -5640,8 +5640,8 @@ func (c *authorizedCertificatesClient) UpdateAuthorizedCertificate(ctx context.C return out, nil } -func (c *authorizedCertificatesClient) DeleteAuthorizedCertificate(ctx context.Context, in *DeleteAuthorizedCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *authorizedCertificatesClient) DeleteAuthorizedCertificate(ctx context.Context, in *DeleteAuthorizedCertificateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.appengine.v1.AuthorizedCertificates/DeleteAuthorizedCertificate", in, out, opts...) if err != nil { return nil, err @@ -5664,7 +5664,7 @@ type AuthorizedCertificatesServer interface { // updated. UpdateAuthorizedCertificate(context.Context, *UpdateAuthorizedCertificateRequest) (*AuthorizedCertificate, error) // Deletes the specified SSL certificate. - DeleteAuthorizedCertificate(context.Context, *DeleteAuthorizedCertificateRequest) (*emptypb.Empty, error) + DeleteAuthorizedCertificate(context.Context, *DeleteAuthorizedCertificateRequest) (*empty.Empty, error) } // UnimplementedAuthorizedCertificatesServer can be embedded to have forward compatible implementations. @@ -5683,7 +5683,7 @@ func (*UnimplementedAuthorizedCertificatesServer) CreateAuthorizedCertificate(co func (*UnimplementedAuthorizedCertificatesServer) UpdateAuthorizedCertificate(context.Context, *UpdateAuthorizedCertificateRequest) (*AuthorizedCertificate, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAuthorizedCertificate not implemented") } -func (*UnimplementedAuthorizedCertificatesServer) DeleteAuthorizedCertificate(context.Context, *DeleteAuthorizedCertificateRequest) (*emptypb.Empty, error) { +func (*UnimplementedAuthorizedCertificatesServer) DeleteAuthorizedCertificate(context.Context, *DeleteAuthorizedCertificateRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthorizedCertificate not implemented") } diff --git a/appengine/apiv1/appenginepb/application.pb.go b/appengine/apiv1/appenginepb/application.pb.go index cad02abd786b..3ef3c4f7d625 100644 --- a/appengine/apiv1/appenginepb/application.pb.go +++ b/appengine/apiv1/appenginepb/application.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/application.proto package appenginepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -190,7 +190,7 @@ type Application struct { // @OutputOnly CodeBucket string `protobuf:"bytes,8,opt,name=code_bucket,json=codeBucket,proto3" json:"code_bucket,omitempty"` // Cookie expiration policy for this application. - DefaultCookieExpiration *durationpb.Duration `protobuf:"bytes,9,opt,name=default_cookie_expiration,json=defaultCookieExpiration,proto3" json:"default_cookie_expiration,omitempty"` + DefaultCookieExpiration *duration.Duration `protobuf:"bytes,9,opt,name=default_cookie_expiration,json=defaultCookieExpiration,proto3" json:"default_cookie_expiration,omitempty"` // Serving status of this application. ServingStatus Application_ServingStatus `protobuf:"varint,10,opt,name=serving_status,json=servingStatus,proto3,enum=google.appengine.v1.Application_ServingStatus" json:"serving_status,omitempty"` // Hostname used to reach this application, as resolved by App Engine. @@ -291,7 +291,7 @@ func (x *Application) GetCodeBucket() string { return "" } -func (x *Application) GetDefaultCookieExpiration() *durationpb.Duration { +func (x *Application) GetDefaultCookieExpiration() *duration.Duration { if x != nil { return x.DefaultCookieExpiration } @@ -718,7 +718,7 @@ var file_google_appengine_v1_application_proto_goTypes = []interface{}{ (*UrlDispatchRule)(nil), // 3: google.appengine.v1.UrlDispatchRule (*Application_IdentityAwareProxy)(nil), // 4: google.appengine.v1.Application.IdentityAwareProxy (*Application_FeatureSettings)(nil), // 5: google.appengine.v1.Application.FeatureSettings - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (*duration.Duration)(nil), // 6: google.protobuf.Duration } var file_google_appengine_v1_application_proto_depIdxs = []int32{ 3, // 0: google.appengine.v1.Application.dispatch_rules:type_name -> google.appengine.v1.UrlDispatchRule diff --git a/appengine/apiv1/appenginepb/audit_data.pb.go b/appengine/apiv1/appenginepb/audit_data.pb.go index 558d5d007c53..2d222dd2b1d6 100644 --- a/appengine/apiv1/appenginepb/audit_data.pb.go +++ b/appengine/apiv1/appenginepb/audit_data.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/audit_data.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/certificate.pb.go b/appengine/apiv1/appenginepb/certificate.pb.go index 4f73d89627ba..9542c14c7da7 100644 --- a/appengine/apiv1/appenginepb/certificate.pb.go +++ b/appengine/apiv1/appenginepb/certificate.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/certificate.proto package appenginepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -149,7 +149,7 @@ type AuthorizedCertificate struct { // using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). // // @OutputOnly - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // The SSL certificate serving the `AuthorizedCertificate` resource. This // must be obtained independently from a certificate authority. CertificateRawData *CertificateRawData `protobuf:"bytes,6,opt,name=certificate_raw_data,json=certificateRawData,proto3" json:"certificate_raw_data,omitempty"` @@ -243,7 +243,7 @@ func (x *AuthorizedCertificate) GetDomainNames() []string { return nil } -func (x *AuthorizedCertificate) GetExpireTime() *timestamppb.Timestamp { +func (x *AuthorizedCertificate) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -361,7 +361,7 @@ type ManagedCertificate struct { // certificate expires. Renewal errors can be tracked via `ManagementStatus`. // // @OutputOnly - LastRenewalTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_renewal_time,json=lastRenewalTime,proto3" json:"last_renewal_time,omitempty"` + LastRenewalTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_renewal_time,json=lastRenewalTime,proto3" json:"last_renewal_time,omitempty"` // Status of certificate management. Refers to the most recent certificate // acquisition or renewal attempt. // @@ -401,7 +401,7 @@ func (*ManagedCertificate) Descriptor() ([]byte, []int) { return file_google_appengine_v1_certificate_proto_rawDescGZIP(), []int{2} } -func (x *ManagedCertificate) GetLastRenewalTime() *timestamppb.Timestamp { +func (x *ManagedCertificate) GetLastRenewalTime() *timestamp.Timestamp { if x != nil { return x.LastRenewalTime } @@ -517,7 +517,7 @@ var file_google_appengine_v1_certificate_proto_goTypes = []interface{}{ (*AuthorizedCertificate)(nil), // 1: google.appengine.v1.AuthorizedCertificate (*CertificateRawData)(nil), // 2: google.appengine.v1.CertificateRawData (*ManagedCertificate)(nil), // 3: google.appengine.v1.ManagedCertificate - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp } var file_google_appengine_v1_certificate_proto_depIdxs = []int32{ 4, // 0: google.appengine.v1.AuthorizedCertificate.expire_time:type_name -> google.protobuf.Timestamp diff --git a/appengine/apiv1/appenginepb/deploy.pb.go b/appengine/apiv1/appenginepb/deploy.pb.go index f9e793f75a51..5c35f9f2a263 100644 --- a/appengine/apiv1/appenginepb/deploy.pb.go +++ b/appengine/apiv1/appenginepb/deploy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/deploy.proto package appenginepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -262,7 +262,7 @@ type CloudBuildOptions struct { AppYamlPath string `protobuf:"bytes,1,opt,name=app_yaml_path,json=appYamlPath,proto3" json:"app_yaml_path,omitempty"` // The Cloud Build timeout used as part of any dependent builds performed by // version creation. Defaults to 10 minutes. - CloudBuildTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=cloud_build_timeout,json=cloudBuildTimeout,proto3" json:"cloud_build_timeout,omitempty"` + CloudBuildTimeout *duration.Duration `protobuf:"bytes,2,opt,name=cloud_build_timeout,json=cloudBuildTimeout,proto3" json:"cloud_build_timeout,omitempty"` } func (x *CloudBuildOptions) Reset() { @@ -304,7 +304,7 @@ func (x *CloudBuildOptions) GetAppYamlPath() string { return "" } -func (x *CloudBuildOptions) GetCloudBuildTimeout() *durationpb.Duration { +func (x *CloudBuildOptions) GetCloudBuildTimeout() *duration.Duration { if x != nil { return x.CloudBuildTimeout } @@ -455,13 +455,13 @@ func file_google_appengine_v1_deploy_proto_rawDescGZIP() []byte { var file_google_appengine_v1_deploy_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_google_appengine_v1_deploy_proto_goTypes = []interface{}{ - (*Deployment)(nil), // 0: google.appengine.v1.Deployment - (*FileInfo)(nil), // 1: google.appengine.v1.FileInfo - (*ContainerInfo)(nil), // 2: google.appengine.v1.ContainerInfo - (*CloudBuildOptions)(nil), // 3: google.appengine.v1.CloudBuildOptions - (*ZipInfo)(nil), // 4: google.appengine.v1.ZipInfo - nil, // 5: google.appengine.v1.Deployment.FilesEntry - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (*Deployment)(nil), // 0: google.appengine.v1.Deployment + (*FileInfo)(nil), // 1: google.appengine.v1.FileInfo + (*ContainerInfo)(nil), // 2: google.appengine.v1.ContainerInfo + (*CloudBuildOptions)(nil), // 3: google.appengine.v1.CloudBuildOptions + (*ZipInfo)(nil), // 4: google.appengine.v1.ZipInfo + nil, // 5: google.appengine.v1.Deployment.FilesEntry + (*duration.Duration)(nil), // 6: google.protobuf.Duration } var file_google_appengine_v1_deploy_proto_depIdxs = []int32{ 5, // 0: google.appengine.v1.Deployment.files:type_name -> google.appengine.v1.Deployment.FilesEntry diff --git a/appengine/apiv1/appenginepb/deployed_files.pb.go b/appengine/apiv1/appenginepb/deployed_files.pb.go index 3effca1689d4..41fc56b21556 100644 --- a/appengine/apiv1/appenginepb/deployed_files.pb.go +++ b/appengine/apiv1/appenginepb/deployed_files.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/deployed_files.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/domain.pb.go b/appengine/apiv1/appenginepb/domain.pb.go index 0ec4fc40912a..a7dd473ac3fb 100644 --- a/appengine/apiv1/appenginepb/domain.pb.go +++ b/appengine/apiv1/appenginepb/domain.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/domain.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/domain_mapping.pb.go b/appengine/apiv1/appenginepb/domain_mapping.pb.go index 50ed91917e81..e1f60a5a16b3 100644 --- a/appengine/apiv1/appenginepb/domain_mapping.pb.go +++ b/appengine/apiv1/appenginepb/domain_mapping.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/domain_mapping.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/firewall.pb.go b/appengine/apiv1/appenginepb/firewall.pb.go index 0c78eb962d29..63b97826762e 100644 --- a/appengine/apiv1/appenginepb/firewall.pb.go +++ b/appengine/apiv1/appenginepb/firewall.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/firewall.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/instance.pb.go b/appengine/apiv1/appenginepb/instance.pb.go index b24615587e17..75a10fd9e44a 100644 --- a/appengine/apiv1/appenginepb/instance.pb.go +++ b/appengine/apiv1/appenginepb/instance.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/instance.proto package appenginepb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -189,7 +189,7 @@ type Instance struct { // Output only. Time that this instance was started. // // @OutputOnly - StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Number of requests since this instance was started. Requests int32 `protobuf:"varint,9,opt,name=requests,proto3" json:"requests,omitempty"` // Output only. Number of errors since this instance was started. @@ -295,7 +295,7 @@ func (x *Instance) GetVmId() string { return "" } -func (x *Instance) GetStartTime() *timestamppb.Timestamp { +func (x *Instance) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -514,7 +514,7 @@ var file_google_appengine_v1_instance_proto_goTypes = []interface{}{ (Instance_Liveness_LivenessState)(0), // 1: google.appengine.v1.Instance.Liveness.LivenessState (*Instance)(nil), // 2: google.appengine.v1.Instance (*Instance_Liveness)(nil), // 3: google.appengine.v1.Instance.Liveness - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp } var file_google_appengine_v1_instance_proto_depIdxs = []int32{ 0, // 0: google.appengine.v1.Instance.availability:type_name -> google.appengine.v1.Instance.Availability diff --git a/appengine/apiv1/appenginepb/location.pb.go b/appengine/apiv1/appenginepb/location.pb.go index dc295c705870..655f801eca39 100644 --- a/appengine/apiv1/appenginepb/location.pb.go +++ b/appengine/apiv1/appenginepb/location.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/location.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/network_settings.pb.go b/appengine/apiv1/appenginepb/network_settings.pb.go index 547880095446..bcecccff4251 100644 --- a/appengine/apiv1/appenginepb/network_settings.pb.go +++ b/appengine/apiv1/appenginepb/network_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/network_settings.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/operation.pb.go b/appengine/apiv1/appenginepb/operation.pb.go index a64a111690c3..bab84c0f529e 100644 --- a/appengine/apiv1/appenginepb/operation.pb.go +++ b/appengine/apiv1/appenginepb/operation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/operation.proto package appenginepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -50,11 +50,11 @@ type OperationMetadataV1 struct { // Time that this operation was created. // // @OutputOnly - InsertTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=insert_time,json=insertTime,proto3" json:"insert_time,omitempty"` + InsertTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=insert_time,json=insertTime,proto3" json:"insert_time,omitempty"` // Time that this operation completed. // // @OutputOnly - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // User who requested this operation. // // @OutputOnly @@ -118,14 +118,14 @@ func (x *OperationMetadataV1) GetMethod() string { return "" } -func (x *OperationMetadataV1) GetInsertTime() *timestamppb.Timestamp { +func (x *OperationMetadataV1) GetInsertTime() *timestamp.Timestamp { if x != nil { return x.InsertTime } return nil } -func (x *OperationMetadataV1) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadataV1) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -304,7 +304,7 @@ var file_google_appengine_v1_operation_proto_msgTypes = make([]protoimpl.Message var file_google_appengine_v1_operation_proto_goTypes = []interface{}{ (*OperationMetadataV1)(nil), // 0: google.appengine.v1.OperationMetadataV1 (*CreateVersionMetadataV1)(nil), // 1: google.appengine.v1.CreateVersionMetadataV1 - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_google_appengine_v1_operation_proto_depIdxs = []int32{ 2, // 0: google.appengine.v1.OperationMetadataV1.insert_time:type_name -> google.protobuf.Timestamp diff --git a/appengine/apiv1/appenginepb/service.pb.go b/appengine/apiv1/appenginepb/service.pb.go index 3257d7a962eb..ec81cf604150 100644 --- a/appengine/apiv1/appenginepb/service.pb.go +++ b/appengine/apiv1/appenginepb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/service.proto package appenginepb diff --git a/appengine/apiv1/appenginepb/version.pb.go b/appengine/apiv1/appenginepb/version.pb.go index 5dd1e9175c17..d292af45e581 100644 --- a/appengine/apiv1/appenginepb/version.pb.go +++ b/appengine/apiv1/appenginepb/version.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/appengine/v1/version.proto package appenginepb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -357,7 +357,7 @@ type Version struct { // Time that this version was created. // // @OutputOnly - CreateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Total size in bytes of all the files that are included in this version // and currently hosted on the App Engine disk. // @@ -407,7 +407,7 @@ type Version struct { // does not specify its own expiration time. // // Only returned in `GET` requests if `view=FULL` is set. - DefaultExpiration *durationpb.Duration `protobuf:"bytes,105,opt,name=default_expiration,json=defaultExpiration,proto3" json:"default_expiration,omitempty"` + DefaultExpiration *duration.Duration `protobuf:"bytes,105,opt,name=default_expiration,json=defaultExpiration,proto3" json:"default_expiration,omitempty"` // Configures health checking for instances. Unhealthy instances are // stopped and replaced with new instances. // Only applicable in the App Engine flexible environment. @@ -621,7 +621,7 @@ func (x *Version) GetCreatedBy() string { return "" } -func (x *Version) GetCreateTime() *timestamppb.Timestamp { +func (x *Version) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -698,7 +698,7 @@ func (x *Version) GetBuildEnvVariables() map[string]string { return nil } -func (x *Version) GetDefaultExpiration() *durationpb.Duration { +func (x *Version) GetDefaultExpiration() *duration.Duration { if x != nil { return x.DefaultExpiration } @@ -909,7 +909,7 @@ type AutomaticScaling struct { // This prevents the autoscaler from collecting information when the instance // is initializing, during which the collected usage would not be reliable. // Only applicable in the App Engine flexible environment. - CoolDownPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=cool_down_period,json=coolDownPeriod,proto3" json:"cool_down_period,omitempty"` + CoolDownPeriod *duration.Duration `protobuf:"bytes,1,opt,name=cool_down_period,json=coolDownPeriod,proto3" json:"cool_down_period,omitempty"` // Target scaling by CPU usage. CpuUtilization *CpuUtilization `protobuf:"bytes,2,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"` // Number of concurrent requests an automatic scaling instance can accept @@ -925,7 +925,7 @@ type AutomaticScaling struct { MaxTotalInstances int32 `protobuf:"varint,5,opt,name=max_total_instances,json=maxTotalInstances,proto3" json:"max_total_instances,omitempty"` // Maximum amount of time that a request should wait in the pending queue // before starting a new instance to handle it. - MaxPendingLatency *durationpb.Duration `protobuf:"bytes,6,opt,name=max_pending_latency,json=maxPendingLatency,proto3" json:"max_pending_latency,omitempty"` + MaxPendingLatency *duration.Duration `protobuf:"bytes,6,opt,name=max_pending_latency,json=maxPendingLatency,proto3" json:"max_pending_latency,omitempty"` // Minimum number of idle instances that should be maintained for // this version. Only applicable for the default version of a service. MinIdleInstances int32 `protobuf:"varint,7,opt,name=min_idle_instances,json=minIdleInstances,proto3" json:"min_idle_instances,omitempty"` @@ -934,7 +934,7 @@ type AutomaticScaling struct { MinTotalInstances int32 `protobuf:"varint,8,opt,name=min_total_instances,json=minTotalInstances,proto3" json:"min_total_instances,omitempty"` // Minimum amount of time a request should wait in the pending queue before // starting a new instance to handle it. - MinPendingLatency *durationpb.Duration `protobuf:"bytes,9,opt,name=min_pending_latency,json=minPendingLatency,proto3" json:"min_pending_latency,omitempty"` + MinPendingLatency *duration.Duration `protobuf:"bytes,9,opt,name=min_pending_latency,json=minPendingLatency,proto3" json:"min_pending_latency,omitempty"` // Target scaling by request utilization. RequestUtilization *RequestUtilization `protobuf:"bytes,10,opt,name=request_utilization,json=requestUtilization,proto3" json:"request_utilization,omitempty"` // Target scaling by disk usage. @@ -977,7 +977,7 @@ func (*AutomaticScaling) Descriptor() ([]byte, []int) { return file_google_appengine_v1_version_proto_rawDescGZIP(), []int{2} } -func (x *AutomaticScaling) GetCoolDownPeriod() *durationpb.Duration { +func (x *AutomaticScaling) GetCoolDownPeriod() *duration.Duration { if x != nil { return x.CoolDownPeriod } @@ -1012,7 +1012,7 @@ func (x *AutomaticScaling) GetMaxTotalInstances() int32 { return 0 } -func (x *AutomaticScaling) GetMaxPendingLatency() *durationpb.Duration { +func (x *AutomaticScaling) GetMaxPendingLatency() *duration.Duration { if x != nil { return x.MaxPendingLatency } @@ -1033,7 +1033,7 @@ func (x *AutomaticScaling) GetMinTotalInstances() int32 { return 0 } -func (x *AutomaticScaling) GetMinPendingLatency() *durationpb.Duration { +func (x *AutomaticScaling) GetMinPendingLatency() *duration.Duration { if x != nil { return x.MinPendingLatency } @@ -1079,7 +1079,7 @@ type BasicScaling struct { // Duration of time after the last request that an instance must wait before // the instance is shut down. - IdleTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"` + IdleTimeout *duration.Duration `protobuf:"bytes,1,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"` // Maximum number of instances to create for this version. MaxInstances int32 `protobuf:"varint,2,opt,name=max_instances,json=maxInstances,proto3" json:"max_instances,omitempty"` } @@ -1116,7 +1116,7 @@ func (*BasicScaling) Descriptor() ([]byte, []int) { return file_google_appengine_v1_version_proto_rawDescGZIP(), []int{3} } -func (x *BasicScaling) GetIdleTimeout() *durationpb.Duration { +func (x *BasicScaling) GetIdleTimeout() *duration.Duration { if x != nil { return x.IdleTimeout } @@ -1190,7 +1190,7 @@ type CpuUtilization struct { unknownFields protoimpl.UnknownFields // Period of time over which CPU utilization is calculated. - AggregationWindowLength *durationpb.Duration `protobuf:"bytes,1,opt,name=aggregation_window_length,json=aggregationWindowLength,proto3" json:"aggregation_window_length,omitempty"` + AggregationWindowLength *duration.Duration `protobuf:"bytes,1,opt,name=aggregation_window_length,json=aggregationWindowLength,proto3" json:"aggregation_window_length,omitempty"` // Target CPU utilization ratio to maintain when scaling. Must be between 0 // and 1. TargetUtilization float64 `protobuf:"fixed64,2,opt,name=target_utilization,json=targetUtilization,proto3" json:"target_utilization,omitempty"` @@ -1228,7 +1228,7 @@ func (*CpuUtilization) Descriptor() ([]byte, []int) { return file_google_appengine_v1_version_proto_rawDescGZIP(), []int{5} } -func (x *CpuUtilization) GetAggregationWindowLength() *durationpb.Duration { +func (x *CpuUtilization) GetAggregationWindowLength() *duration.Duration { if x != nil { return x.AggregationWindowLength } @@ -2380,12 +2380,12 @@ var file_google_appengine_v1_version_proto_goTypes = []interface{}{ nil, // 19: google.appengine.v1.Version.BetaSettingsEntry nil, // 20: google.appengine.v1.Version.EnvVariablesEntry nil, // 21: google.appengine.v1.Version.BuildEnvVariablesEntry - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 22: google.protobuf.Timestamp (*UrlMap)(nil), // 23: google.appengine.v1.UrlMap (*ErrorHandler)(nil), // 24: google.appengine.v1.ErrorHandler (*Library)(nil), // 25: google.appengine.v1.Library (*ApiConfigHandler)(nil), // 26: google.appengine.v1.ApiConfigHandler - (*durationpb.Duration)(nil), // 27: google.protobuf.Duration + (*duration.Duration)(nil), // 27: google.protobuf.Duration (*HealthCheck)(nil), // 28: google.appengine.v1.HealthCheck (*ReadinessCheck)(nil), // 29: google.appengine.v1.ReadinessCheck (*LivenessCheck)(nil), // 30: google.appengine.v1.LivenessCheck diff --git a/appengine/go.mod b/appengine/go.mod index 928fdede59b7..94cd73334911 100644 --- a/appengine/go.mod +++ b/appengine/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/artifactregistry/apiv1/artifactregistrypb/apt_artifact.pb.go b/artifactregistry/apiv1/artifactregistrypb/apt_artifact.pb.go index d45436648544..ba0fa030f01c 100644 --- a/artifactregistry/apiv1/artifactregistrypb/apt_artifact.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/apt_artifact.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/apt_artifact.proto package artifactregistrypb diff --git a/artifactregistry/apiv1/artifactregistrypb/artifact.pb.go b/artifactregistry/apiv1/artifactregistrypb/artifact.pb.go index b32ed61ce216..9754011d3f69 100644 --- a/artifactregistry/apiv1/artifactregistrypb/artifact.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/artifact.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/artifact.proto package artifactregistrypb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -70,7 +70,7 @@ type DockerImage struct { // Version resource. ImageSizeBytes int64 `protobuf:"varint,4,opt,name=image_size_bytes,json=imageSizeBytes,proto3" json:"image_size_bytes,omitempty"` // Time the image was uploaded. - UploadTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"` + UploadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"` // Media type of this image, e.g. // "application/vnd.docker.distribution.manifest.v2+json". // This field is returned as the 'metadata.mediaType' field in the @@ -81,7 +81,7 @@ type DockerImage struct { // Version resource. // The build time is returned to the client as an RFC 3339 string, which can // be easily used with the JavaScript Date constructor. - BuildTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"` + BuildTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"` } func (x *DockerImage) Reset() { @@ -144,7 +144,7 @@ func (x *DockerImage) GetImageSizeBytes() int64 { return 0 } -func (x *DockerImage) GetUploadTime() *timestamppb.Timestamp { +func (x *DockerImage) GetUploadTime() *timestamp.Timestamp { if x != nil { return x.UploadTime } @@ -158,7 +158,7 @@ func (x *DockerImage) GetMediaType() string { return "" } -func (x *DockerImage) GetBuildTime() *timestamppb.Timestamp { +func (x *DockerImage) GetBuildTime() *timestamp.Timestamp { if x != nil { return x.BuildTime } @@ -441,7 +441,7 @@ var file_google_devtools_artifactregistry_v1_artifact_proto_goTypes = []interfac (*ListDockerImagesRequest)(nil), // 1: google.devtools.artifactregistry.v1.ListDockerImagesRequest (*ListDockerImagesResponse)(nil), // 2: google.devtools.artifactregistry.v1.ListDockerImagesResponse (*GetDockerImageRequest)(nil), // 3: google.devtools.artifactregistry.v1.GetDockerImageRequest - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp } var file_google_devtools_artifactregistry_v1_artifact_proto_depIdxs = []int32{ 4, // 0: google.devtools.artifactregistry.v1.DockerImage.upload_time:type_name -> google.protobuf.Timestamp diff --git a/artifactregistry/apiv1/artifactregistrypb/file.pb.go b/artifactregistry/apiv1/artifactregistrypb/file.pb.go index bc077cb7a9d3..3e5b4ddb2816 100644 --- a/artifactregistry/apiv1/artifactregistrypb/file.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/file.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/file.proto package artifactregistrypb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -163,9 +163,9 @@ type File struct { // The hashes of the file content. Hashes []*Hash `protobuf:"bytes,4,rep,name=hashes,proto3" json:"hashes,omitempty"` // The time when the File was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the File was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The name of the Package or Version that owns this file, if any. Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` } @@ -223,14 +223,14 @@ func (x *File) GetHashes() []*Hash { return nil } -func (x *File) GetCreateTime() *timestamppb.Timestamp { +func (x *File) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *File) GetUpdateTime() *timestamppb.Timestamp { +func (x *File) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -551,13 +551,13 @@ func file_google_devtools_artifactregistry_v1_file_proto_rawDescGZIP() []byte { var file_google_devtools_artifactregistry_v1_file_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_devtools_artifactregistry_v1_file_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_devtools_artifactregistry_v1_file_proto_goTypes = []interface{}{ - (Hash_HashType)(0), // 0: google.devtools.artifactregistry.v1.Hash.HashType - (*Hash)(nil), // 1: google.devtools.artifactregistry.v1.Hash - (*File)(nil), // 2: google.devtools.artifactregistry.v1.File - (*ListFilesRequest)(nil), // 3: google.devtools.artifactregistry.v1.ListFilesRequest - (*ListFilesResponse)(nil), // 4: google.devtools.artifactregistry.v1.ListFilesResponse - (*GetFileRequest)(nil), // 5: google.devtools.artifactregistry.v1.GetFileRequest - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (Hash_HashType)(0), // 0: google.devtools.artifactregistry.v1.Hash.HashType + (*Hash)(nil), // 1: google.devtools.artifactregistry.v1.Hash + (*File)(nil), // 2: google.devtools.artifactregistry.v1.File + (*ListFilesRequest)(nil), // 3: google.devtools.artifactregistry.v1.ListFilesRequest + (*ListFilesResponse)(nil), // 4: google.devtools.artifactregistry.v1.ListFilesResponse + (*GetFileRequest)(nil), // 5: google.devtools.artifactregistry.v1.GetFileRequest + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_google_devtools_artifactregistry_v1_file_proto_depIdxs = []int32{ 0, // 0: google.devtools.artifactregistry.v1.Hash.type:type_name -> google.devtools.artifactregistry.v1.Hash.HashType diff --git a/artifactregistry/apiv1/artifactregistrypb/package.pb.go b/artifactregistry/apiv1/artifactregistrypb/package.pb.go index 3fb4fd106bd0..841d3286a0b5 100644 --- a/artifactregistry/apiv1/artifactregistrypb/package.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/package.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/package.proto package artifactregistrypb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -50,10 +50,10 @@ type Package struct { // The display name of the package. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The time when the package was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the package was last updated. This includes publishing a new // version of the package. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Package) Reset() { @@ -102,14 +102,14 @@ func (x *Package) GetDisplayName() string { return "" } -func (x *Package) GetCreateTime() *timestamppb.Timestamp { +func (x *Package) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Package) GetUpdateTime() *timestamppb.Timestamp { +func (x *Package) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -419,12 +419,12 @@ func file_google_devtools_artifactregistry_v1_package_proto_rawDescGZIP() []byte var file_google_devtools_artifactregistry_v1_package_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_devtools_artifactregistry_v1_package_proto_goTypes = []interface{}{ - (*Package)(nil), // 0: google.devtools.artifactregistry.v1.Package - (*ListPackagesRequest)(nil), // 1: google.devtools.artifactregistry.v1.ListPackagesRequest - (*ListPackagesResponse)(nil), // 2: google.devtools.artifactregistry.v1.ListPackagesResponse - (*GetPackageRequest)(nil), // 3: google.devtools.artifactregistry.v1.GetPackageRequest - (*DeletePackageRequest)(nil), // 4: google.devtools.artifactregistry.v1.DeletePackageRequest - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*Package)(nil), // 0: google.devtools.artifactregistry.v1.Package + (*ListPackagesRequest)(nil), // 1: google.devtools.artifactregistry.v1.ListPackagesRequest + (*ListPackagesResponse)(nil), // 2: google.devtools.artifactregistry.v1.ListPackagesResponse + (*GetPackageRequest)(nil), // 3: google.devtools.artifactregistry.v1.GetPackageRequest + (*DeletePackageRequest)(nil), // 4: google.devtools.artifactregistry.v1.DeletePackageRequest + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp } var file_google_devtools_artifactregistry_v1_package_proto_depIdxs = []int32{ 5, // 0: google.devtools.artifactregistry.v1.Package.create_time:type_name -> google.protobuf.Timestamp diff --git a/artifactregistry/apiv1/artifactregistrypb/repository.pb.go b/artifactregistry/apiv1/artifactregistrypb/repository.pb.go index 257536aa28b1..96117d3ed58d 100644 --- a/artifactregistry/apiv1/artifactregistrypb/repository.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/repository.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/repository.proto package artifactregistrypb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -188,9 +188,9 @@ type Repository struct { // and dashes. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The time when the repository was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the repository was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The Cloud KMS resource name of the customer managed encryption key that's // used to encrypt the contents of the Repository. Has the form: // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. @@ -272,14 +272,14 @@ func (x *Repository) GetLabels() map[string]string { return nil } -func (x *Repository) GetCreateTime() *timestamppb.Timestamp { +func (x *Repository) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Repository) GetUpdateTime() *timestamppb.Timestamp { +func (x *Repository) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -558,7 +558,7 @@ type UpdateRepositoryRequest struct { // The update mask applies to the resource. For the `FieldMask` definition, // see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateRepositoryRequest) Reset() { @@ -600,7 +600,7 @@ func (x *UpdateRepositoryRequest) GetRepository() *Repository { return nil } -func (x *UpdateRepositoryRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateRepositoryRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -902,8 +902,8 @@ var file_google_devtools_artifactregistry_v1_repository_proto_goTypes = []interf (*DeleteRepositoryRequest)(nil), // 8: google.devtools.artifactregistry.v1.DeleteRepositoryRequest (*Repository_MavenRepositoryConfig)(nil), // 9: google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig nil, // 10: google.devtools.artifactregistry.v1.Repository.LabelsEntry - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 12: google.protobuf.FieldMask } var file_google_devtools_artifactregistry_v1_repository_proto_depIdxs = []int32{ 9, // 0: google.devtools.artifactregistry.v1.Repository.maven_config:type_name -> google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig diff --git a/artifactregistry/apiv1/artifactregistrypb/service.pb.go b/artifactregistry/apiv1/artifactregistrypb/service.pb.go index ed1c6b883c78..22a3b3d96bef 100644 --- a/artifactregistry/apiv1/artifactregistrypb/service.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/service.proto package artifactregistrypb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" @@ -33,7 +34,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -594,7 +594,7 @@ var file_google_devtools_artifactregistry_v1_service_proto_goTypes = []interface (*File)(nil), // 38: google.devtools.artifactregistry.v1.File (*ListTagsResponse)(nil), // 39: google.devtools.artifactregistry.v1.ListTagsResponse (*Tag)(nil), // 40: google.devtools.artifactregistry.v1.Tag - (*emptypb.Empty)(nil), // 41: google.protobuf.Empty + (*empty.Empty)(nil), // 41: google.protobuf.Empty (*v1.Policy)(nil), // 42: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 43: google.iam.v1.TestIamPermissionsResponse (*ProjectSettings)(nil), // 44: google.devtools.artifactregistry.v1.ProjectSettings @@ -775,7 +775,7 @@ type ArtifactRegistryClient interface { // Updates a tag. UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error) // Deletes a tag. - DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the IAM policy for a given resource. SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Gets the IAM policy for a given resource. @@ -985,8 +985,8 @@ func (c *artifactRegistryClient) UpdateTag(ctx context.Context, in *UpdateTagReq return out, nil } -func (c *artifactRegistryClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *artifactRegistryClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteTag", in, out, opts...) if err != nil { return nil, err @@ -1095,7 +1095,7 @@ type ArtifactRegistryServer interface { // Updates a tag. UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) // Deletes a tag. - DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) + DeleteTag(context.Context, *DeleteTagRequest) (*empty.Empty, error) // Updates the IAM policy for a given resource. SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) // Gets the IAM policy for a given resource. @@ -1175,7 +1175,7 @@ func (*UnimplementedArtifactRegistryServer) CreateTag(context.Context, *CreateTa func (*UnimplementedArtifactRegistryServer) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTag not implemented") } -func (*UnimplementedArtifactRegistryServer) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) { +func (*UnimplementedArtifactRegistryServer) DeleteTag(context.Context, *DeleteTagRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTag not implemented") } func (*UnimplementedArtifactRegistryServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) { diff --git a/artifactregistry/apiv1/artifactregistrypb/settings.pb.go b/artifactregistry/apiv1/artifactregistrypb/settings.pb.go index bf9acb852d6f..8052492e30a6 100644 --- a/artifactregistry/apiv1/artifactregistrypb/settings.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/settings.proto package artifactregistrypb @@ -25,9 +25,9 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -216,7 +216,7 @@ type UpdateProjectSettingsRequest struct { // The project settings. ProjectSettings *ProjectSettings `protobuf:"bytes,2,opt,name=project_settings,json=projectSettings,proto3" json:"project_settings,omitempty"` // Field mask to support partial updates. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateProjectSettingsRequest) Reset() { @@ -258,7 +258,7 @@ func (x *UpdateProjectSettingsRequest) GetProjectSettings() *ProjectSettings { return nil } -func (x *UpdateProjectSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateProjectSettingsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -363,7 +363,7 @@ var file_google_devtools_artifactregistry_v1_settings_proto_goTypes = []interfac (*ProjectSettings)(nil), // 1: google.devtools.artifactregistry.v1.ProjectSettings (*GetProjectSettingsRequest)(nil), // 2: google.devtools.artifactregistry.v1.GetProjectSettingsRequest (*UpdateProjectSettingsRequest)(nil), // 3: google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest - (*fieldmaskpb.FieldMask)(nil), // 4: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 4: google.protobuf.FieldMask } var file_google_devtools_artifactregistry_v1_settings_proto_depIdxs = []int32{ 0, // 0: google.devtools.artifactregistry.v1.ProjectSettings.legacy_redirection_state:type_name -> google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState diff --git a/artifactregistry/apiv1/artifactregistrypb/tag.pb.go b/artifactregistry/apiv1/artifactregistrypb/tag.pb.go index 3a7d8a24172f..c4f8d9ef07b7 100644 --- a/artifactregistry/apiv1/artifactregistrypb/tag.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/tag.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/tag.proto package artifactregistrypb @@ -25,9 +25,9 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -373,7 +373,7 @@ type UpdateTagRequest struct { // The update mask applies to the resource. For the `FieldMask` definition, // see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTagRequest) Reset() { @@ -415,7 +415,7 @@ func (x *UpdateTagRequest) GetTag() *Tag { return nil } -func (x *UpdateTagRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -565,14 +565,14 @@ func file_google_devtools_artifactregistry_v1_tag_proto_rawDescGZIP() []byte { var file_google_devtools_artifactregistry_v1_tag_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_google_devtools_artifactregistry_v1_tag_proto_goTypes = []interface{}{ - (*Tag)(nil), // 0: google.devtools.artifactregistry.v1.Tag - (*ListTagsRequest)(nil), // 1: google.devtools.artifactregistry.v1.ListTagsRequest - (*ListTagsResponse)(nil), // 2: google.devtools.artifactregistry.v1.ListTagsResponse - (*GetTagRequest)(nil), // 3: google.devtools.artifactregistry.v1.GetTagRequest - (*CreateTagRequest)(nil), // 4: google.devtools.artifactregistry.v1.CreateTagRequest - (*UpdateTagRequest)(nil), // 5: google.devtools.artifactregistry.v1.UpdateTagRequest - (*DeleteTagRequest)(nil), // 6: google.devtools.artifactregistry.v1.DeleteTagRequest - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*Tag)(nil), // 0: google.devtools.artifactregistry.v1.Tag + (*ListTagsRequest)(nil), // 1: google.devtools.artifactregistry.v1.ListTagsRequest + (*ListTagsResponse)(nil), // 2: google.devtools.artifactregistry.v1.ListTagsResponse + (*GetTagRequest)(nil), // 3: google.devtools.artifactregistry.v1.GetTagRequest + (*CreateTagRequest)(nil), // 4: google.devtools.artifactregistry.v1.CreateTagRequest + (*UpdateTagRequest)(nil), // 5: google.devtools.artifactregistry.v1.UpdateTagRequest + (*DeleteTagRequest)(nil), // 6: google.devtools.artifactregistry.v1.DeleteTagRequest + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask } var file_google_devtools_artifactregistry_v1_tag_proto_depIdxs = []int32{ 0, // 0: google.devtools.artifactregistry.v1.ListTagsResponse.tags:type_name -> google.devtools.artifactregistry.v1.Tag diff --git a/artifactregistry/apiv1/artifactregistrypb/version.pb.go b/artifactregistry/apiv1/artifactregistrypb/version.pb.go index 3c7124c4b464..74bfdabc3dd5 100644 --- a/artifactregistry/apiv1/artifactregistrypb/version.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/version.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/version.proto package artifactregistrypb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -109,9 +109,9 @@ type Version struct { // Optional. Description of the version, as specified in its metadata. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The time when the version was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the version was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. A list of related tags. Will contain up to 100 tags that // reference this version. RelatedTags []*Tag `protobuf:"bytes,7,rep,name=related_tags,json=relatedTags,proto3" json:"related_tags,omitempty"` @@ -119,7 +119,7 @@ type Version struct { // The fields returned are defined by the underlying repository-specific // resource. Currently, the only resource in use is // [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - Metadata *structpb.Struct `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata *_struct.Struct `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *Version) Reset() { @@ -168,14 +168,14 @@ func (x *Version) GetDescription() string { return "" } -func (x *Version) GetCreateTime() *timestamppb.Timestamp { +func (x *Version) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Version) GetUpdateTime() *timestamppb.Timestamp { +func (x *Version) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -189,7 +189,7 @@ func (x *Version) GetRelatedTags() []*Tag { return nil } -func (x *Version) GetMetadata() *structpb.Struct { +func (x *Version) GetMetadata() *_struct.Struct { if x != nil { return x.Metadata } @@ -577,15 +577,15 @@ func file_google_devtools_artifactregistry_v1_version_proto_rawDescGZIP() []byte var file_google_devtools_artifactregistry_v1_version_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_devtools_artifactregistry_v1_version_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_devtools_artifactregistry_v1_version_proto_goTypes = []interface{}{ - (VersionView)(0), // 0: google.devtools.artifactregistry.v1.VersionView - (*Version)(nil), // 1: google.devtools.artifactregistry.v1.Version - (*ListVersionsRequest)(nil), // 2: google.devtools.artifactregistry.v1.ListVersionsRequest - (*ListVersionsResponse)(nil), // 3: google.devtools.artifactregistry.v1.ListVersionsResponse - (*GetVersionRequest)(nil), // 4: google.devtools.artifactregistry.v1.GetVersionRequest - (*DeleteVersionRequest)(nil), // 5: google.devtools.artifactregistry.v1.DeleteVersionRequest - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - (*Tag)(nil), // 7: google.devtools.artifactregistry.v1.Tag - (*structpb.Struct)(nil), // 8: google.protobuf.Struct + (VersionView)(0), // 0: google.devtools.artifactregistry.v1.VersionView + (*Version)(nil), // 1: google.devtools.artifactregistry.v1.Version + (*ListVersionsRequest)(nil), // 2: google.devtools.artifactregistry.v1.ListVersionsRequest + (*ListVersionsResponse)(nil), // 3: google.devtools.artifactregistry.v1.ListVersionsResponse + (*GetVersionRequest)(nil), // 4: google.devtools.artifactregistry.v1.GetVersionRequest + (*DeleteVersionRequest)(nil), // 5: google.devtools.artifactregistry.v1.DeleteVersionRequest + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*Tag)(nil), // 7: google.devtools.artifactregistry.v1.Tag + (*_struct.Struct)(nil), // 8: google.protobuf.Struct } var file_google_devtools_artifactregistry_v1_version_proto_depIdxs = []int32{ 6, // 0: google.devtools.artifactregistry.v1.Version.create_time:type_name -> google.protobuf.Timestamp diff --git a/artifactregistry/apiv1/artifactregistrypb/yum_artifact.pb.go b/artifactregistry/apiv1/artifactregistrypb/yum_artifact.pb.go index 680d87383b31..ac19dda763b0 100644 --- a/artifactregistry/apiv1/artifactregistrypb/yum_artifact.pb.go +++ b/artifactregistry/apiv1/artifactregistrypb/yum_artifact.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/artifactregistry/v1/yum_artifact.proto package artifactregistrypb diff --git a/asset/apiv1/assetpb/asset_service.pb.go b/asset/apiv1/assetpb/asset_service.pb.go index 60e9bcce7cff..6c1666d769b6 100644 --- a/asset/apiv1/assetpb/asset_service.pb.go +++ b/asset/apiv1/assetpb/asset_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1/asset_service.proto package assetpb @@ -25,21 +25,21 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" expr "google.golang.org/genproto/googleapis/type/expr" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -301,7 +301,7 @@ type AnalyzeIamPolicyLongrunningMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *AnalyzeIamPolicyLongrunningMetadata) Reset() { @@ -336,7 +336,7 @@ func (*AnalyzeIamPolicyLongrunningMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_asset_service_proto_rawDescGZIP(), []int{0} } -func (x *AnalyzeIamPolicyLongrunningMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *AnalyzeIamPolicyLongrunningMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -359,7 +359,7 @@ type ExportAssetsRequest struct { // If not specified, the current time will be used. Due to delays in resource // data collection and indexing, there is a volatile window during which // running the same query may get different results. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // A list of asset types to take a snapshot for. For example: // "compute.googleapis.com/Disk". // @@ -441,7 +441,7 @@ func (x *ExportAssetsRequest) GetParent() string { return "" } -func (x *ExportAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *ExportAssetsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -485,7 +485,7 @@ type ExportAssetsResponse struct { unknownFields protoimpl.UnknownFields // Time the snapshot was taken. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Output configuration indicating where the results were output to. OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // Output result indicating where the assets were exported to. For example, a @@ -528,7 +528,7 @@ func (*ExportAssetsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_asset_service_proto_rawDescGZIP(), []int{2} } -func (x *ExportAssetsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *ExportAssetsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -566,7 +566,7 @@ type ListAssetsRequest struct { // If not specified, the current time will be used. Due to delays in resource // data collection and indexing, there is a volatile window during which // running the same query may get different results. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // A list of asset types to take a snapshot for. For example: // "compute.googleapis.com/Disk". // @@ -653,7 +653,7 @@ func (x *ListAssetsRequest) GetParent() string { return "" } -func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -702,7 +702,7 @@ type ListAssetsResponse struct { unknownFields protoimpl.UnknownFields // Time the snapshot was taken. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Assets. Assets []*Asset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` // Token to retrieve the next page of results. It expires 72 hours after the @@ -743,7 +743,7 @@ func (*ListAssetsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_asset_service_proto_rawDescGZIP(), []int{4} } -func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -1169,7 +1169,7 @@ type UpdateFeedRequest struct { // Required. Only updates the `feed` fields indicated by this mask. // The field mask must not be empty, and it must not contain fields that // are immutable or only set by the server. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFeedRequest) Reset() { @@ -1211,7 +1211,7 @@ func (x *UpdateFeedRequest) GetFeed() *Feed { return nil } -func (x *UpdateFeedRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFeedRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2192,7 +2192,7 @@ type SearchAllResourcesRequest struct { // If only '*' is specified, all fields including versionedResources will be // returned. // Any invalid field path will trigger INVALID_ARGUMENT error. - ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,8,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + ReadMask *field_mask.FieldMask `protobuf:"bytes,8,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` } func (x *SearchAllResourcesRequest) Reset() { @@ -2269,7 +2269,7 @@ func (x *SearchAllResourcesRequest) GetOrderBy() string { return "" } -func (x *SearchAllResourcesRequest) GetReadMask() *fieldmaskpb.FieldMask { +func (x *SearchAllResourcesRequest) GetReadMask() *field_mask.FieldMask { if x != nil { return x.ReadMask } @@ -2715,7 +2715,7 @@ type AnalyzeIamPolicyRequest struct { // If it's not finished until then, you will get a DEADLINE_EXCEEDED error. // // Default is empty. - ExecutionTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` + ExecutionTimeout *duration.Duration `protobuf:"bytes,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` } func (x *AnalyzeIamPolicyRequest) Reset() { @@ -2764,7 +2764,7 @@ func (x *AnalyzeIamPolicyRequest) GetSavedAnalysisQuery() string { return "" } -func (x *AnalyzeIamPolicyRequest) GetExecutionTimeout() *durationpb.Duration { +func (x *AnalyzeIamPolicyRequest) GetExecutionTimeout() *duration.Duration { if x != nil { return x.ExecutionTimeout } @@ -3066,11 +3066,11 @@ type SavedQuery struct { // characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The create time of this saved query. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The account's email address who has created this saved query. Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` // Output only. The last update time of this saved query. - LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` + LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` // Output only. The account's email address who has updated this saved query most recently. LastUpdater string `protobuf:"bytes,6,opt,name=last_updater,json=lastUpdater,proto3" json:"last_updater,omitempty"` // Labels applied on the resource. @@ -3127,7 +3127,7 @@ func (x *SavedQuery) GetDescription() string { return "" } -func (x *SavedQuery) GetCreateTime() *timestamppb.Timestamp { +func (x *SavedQuery) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -3141,7 +3141,7 @@ func (x *SavedQuery) GetCreator() string { return "" } -func (x *SavedQuery) GetLastUpdateTime() *timestamppb.Timestamp { +func (x *SavedQuery) GetLastUpdateTime() *timestamp.Timestamp { if x != nil { return x.LastUpdateTime } @@ -3468,7 +3468,7 @@ type UpdateSavedQueryRequest struct { // * organizations/organization_number/savedQueries/saved_query_id SavedQuery *SavedQuery `protobuf:"bytes,1,opt,name=saved_query,json=savedQuery,proto3" json:"saved_query,omitempty"` // Required. The list of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSavedQueryRequest) Reset() { @@ -3510,7 +3510,7 @@ func (x *UpdateSavedQueryRequest) GetSavedQuery() *SavedQuery { return nil } -func (x *UpdateSavedQueryRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSavedQueryRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3990,7 +3990,7 @@ type QueryAssetsRequest struct { // is not complete. // // The field will be ignored when [output_config] is specified. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` // Specifies what time period or point in time to query asset metadata at. // * unset - query asset metadata as it is right now // * [read_time_window] - query asset metadata as it was at any point in time @@ -4090,7 +4090,7 @@ func (x *QueryAssetsRequest) GetPageToken() string { return "" } -func (x *QueryAssetsRequest) GetTimeout() *durationpb.Duration { +func (x *QueryAssetsRequest) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -4111,7 +4111,7 @@ func (x *QueryAssetsRequest) GetReadTimeWindow() *TimeWindow { return nil } -func (x *QueryAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *QueryAssetsRequest) GetReadTime() *timestamp.Timestamp { if x, ok := x.GetTime().(*QueryAssetsRequest_ReadTime); ok { return x.ReadTime } @@ -4158,7 +4158,7 @@ type QueryAssetsRequest_ReadTimeWindow struct { type QueryAssetsRequest_ReadTime struct { // Optional. Queries cloud assets as they appeared at the specified point in time. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=read_time,json=readTime,proto3,oneof"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=read_time,json=readTime,proto3,oneof"` } func (*QueryAssetsRequest_ReadTimeWindow) isQueryAssetsRequest_Time() {} @@ -4299,7 +4299,7 @@ type QueryResult struct { unknownFields protoimpl.UnknownFields // Each row hold a query result in the format of `Struct`. - Rows []*structpb.Struct `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"` + Rows []*_struct.Struct `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"` // Describes the format of the [rows]. Schema *TableSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` // Token to retrieve the next page of the results. @@ -4340,7 +4340,7 @@ func (*QueryResult) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_asset_service_proto_rawDescGZIP(), []int{47} } -func (x *QueryResult) GetRows() []*structpb.Struct { +func (x *QueryResult) GetRows() []*_struct.Struct { if x != nil { return x.Rows } @@ -5037,7 +5037,7 @@ func (m *IamPolicyAnalysisQuery_ConditionContext) GetTimeContext() isIamPolicyAn return nil } -func (x *IamPolicyAnalysisQuery_ConditionContext) GetAccessTime() *timestamppb.Timestamp { +func (x *IamPolicyAnalysisQuery_ConditionContext) GetAccessTime() *timestamp.Timestamp { if x, ok := x.GetTimeContext().(*IamPolicyAnalysisQuery_ConditionContext_AccessTime); ok { return x.AccessTime } @@ -5052,7 +5052,7 @@ type IamPolicyAnalysisQuery_ConditionContext_AccessTime struct { // The hypothetical access timestamp to evaluate IAM conditions. Note that // this value must not be earlier than the current time; otherwise, an // INVALID_ARGUMENT error will be returned. - AccessTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=access_time,json=accessTime,proto3,oneof"` + AccessTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=access_time,json=accessTime,proto3,oneof"` } func (*IamPolicyAnalysisQuery_ConditionContext_AccessTime) isIamPolicyAnalysisQuery_ConditionContext_TimeContext() { @@ -6695,22 +6695,22 @@ var file_google_cloud_asset_v1_asset_service_proto_goTypes = []interface{}{ (*QueryAssetsOutputConfig_BigQueryDestination)(nil), // 66: google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy)(nil), // 67: google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo)(nil), // 68: google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo - (*timestamppb.Timestamp)(nil), // 69: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 69: google.protobuf.Timestamp (*Asset)(nil), // 70: google.cloud.asset.v1.Asset (*TimeWindow)(nil), // 71: google.cloud.asset.v1.TimeWindow (*TemporalAsset)(nil), // 72: google.cloud.asset.v1.TemporalAsset - (*fieldmaskpb.FieldMask)(nil), // 73: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 73: google.protobuf.FieldMask (*expr.Expr)(nil), // 74: google.type.Expr (*ResourceSearchResult)(nil), // 75: google.cloud.asset.v1.ResourceSearchResult (*IamPolicySearchResult)(nil), // 76: google.cloud.asset.v1.IamPolicySearchResult - (*durationpb.Duration)(nil), // 77: google.protobuf.Duration + (*duration.Duration)(nil), // 77: google.protobuf.Duration (*status.Status)(nil), // 78: google.rpc.Status - (*structpb.Struct)(nil), // 79: google.protobuf.Struct + (*_struct.Struct)(nil), // 79: google.protobuf.Struct (*IamPolicyAnalysisResult)(nil), // 80: google.cloud.asset.v1.IamPolicyAnalysisResult (*IamPolicyAnalysisState)(nil), // 81: google.cloud.asset.v1.IamPolicyAnalysisState (*v1.Policy)(nil), // 82: google.iam.v1.Policy (*longrunning.Operation)(nil), // 83: google.longrunning.Operation - (*emptypb.Empty)(nil), // 84: google.protobuf.Empty + (*empty.Empty)(nil), // 84: google.protobuf.Empty } var file_google_cloud_asset_v1_asset_service_proto_depIdxs = []int32{ 69, // 0: google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.create_time:type_name -> google.protobuf.Timestamp @@ -7718,7 +7718,7 @@ type AssetServiceClient interface { // Updates an asset feed configuration. UpdateFeed(ctx context.Context, in *UpdateFeedRequest, opts ...grpc.CallOption) (*Feed, error) // Deletes an asset feed. - DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Searches all Cloud resources within the specified scope, such as a project, // folder, or organization. The caller must be granted the // `cloudasset.assets.searchAllResources` permission on the desired scope, @@ -7772,7 +7772,7 @@ type AssetServiceClient interface { // Updates a saved query. UpdateSavedQuery(ctx context.Context, in *UpdateSavedQueryRequest, opts ...grpc.CallOption) (*SavedQuery, error) // Deletes a saved query. - DeleteSavedQuery(ctx context.Context, in *DeleteSavedQueryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSavedQuery(ctx context.Context, in *DeleteSavedQueryRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets effective IAM policies for a batch of resources. BatchGetEffectiveIamPolicies(ctx context.Context, in *BatchGetEffectiveIamPoliciesRequest, opts ...grpc.CallOption) (*BatchGetEffectiveIamPoliciesResponse, error) } @@ -7848,8 +7848,8 @@ func (c *assetServiceClient) UpdateFeed(ctx context.Context, in *UpdateFeedReque return out, nil } -func (c *assetServiceClient) DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *assetServiceClient) DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.asset.v1.AssetService/DeleteFeed", in, out, opts...) if err != nil { return nil, err @@ -7947,8 +7947,8 @@ func (c *assetServiceClient) UpdateSavedQuery(ctx context.Context, in *UpdateSav return out, nil } -func (c *assetServiceClient) DeleteSavedQuery(ctx context.Context, in *DeleteSavedQueryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *assetServiceClient) DeleteSavedQuery(ctx context.Context, in *DeleteSavedQueryRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.asset.v1.AssetService/DeleteSavedQuery", in, out, opts...) if err != nil { return nil, err @@ -7999,7 +7999,7 @@ type AssetServiceServer interface { // Updates an asset feed configuration. UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error) // Deletes an asset feed. - DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error) + DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error) // Searches all Cloud resources within the specified scope, such as a project, // folder, or organization. The caller must be granted the // `cloudasset.assets.searchAllResources` permission on the desired scope, @@ -8053,7 +8053,7 @@ type AssetServiceServer interface { // Updates a saved query. UpdateSavedQuery(context.Context, *UpdateSavedQueryRequest) (*SavedQuery, error) // Deletes a saved query. - DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*emptypb.Empty, error) + DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*empty.Empty, error) // Gets effective IAM policies for a batch of resources. BatchGetEffectiveIamPolicies(context.Context, *BatchGetEffectiveIamPoliciesRequest) (*BatchGetEffectiveIamPoliciesResponse, error) } @@ -8083,7 +8083,7 @@ func (*UnimplementedAssetServiceServer) ListFeeds(context.Context, *ListFeedsReq func (*UnimplementedAssetServiceServer) UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error) { return nil, status1.Errorf(codes.Unimplemented, "method UpdateFeed not implemented") } -func (*UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error) { +func (*UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteFeed not implemented") } func (*UnimplementedAssetServiceServer) SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error) { @@ -8116,7 +8116,7 @@ func (*UnimplementedAssetServiceServer) ListSavedQueries(context.Context, *ListS func (*UnimplementedAssetServiceServer) UpdateSavedQuery(context.Context, *UpdateSavedQueryRequest) (*SavedQuery, error) { return nil, status1.Errorf(codes.Unimplemented, "method UpdateSavedQuery not implemented") } -func (*UnimplementedAssetServiceServer) DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*emptypb.Empty, error) { +func (*UnimplementedAssetServiceServer) DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteSavedQuery not implemented") } func (*UnimplementedAssetServiceServer) BatchGetEffectiveIamPolicies(context.Context, *BatchGetEffectiveIamPoliciesRequest) (*BatchGetEffectiveIamPoliciesResponse, error) { diff --git a/asset/apiv1/assetpb/assets.pb.go b/asset/apiv1/assetpb/assets.pb.go index 67ac3b9cbbfa..9413dc44b6f9 100644 --- a/asset/apiv1/assetpb/assets.pb.go +++ b/asset/apiv1/assetpb/assets.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1/assets.proto package assetpb @@ -24,6 +24,8 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v11 "google.golang.org/genproto/googleapis/cloud/orgpolicy/v1" v12 "google.golang.org/genproto/googleapis/cloud/osconfig/v1" @@ -32,8 +34,6 @@ import ( code "google.golang.org/genproto/googleapis/rpc/code" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -257,10 +257,10 @@ type TimeWindow struct { unknownFields protoimpl.UnknownFields // Start time of the time window (exclusive). - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of the time window (inclusive). If not specified, the current // timestamp is used instead. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimeWindow) Reset() { @@ -295,14 +295,14 @@ func (*TimeWindow) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_assets_proto_rawDescGZIP(), []int{1} } -func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -325,7 +325,7 @@ type Asset struct { // The last update timestamp of an asset. update_time is updated when // create/update/delete operation is performed. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The full name of the asset. Example: // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` // @@ -422,7 +422,7 @@ func (*Asset) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1_assets_proto_rawDescGZIP(), []int{2} } -func (x *Asset) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -591,7 +591,7 @@ type Resource struct { Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // The content of the resource, in which some sensitive fields are removed // and may not be present. - Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // The location of the resource in Google Cloud, such as its zone and region. // For more information, see https://cloud.google.com/about/locations/. Location string `protobuf:"bytes,8,opt,name=location,proto3" json:"location,omitempty"` @@ -664,7 +664,7 @@ func (x *Resource) GetParent() string { return "" } -func (x *Resource) GetData() *structpb.Struct { +func (x *Resource) GetData() *_struct.Struct { if x != nil { return x.Data } @@ -1070,7 +1070,7 @@ type ResourceSearchResult struct { // - value in date string. Example: `createTime > 2021-01-01` // - value in date-time string (must be quoted). Example: `createTime > // "2021-01-01T00:00:00"` - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update timestamp of this resource, at which the resource was last // modified or deleted. The granularity is in seconds. Timestamp.nanos will // always be 0. This field is available only when the resource's Protobuf @@ -1083,7 +1083,7 @@ type ResourceSearchResult struct { // - value in date string. Example: `updateTime < 2021-01-01` // - value in date-time string (must be quoted). Example: `updateTime < // "2021-01-01T00:00:00"` - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The state of this resource. Different resources types have different state // definitions that are mapped from various fields of different resource // types. This field is available only when the resource's Protobuf contains @@ -1124,7 +1124,7 @@ type ResourceSearchResult struct { // - Use a free text query to match the attributes values. Example: to search // `additional_attributes = { dnsName: "foobar" }`, you can issue a query // `foobar`. - AdditionalAttributes *structpb.Struct `protobuf:"bytes,9,opt,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"` + AdditionalAttributes *_struct.Struct `protobuf:"bytes,9,opt,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"` // The full resource name of this resource's parent, if it has one. // To search against the `parent_full_resource_name`: // @@ -1318,14 +1318,14 @@ func (x *ResourceSearchResult) GetKmsKeys() []string { return nil } -func (x *ResourceSearchResult) GetCreateTime() *timestamppb.Timestamp { +func (x *ResourceSearchResult) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ResourceSearchResult) GetUpdateTime() *timestamppb.Timestamp { +func (x *ResourceSearchResult) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1339,7 +1339,7 @@ func (x *ResourceSearchResult) GetState() string { return "" } -func (x *ResourceSearchResult) GetAdditionalAttributes() *structpb.Struct { +func (x *ResourceSearchResult) GetAdditionalAttributes() *_struct.Struct { if x != nil { return x.AdditionalAttributes } @@ -1428,7 +1428,7 @@ type VersionedResource struct { // You can find the resource definition for each supported resource type in // this table: // `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types` - Resource *structpb.Struct `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Resource *_struct.Struct `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` } func (x *VersionedResource) Reset() { @@ -1470,7 +1470,7 @@ func (x *VersionedResource) GetVersion() string { return "" } -func (x *VersionedResource) GetResource() *structpb.Struct { +func (x *VersionedResource) GetResource() *_struct.Struct { if x != nil { return x.Resource } @@ -3056,14 +3056,14 @@ var file_google_cloud_asset_v1_assets_proto_goTypes = []interface{}{ (*IamPolicyAnalysisResult_Edge)(nil), // 26: google.cloud.asset.v1.IamPolicyAnalysisResult.Edge (*IamPolicyAnalysisResult_AccessControlList)(nil), // 27: google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList (*IamPolicyAnalysisResult_IdentityList)(nil), // 28: google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 29: google.protobuf.Timestamp (*v1.Policy)(nil), // 30: google.iam.v1.Policy (*v11.Policy)(nil), // 31: google.cloud.orgpolicy.v1.Policy (*v13.AccessPolicy)(nil), // 32: google.identity.accesscontextmanager.v1.AccessPolicy (*v13.AccessLevel)(nil), // 33: google.identity.accesscontextmanager.v1.AccessLevel (*v13.ServicePerimeter)(nil), // 34: google.identity.accesscontextmanager.v1.ServicePerimeter (*v12.Inventory)(nil), // 35: google.cloud.osconfig.v1.Inventory - (*structpb.Struct)(nil), // 36: google.protobuf.Struct + (*_struct.Struct)(nil), // 36: google.protobuf.Struct (code.Code)(0), // 37: google.rpc.Code (*v1.Binding)(nil), // 38: google.iam.v1.Binding } diff --git a/assuredworkloads/apiv1/assuredworkloadspb/assuredworkloads.pb.go b/assuredworkloads/apiv1/assuredworkloadspb/assuredworkloads.pb.go index 5abaa24617f9..5afbb5cf1dfd 100644 --- a/assuredworkloads/apiv1/assuredworkloadspb/assuredworkloads.pb.go +++ b/assuredworkloads/apiv1/assuredworkloadspb/assuredworkloads.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package assuredworkloadspb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -689,7 +689,7 @@ type UpdateWorkloadRequest struct { // organizations/{org_id}/locations/{location_id}/workloads/{workload_id} Workload *Workload `protobuf:"bytes,1,opt,name=workload,proto3" json:"workload,omitempty"` // Required. The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateWorkloadRequest) Reset() { @@ -731,7 +731,7 @@ func (x *UpdateWorkloadRequest) GetWorkload() *Workload { return nil } -func (x *UpdateWorkloadRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateWorkloadRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1018,7 +1018,7 @@ type Workload struct { // Required. Immutable. Compliance Regime associated with this workload. ComplianceRegime Workload_ComplianceRegime `protobuf:"varint,4,opt,name=compliance_regime,json=complianceRegime,proto3,enum=google.cloud.assuredworkloads.v1.Workload_ComplianceRegime" json:"compliance_regime,omitempty"` // Output only. Immutable. The Workload creation timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Optional. The billing account used for the resources which are // direct children of workload. This billing account is initially associated // with the resources created as part of Workload creation. @@ -1130,7 +1130,7 @@ func (x *Workload) GetComplianceRegime() Workload_ComplianceRegime { return Workload_COMPLIANCE_REGIME_UNSPECIFIED } -func (x *Workload) GetCreateTime() *timestamppb.Timestamp { +func (x *Workload) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1222,7 +1222,7 @@ type CreateWorkloadOperationMetadata struct { unknownFields protoimpl.UnknownFields // Optional. Time when the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Optional. The display name of the workload. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Optional. The parent of the workload. @@ -1264,7 +1264,7 @@ func (*CreateWorkloadOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_assuredworkloads_v1_assuredworkloads_proto_rawDescGZIP(), []int{7} } -func (x *CreateWorkloadOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateWorkloadOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1518,9 +1518,9 @@ type TimeWindow struct { unknownFields protoimpl.UnknownFields // The start of the time window. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The end of the time window. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimeWindow) Reset() { @@ -1555,14 +1555,14 @@ func (*TimeWindow) Descriptor() ([]byte, []int) { return file_google_cloud_assuredworkloads_v1_assuredworkloads_proto_rawDescGZIP(), []int{12} } -func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1780,12 +1780,12 @@ type Violation struct { // e.g. OrgPolicy gcp.resourceLocations has non compliant value. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. Time of the event which triggered the Violation. - BeginTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=begin_time,json=beginTime,proto3" json:"begin_time,omitempty"` + BeginTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=begin_time,json=beginTime,proto3" json:"begin_time,omitempty"` // Output only. The last time when the Violation record was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Time of the event which fixed the Violation. // If the violation is ACTIVE this will be empty. - ResolveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"` + ResolveTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"` // Output only. Category under which this violation is mapped. // e.g. Location, Service Usage, Access, Encryption, etc. Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` @@ -1812,7 +1812,7 @@ type Violation struct { Acknowledged bool `protobuf:"varint,14,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` // Optional. Timestamp when this violation was acknowledged last. // This will be absent when acknowledged field is marked as false. - AcknowledgementTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=acknowledgement_time,json=acknowledgementTime,proto3,oneof" json:"acknowledgement_time,omitempty"` + AcknowledgementTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=acknowledgement_time,json=acknowledgementTime,proto3,oneof" json:"acknowledgement_time,omitempty"` // Output only. Immutable. Audit Log link to find business justification provided for violation // exception. Format: // https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization} @@ -1865,21 +1865,21 @@ func (x *Violation) GetDescription() string { return "" } -func (x *Violation) GetBeginTime() *timestamppb.Timestamp { +func (x *Violation) GetBeginTime() *timestamp.Timestamp { if x != nil { return x.BeginTime } return nil } -func (x *Violation) GetUpdateTime() *timestamppb.Timestamp { +func (x *Violation) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Violation) GetResolveTime() *timestamppb.Timestamp { +func (x *Violation) GetResolveTime() *timestamp.Timestamp { if x != nil { return x.ResolveTime } @@ -1935,7 +1935,7 @@ func (x *Violation) GetAcknowledged() bool { return false } -func (x *Violation) GetAcknowledgementTime() *timestamppb.Timestamp { +func (x *Violation) GetAcknowledgementTime() *timestamp.Timestamp { if x != nil { return x.AcknowledgementTime } @@ -2021,11 +2021,11 @@ type Workload_KMSSettings struct { // Required. Input only. Immutable. The time at which the Key Management Service will automatically create a // new version of the crypto key and mark it as the primary. - NextRotationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` + NextRotationTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` // Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key // Management Service automatically rotates a key. Must be at least 24 hours // and at most 876,000 hours. - RotationPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` + RotationPeriod *duration.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` } func (x *Workload_KMSSettings) Reset() { @@ -2060,14 +2060,14 @@ func (*Workload_KMSSettings) Descriptor() ([]byte, []int) { return file_google_cloud_assuredworkloads_v1_assuredworkloads_proto_rawDescGZIP(), []int{6, 1} } -func (x *Workload_KMSSettings) GetNextRotationTime() *timestamppb.Timestamp { +func (x *Workload_KMSSettings) GetNextRotationTime() *timestamp.Timestamp { if x != nil { return x.NextRotationTime } return nil } -func (x *Workload_KMSSettings) GetRotationPeriod() *durationpb.Duration { +func (x *Workload_KMSSettings) GetRotationPeriod() *duration.Duration { if x != nil { return x.RotationPeriod } @@ -3163,11 +3163,11 @@ var file_google_cloud_assuredworkloads_v1_assuredworkloads_proto_goTypes = []int (*Violation_Remediation_Instructions)(nil), // 32: google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions (*Violation_Remediation_Instructions_Gcloud)(nil), // 33: google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud (*Violation_Remediation_Instructions_Console)(nil), // 34: google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Console - (*fieldmaskpb.FieldMask)(nil), // 35: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 37: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 35: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 36: google.protobuf.Timestamp + (*duration.Duration)(nil), // 37: google.protobuf.Duration (*longrunning.Operation)(nil), // 38: google.longrunning.Operation - (*emptypb.Empty)(nil), // 39: google.protobuf.Empty + (*empty.Empty)(nil), // 39: google.protobuf.Empty } var file_google_cloud_assuredworkloads_v1_assuredworkloads_proto_depIdxs = []int32{ 15, // 0: google.cloud.assuredworkloads.v1.CreateWorkloadRequest.workload:type_name -> google.cloud.assuredworkloads.v1.Workload @@ -3590,7 +3590,7 @@ type AssuredWorkloadsServiceClient interface { // Deletes the workload. Make sure that workload's direct children are already // in a deleted state, otherwise the request will fail with a // FAILED_PRECONDITION error. - DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets Assured Workload associated with a CRM Node GetWorkload(ctx context.Context, in *GetWorkloadRequest, opts ...grpc.CallOption) (*Workload, error) // Lists Assured Workloads under a CRM Node. @@ -3645,8 +3645,8 @@ func (c *assuredWorkloadsServiceClient) RestrictAllowedResources(ctx context.Con return out, nil } -func (c *assuredWorkloadsServiceClient) DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *assuredWorkloadsServiceClient) DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/DeleteWorkload", in, out, opts...) if err != nil { return nil, err @@ -3718,7 +3718,7 @@ type AssuredWorkloadsServiceServer interface { // Deletes the workload. Make sure that workload's direct children are already // in a deleted state, otherwise the request will fail with a // FAILED_PRECONDITION error. - DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*emptypb.Empty, error) + DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*empty.Empty, error) // Gets Assured Workload associated with a CRM Node GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error) // Lists Assured Workloads under a CRM Node. @@ -3751,7 +3751,7 @@ func (*UnimplementedAssuredWorkloadsServiceServer) UpdateWorkload(context.Contex func (*UnimplementedAssuredWorkloadsServiceServer) RestrictAllowedResources(context.Context, *RestrictAllowedResourcesRequest) (*RestrictAllowedResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RestrictAllowedResources not implemented") } -func (*UnimplementedAssuredWorkloadsServiceServer) DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*emptypb.Empty, error) { +func (*UnimplementedAssuredWorkloadsServiceServer) DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkload not implemented") } func (*UnimplementedAssuredWorkloadsServiceServer) GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error) { diff --git a/automl/apiv1/automlpb/annotation_payload.pb.go b/automl/apiv1/automlpb/annotation_payload.pb.go index fcc770c185ba..a2c397ed7c5b 100644 --- a/automl/apiv1/automlpb/annotation_payload.pb.go +++ b/automl/apiv1/automlpb/annotation_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/annotation_payload.proto package automlpb diff --git a/automl/apiv1/automlpb/annotation_spec.pb.go b/automl/apiv1/automlpb/annotation_spec.pb.go index 80f1b0ff86b7..f9217c0778bc 100644 --- a/automl/apiv1/automlpb/annotation_spec.pb.go +++ b/automl/apiv1/automlpb/annotation_spec.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/annotation_spec.proto package automlpb diff --git a/automl/apiv1/automlpb/classification.pb.go b/automl/apiv1/automlpb/classification.pb.go index b3030a13082a..bffc5d91d058 100644 --- a/automl/apiv1/automlpb/classification.pb.go +++ b/automl/apiv1/automlpb/classification.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/classification.proto package automlpb diff --git a/automl/apiv1/automlpb/data_items.pb.go b/automl/apiv1/automlpb/data_items.pb.go index 29e952305fb9..5500a5205e13 100644 --- a/automl/apiv1/automlpb/data_items.pb.go +++ b/automl/apiv1/automlpb/data_items.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/data_items.proto package automlpb diff --git a/automl/apiv1/automlpb/dataset.pb.go b/automl/apiv1/automlpb/dataset.pb.go index 5c3a912467b5..319da2435431 100644 --- a/automl/apiv1/automlpb/dataset.pb.go +++ b/automl/apiv1/automlpb/dataset.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/dataset.proto package automlpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -70,7 +70,7 @@ type Dataset struct { // Output only. The number of examples in the dataset. ExampleCount int32 `protobuf:"varint,21,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"` // Output only. Timestamp when this dataset was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,17,opt,name=etag,proto3" json:"etag,omitempty"` @@ -194,7 +194,7 @@ func (x *Dataset) GetExampleCount() int32 { return 0 } -func (x *Dataset) GetCreateTime() *timestamppb.Timestamp { +func (x *Dataset) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -394,7 +394,7 @@ var file_google_cloud_automl_v1_dataset_proto_goTypes = []interface{}{ (*ImageObjectDetectionDatasetMetadata)(nil), // 5: google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata (*TextExtractionDatasetMetadata)(nil), // 6: google.cloud.automl.v1.TextExtractionDatasetMetadata (*TextSentimentDatasetMetadata)(nil), // 7: google.cloud.automl.v1.TextSentimentDatasetMetadata - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp } var file_google_cloud_automl_v1_dataset_proto_depIdxs = []int32{ 2, // 0: google.cloud.automl.v1.Dataset.translation_dataset_metadata:type_name -> google.cloud.automl.v1.TranslationDatasetMetadata diff --git a/automl/apiv1/automlpb/detection.pb.go b/automl/apiv1/automlpb/detection.pb.go index 184362c3e0a1..78e318b50fe1 100644 --- a/automl/apiv1/automlpb/detection.pb.go +++ b/automl/apiv1/automlpb/detection.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/detection.proto package automlpb diff --git a/automl/apiv1/automlpb/geometry.pb.go b/automl/apiv1/automlpb/geometry.pb.go index 2a5a8a555213..25ffd3746aeb 100644 --- a/automl/apiv1/automlpb/geometry.pb.go +++ b/automl/apiv1/automlpb/geometry.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/geometry.proto package automlpb diff --git a/automl/apiv1/automlpb/image.pb.go b/automl/apiv1/automlpb/image.pb.go index 952a05cd2cee..2ca6509c0609 100644 --- a/automl/apiv1/automlpb/image.pb.go +++ b/automl/apiv1/automlpb/image.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/image.proto package automlpb diff --git a/automl/apiv1/automlpb/io.pb.go b/automl/apiv1/automlpb/io.pb.go index 92719d3e67c1..baae601c1347 100644 --- a/automl/apiv1/automlpb/io.pb.go +++ b/automl/apiv1/automlpb/io.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/io.proto package automlpb diff --git a/automl/apiv1/automlpb/model.pb.go b/automl/apiv1/automlpb/model.pb.go index b5df885aba63..a25d2df78e9f 100644 --- a/automl/apiv1/automlpb/model.pb.go +++ b/automl/apiv1/automlpb/model.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/model.proto package automlpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -121,9 +121,9 @@ type Model struct { // come from the same ancestor project and location. DatasetId string `protobuf:"bytes,3,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` // Output only. Timestamp when the model training finished and can be used for prediction. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this model was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Deployment state of the model. A model can only serve // prediction requests after it gets deployed. DeploymentState Model_DeploymentState `protobuf:"varint,8,opt,name=deployment_state,json=deploymentState,proto3,enum=google.cloud.automl.v1.Model_DeploymentState" json:"deployment_state,omitempty"` @@ -243,14 +243,14 @@ func (x *Model) GetDatasetId() string { return "" } -func (x *Model) GetCreateTime() *timestamppb.Timestamp { +func (x *Model) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Model) GetUpdateTime() *timestamppb.Timestamp { +func (x *Model) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -468,7 +468,7 @@ var file_google_cloud_automl_v1_model_proto_goTypes = []interface{}{ (*ImageObjectDetectionModelMetadata)(nil), // 6: google.cloud.automl.v1.ImageObjectDetectionModelMetadata (*TextExtractionModelMetadata)(nil), // 7: google.cloud.automl.v1.TextExtractionModelMetadata (*TextSentimentModelMetadata)(nil), // 8: google.cloud.automl.v1.TextSentimentModelMetadata - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_google_cloud_automl_v1_model_proto_depIdxs = []int32{ 3, // 0: google.cloud.automl.v1.Model.translation_model_metadata:type_name -> google.cloud.automl.v1.TranslationModelMetadata diff --git a/automl/apiv1/automlpb/model_evaluation.pb.go b/automl/apiv1/automlpb/model_evaluation.pb.go index 55104b2fe306..fdf3a360e429 100644 --- a/automl/apiv1/automlpb/model_evaluation.pb.go +++ b/automl/apiv1/automlpb/model_evaluation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/model_evaluation.proto package automlpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -78,7 +78,7 @@ type ModelEvaluation struct { // The display_name is empty for the overall model evaluation. DisplayName string `protobuf:"bytes,15,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Timestamp when this model evaluation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The number of examples used for model evaluation, i.e. for // which ground truth from time of model creation is compared against the // predicted annotations created by the model. @@ -185,7 +185,7 @@ func (x *ModelEvaluation) GetDisplayName() string { return "" } -func (x *ModelEvaluation) GetCreateTime() *timestamppb.Timestamp { +func (x *ModelEvaluation) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -367,7 +367,7 @@ var file_google_cloud_automl_v1_model_evaluation_proto_goTypes = []interface{}{ (*ImageObjectDetectionEvaluationMetrics)(nil), // 3: google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics (*TextSentimentEvaluationMetrics)(nil), // 4: google.cloud.automl.v1.TextSentimentEvaluationMetrics (*TextExtractionEvaluationMetrics)(nil), // 5: google.cloud.automl.v1.TextExtractionEvaluationMetrics - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_google_cloud_automl_v1_model_evaluation_proto_depIdxs = []int32{ 1, // 0: google.cloud.automl.v1.ModelEvaluation.classification_evaluation_metrics:type_name -> google.cloud.automl.v1.ClassificationEvaluationMetrics diff --git a/automl/apiv1/automlpb/operations.pb.go b/automl/apiv1/automlpb/operations.pb.go index 84415ba2cd4d..e571a447db64 100644 --- a/automl/apiv1/automlpb/operations.pb.go +++ b/automl/apiv1/automlpb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/operations.proto package automlpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -67,9 +67,9 @@ type OperationMetadata struct { // Status details field will contain standard GCP error details. PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"` // Output only. Time when the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the operation was updated for the last time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *OperationMetadata) Reset() { @@ -188,14 +188,14 @@ func (x *OperationMetadata) GetPartialFailures() []*status.Status { return nil } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1053,7 +1053,7 @@ var file_google_cloud_automl_v1_operations_proto_goTypes = []interface{}{ (*BatchPredictOperationMetadata_BatchPredictOutputInfo)(nil), // 11: google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo (*ExportModelOperationMetadata_ExportModelOutputInfo)(nil), // 12: google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo (*status.Status)(nil), // 13: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp (*BatchPredictInputConfig)(nil), // 15: google.cloud.automl.v1.BatchPredictInputConfig } var file_google_cloud_automl_v1_operations_proto_depIdxs = []int32{ diff --git a/automl/apiv1/automlpb/prediction_service.pb.go b/automl/apiv1/automlpb/prediction_service.pb.go index 14ebb52ac932..a035e8e2e403 100644 --- a/automl/apiv1/automlpb/prediction_service.pb.go +++ b/automl/apiv1/automlpb/prediction_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/prediction_service.proto package automlpb diff --git a/automl/apiv1/automlpb/service.pb.go b/automl/apiv1/automlpb/service.pb.go index 17b99121fc6d..ccddb57663d1 100644 --- a/automl/apiv1/automlpb/service.pb.go +++ b/automl/apiv1/automlpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/service.proto package automlpb @@ -27,12 +27,12 @@ import ( _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -303,7 +303,7 @@ type UpdateDatasetRequest struct { // Required. The dataset which replaces the resource on the server. Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` // Required. The update mask applies to the resource. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDatasetRequest) Reset() { @@ -345,7 +345,7 @@ func (x *UpdateDatasetRequest) GetDataset() *Dataset { return nil } -func (x *UpdateDatasetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDatasetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -881,7 +881,7 @@ type UpdateModelRequest struct { // Required. The model which replaces the resource on the server. Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // Required. The update mask applies to the resource. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateModelRequest) Reset() { @@ -923,7 +923,7 @@ func (x *UpdateModelRequest) GetModel() *Model { return nil } -func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateModelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1837,7 +1837,7 @@ var file_google_cloud_automl_v1_service_proto_goTypes = []interface{}{ (*ListModelEvaluationsRequest)(nil), // 19: google.cloud.automl.v1.ListModelEvaluationsRequest (*ListModelEvaluationsResponse)(nil), // 20: google.cloud.automl.v1.ListModelEvaluationsResponse (*Dataset)(nil), // 21: google.cloud.automl.v1.Dataset - (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 22: google.protobuf.FieldMask (*InputConfig)(nil), // 23: google.cloud.automl.v1.InputConfig (*OutputConfig)(nil), // 24: google.cloud.automl.v1.OutputConfig (*Model)(nil), // 25: google.cloud.automl.v1.Model diff --git a/automl/apiv1/automlpb/text.pb.go b/automl/apiv1/automlpb/text.pb.go index cd395cd131dc..2a2041552df5 100644 --- a/automl/apiv1/automlpb/text.pb.go +++ b/automl/apiv1/automlpb/text.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/text.proto package automlpb diff --git a/automl/apiv1/automlpb/text_extraction.pb.go b/automl/apiv1/automlpb/text_extraction.pb.go index c994e1f680da..753b9166f248 100644 --- a/automl/apiv1/automlpb/text_extraction.pb.go +++ b/automl/apiv1/automlpb/text_extraction.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/text_extraction.proto package automlpb diff --git a/automl/apiv1/automlpb/text_segment.pb.go b/automl/apiv1/automlpb/text_segment.pb.go index 7c42086fb62a..4d7ac7f2d150 100644 --- a/automl/apiv1/automlpb/text_segment.pb.go +++ b/automl/apiv1/automlpb/text_segment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/text_segment.proto package automlpb diff --git a/automl/apiv1/automlpb/text_sentiment.pb.go b/automl/apiv1/automlpb/text_sentiment.pb.go index 96f6344ccee9..64a5a8c33cea 100644 --- a/automl/apiv1/automlpb/text_sentiment.pb.go +++ b/automl/apiv1/automlpb/text_sentiment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/text_sentiment.proto package automlpb diff --git a/automl/apiv1/automlpb/translation.pb.go b/automl/apiv1/automlpb/translation.pb.go index 714e50bcecb1..0ec52972c5b3 100644 --- a/automl/apiv1/automlpb/translation.pb.go +++ b/automl/apiv1/automlpb/translation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/automl/v1/translation.proto package automlpb diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/baremetalsolution.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/baremetalsolution.pb.go index 506514b5620c..9bdc55cda9e5 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/baremetalsolution.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/baremetalsolution.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package baremetalsolutionpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -49,9 +49,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the action executed by the operation. @@ -99,14 +99,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_baremetalsolution_v2_baremetalsolution_proto_rawDescGZIP(), []int{0} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -541,7 +541,7 @@ var file_google_cloud_baremetalsolution_v2_baremetalsolution_proto_msgTypes = ma var file_google_cloud_baremetalsolution_v2_baremetalsolution_proto_goTypes = []interface{}{ (*OperationMetadata)(nil), // 0: google.cloud.baremetalsolution.v2.OperationMetadata (*ResetInstanceResponse)(nil), // 1: google.cloud.baremetalsolution.v2.ResetInstanceResponse - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp (*ListInstancesRequest)(nil), // 3: google.cloud.baremetalsolution.v2.ListInstancesRequest (*GetInstanceRequest)(nil), // 4: google.cloud.baremetalsolution.v2.GetInstanceRequest (*UpdateInstanceRequest)(nil), // 5: google.cloud.baremetalsolution.v2.UpdateInstanceRequest diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/instance.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/instance.pb.go index 1509afd3eae3..6ce849c4892e 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/instance.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/instance.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/instance.proto package baremetalsolutionpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -163,9 +163,9 @@ type Instance struct { // An identifier for the `Instance`, generated by the backend. Id string `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"` // Output only. Create a time stamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Update a time stamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The server type. // [Available server // types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) @@ -252,14 +252,14 @@ func (x *Instance) GetId() string { return "" } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Instance) GetUpdateTime() *timestamppb.Timestamp { +func (x *Instance) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -553,7 +553,7 @@ type UpdateInstanceRequest struct { // `labels` // `hyperthreading_enabled` // `os_image` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateInstanceRequest) Reset() { @@ -595,7 +595,7 @@ func (x *UpdateInstanceRequest) GetInstance() *Instance { return nil } -func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1278,11 +1278,11 @@ var file_google_cloud_baremetalsolution_v2_instance_proto_goTypes = []interface{ (*StopInstanceResponse)(nil), // 13: google.cloud.baremetalsolution.v2.StopInstanceResponse nil, // 14: google.cloud.baremetalsolution.v2.Instance.LabelsEntry (*ServerNetworkTemplate_LogicalInterface)(nil), // 15: google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp (*Lun)(nil), // 17: google.cloud.baremetalsolution.v2.Lun (*Network)(nil), // 18: google.cloud.baremetalsolution.v2.Network (*LogicalInterface)(nil), // 19: google.cloud.baremetalsolution.v2.LogicalInterface - (*fieldmaskpb.FieldMask)(nil), // 20: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 20: google.protobuf.FieldMask } var file_google_cloud_baremetalsolution_v2_instance_proto_depIdxs = []int32{ 16, // 0: google.cloud.baremetalsolution.v2.Instance.create_time:type_name -> google.protobuf.Timestamp diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/lun.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/lun.pb.go index ffd5f14a8da9..5d902a3f1c0a 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/lun.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/lun.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/lun.proto package baremetalsolutionpb diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/network.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/network.pb.go index 9fe433833ce7..134764a1e0a5 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/network.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/network.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/network.proto package baremetalsolutionpb @@ -25,9 +25,9 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -777,7 +777,7 @@ type UpdateNetworkRequest struct { // The only currently supported fields are: // // `labels`, `reservations` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateNetworkRequest) Reset() { @@ -819,7 +819,7 @@ func (x *UpdateNetworkRequest) GetNetwork() *Network { return nil } -func (x *UpdateNetworkRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateNetworkRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1428,7 +1428,7 @@ var file_google_cloud_baremetalsolution_v2_network_proto_goTypes = []interface{} (*VRF_QosPolicy)(nil), // 15: google.cloud.baremetalsolution.v2.VRF.QosPolicy (*VRF_VlanAttachment)(nil), // 16: google.cloud.baremetalsolution.v2.VRF.VlanAttachment (*LogicalInterface_LogicalNetworkInterface)(nil), // 17: google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 18: google.protobuf.FieldMask } var file_google_cloud_baremetalsolution_v2_network_proto_depIdxs = []int32{ 0, // 0: google.cloud.baremetalsolution.v2.Network.type:type_name -> google.cloud.baremetalsolution.v2.Network.Type diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/nfs_share.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/nfs_share.pb.go index c9393e7d626a..4c5126c453c5 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/nfs_share.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/nfs_share.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/nfs_share.proto package baremetalsolutionpb @@ -25,9 +25,9 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -441,7 +441,7 @@ type UpdateNfsShareRequest struct { // The only currently supported fields are: // // `labels` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateNfsShareRequest) Reset() { @@ -483,7 +483,7 @@ func (x *UpdateNfsShareRequest) GetNfsShare() *NfsShare { return nil } -func (x *UpdateNfsShareRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateNfsShareRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -757,7 +757,7 @@ var file_google_cloud_baremetalsolution_v2_nfs_share_proto_goTypes = []interface (*UpdateNfsShareRequest)(nil), // 6: google.cloud.baremetalsolution.v2.UpdateNfsShareRequest (*NfsShare_AllowedClient)(nil), // 7: google.cloud.baremetalsolution.v2.NfsShare.AllowedClient nil, // 8: google.cloud.baremetalsolution.v2.NfsShare.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask } var file_google_cloud_baremetalsolution_v2_nfs_share_proto_depIdxs = []int32{ 0, // 0: google.cloud.baremetalsolution.v2.NfsShare.state:type_name -> google.cloud.baremetalsolution.v2.NfsShare.State diff --git a/baremetalsolution/apiv2/baremetalsolutionpb/volume.pb.go b/baremetalsolution/apiv2/baremetalsolutionpb/volume.pb.go index 780c358241ef..ab3a89922d84 100644 --- a/baremetalsolution/apiv2/baremetalsolutionpb/volume.pb.go +++ b/baremetalsolution/apiv2/baremetalsolutionpb/volume.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/baremetalsolution/v2/volume.proto package baremetalsolutionpb @@ -25,9 +25,9 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -593,7 +593,7 @@ type UpdateVolumeRequest struct { // 'labels' // 'snapshot_enabled' // 'snapshot_reservation_detail.reserved_space_percent' - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateVolumeRequest) Reset() { @@ -635,7 +635,7 @@ func (x *UpdateVolumeRequest) GetVolume() *Volume { return nil } -func (x *UpdateVolumeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateVolumeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -983,7 +983,7 @@ var file_google_cloud_baremetalsolution_v2_volume_proto_goTypes = []interface{}{ (*ResizeVolumeRequest)(nil), // 8: google.cloud.baremetalsolution.v2.ResizeVolumeRequest (*Volume_SnapshotReservationDetail)(nil), // 9: google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail nil, // 10: google.cloud.baremetalsolution.v2.Volume.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask } var file_google_cloud_baremetalsolution_v2_volume_proto_depIdxs = []int32{ 0, // 0: google.cloud.baremetalsolution.v2.Volume.storage_type:type_name -> google.cloud.baremetalsolution.v2.Volume.StorageType diff --git a/baremetalsolution/go.mod b/baremetalsolution/go.mod index 73872aa0ec1a..3ffdd5bb8bf9 100644 --- a/baremetalsolution/go.mod +++ b/baremetalsolution/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/batch/apiv1/batchpb/batch.pb.go b/batch/apiv1/batchpb/batch.pb.go index 332ece86c851..af0ee4364454 100644 --- a/batch/apiv1/batchpb/batch.pb.go +++ b/batch/apiv1/batchpb/batch.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/batch/v1/batch.proto package batchpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -612,9 +612,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -662,14 +662,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_batch_v1_batch_proto_rawDescGZIP(), []int{8} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -926,7 +926,7 @@ var file_google_cloud_batch_v1_batch_proto_goTypes = []interface{}{ (*OperationMetadata)(nil), // 8: google.cloud.batch.v1.OperationMetadata (*Job)(nil), // 9: google.cloud.batch.v1.Job (*Task)(nil), // 10: google.cloud.batch.v1.Task - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 12: google.longrunning.Operation } var file_google_cloud_batch_v1_batch_proto_depIdxs = []int32{ diff --git a/batch/apiv1/batchpb/job.pb.go b/batch/apiv1/batchpb/job.pb.go index bbeebb892fa8..93bfe70b73a8 100644 --- a/batch/apiv1/batchpb/job.pb.go +++ b/batch/apiv1/batchpb/job.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/batch/v1/job.proto package batchpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -314,9 +314,9 @@ type Job struct { // Output only. Job status. It is read only for users. Status *JobStatus `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // Output only. When the Job was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last time the Job was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Log preservation policy for the Job. LogsPolicy *LogsPolicy `protobuf:"bytes,13,opt,name=logs_policy,json=logsPolicy,proto3" json:"logs_policy,omitempty"` // Notification configurations. @@ -404,14 +404,14 @@ func (x *Job) GetStatus() *JobStatus { return nil } -func (x *Job) GetCreateTime() *timestamppb.Timestamp { +func (x *Job) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Job) GetUpdateTime() *timestamppb.Timestamp { +func (x *Job) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -507,7 +507,7 @@ type JobStatus struct { // The map key is TaskGroup ID. TaskGroups map[string]*JobStatus_TaskGroupStatus `protobuf:"bytes,4,rep,name=task_groups,json=taskGroups,proto3" json:"task_groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The duration of time that the Job spent in status RUNNING. - RunDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=run_duration,json=runDuration,proto3" json:"run_duration,omitempty"` + RunDuration *duration.Duration `protobuf:"bytes,5,opt,name=run_duration,json=runDuration,proto3" json:"run_duration,omitempty"` } func (x *JobStatus) Reset() { @@ -563,7 +563,7 @@ func (x *JobStatus) GetTaskGroups() map[string]*JobStatus_TaskGroupStatus { return nil } -func (x *JobStatus) GetRunDuration() *durationpb.Duration { +func (x *JobStatus) GetRunDuration() *duration.Duration { if x != nil { return x.RunDuration } @@ -2144,9 +2144,9 @@ var file_google_cloud_batch_v1_job_proto_goTypes = []interface{}{ (*AllocationPolicy_NetworkInterface)(nil), // 23: google.cloud.batch.v1.AllocationPolicy.NetworkInterface (*AllocationPolicy_NetworkPolicy)(nil), // 24: google.cloud.batch.v1.AllocationPolicy.NetworkPolicy nil, // 25: google.cloud.batch.v1.AllocationPolicy.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*StatusEvent)(nil), // 27: google.cloud.batch.v1.StatusEvent - (*durationpb.Duration)(nil), // 28: google.protobuf.Duration + (*duration.Duration)(nil), // 28: google.protobuf.Duration (*TaskSpec)(nil), // 29: google.cloud.batch.v1.TaskSpec (*Environment)(nil), // 30: google.cloud.batch.v1.Environment (TaskStatus_State)(0), // 31: google.cloud.batch.v1.TaskStatus.State diff --git a/batch/apiv1/batchpb/task.pb.go b/batch/apiv1/batchpb/task.pb.go index 0f88ec45e995..c777c4a328da 100644 --- a/batch/apiv1/batchpb/task.pb.go +++ b/batch/apiv1/batchpb/task.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/batch/v1/task.proto package batchpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -234,7 +234,7 @@ type StatusEvent struct { // Description of the event. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // The time this event occurred. - EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + EventTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // Task Execution TaskExecution *TaskExecution `protobuf:"bytes,4,opt,name=task_execution,json=taskExecution,proto3" json:"task_execution,omitempty"` } @@ -285,7 +285,7 @@ func (x *StatusEvent) GetDescription() string { return "" } -func (x *StatusEvent) GetEventTime() *timestamppb.Timestamp { +func (x *StatusEvent) GetEventTime() *timestamp.Timestamp { if x != nil { return x.EventTime } @@ -443,7 +443,7 @@ type Runnable struct { // whole Task or TaskGroup). Environment *Environment `protobuf:"bytes,7,opt,name=environment,proto3" json:"environment,omitempty"` // Timeout for this Runnable. - Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` } func (x *Runnable) Reset() { @@ -534,7 +534,7 @@ func (x *Runnable) GetEnvironment() *Environment { return nil } -func (x *Runnable) GetTimeout() *durationpb.Duration { +func (x *Runnable) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -587,7 +587,7 @@ type TaskSpec struct { ComputeResource *ComputeResource `protobuf:"bytes,3,opt,name=compute_resource,json=computeResource,proto3" json:"compute_resource,omitempty"` // Maximum duration the task should run. // The task will be killed and marked as FAILED if over this limit. - MaxRunDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=max_run_duration,json=maxRunDuration,proto3" json:"max_run_duration,omitempty"` + MaxRunDuration *duration.Duration `protobuf:"bytes,4,opt,name=max_run_duration,json=maxRunDuration,proto3" json:"max_run_duration,omitempty"` // Maximum number of retries on failures. // The default, 0, which means never retry. // The valid value range is [0, 10]. @@ -659,7 +659,7 @@ func (x *TaskSpec) GetComputeResource() *ComputeResource { return nil } -func (x *TaskSpec) GetMaxRunDuration() *durationpb.Duration { +func (x *TaskSpec) GetMaxRunDuration() *duration.Duration { if x != nil { return x.MaxRunDuration } @@ -1414,8 +1414,8 @@ var file_google_cloud_batch_v1_task_proto_goTypes = []interface{}{ nil, // 14: google.cloud.batch.v1.TaskSpec.EnvironmentsEntry (*LifecyclePolicy_ActionCondition)(nil), // 15: google.cloud.batch.v1.LifecyclePolicy.ActionCondition nil, // 16: google.cloud.batch.v1.Environment.VariablesEntry - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 18: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp + (*duration.Duration)(nil), // 18: google.protobuf.Duration (*Volume)(nil), // 19: google.cloud.batch.v1.Volume } var file_google_cloud_batch_v1_task_proto_depIdxs = []int32{ diff --git a/batch/apiv1/batchpb/volume.pb.go b/batch/apiv1/batchpb/volume.pb.go index dab0ddb1c1ac..85c741c6ba82 100644 --- a/batch/apiv1/batchpb/volume.pb.go +++ b/batch/apiv1/batchpb/volume.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/batch/v1/volume.proto package batchpb diff --git a/batch/go.mod b/batch/go.mod index 97dff836653a..c7aa507de636 100644 --- a/batch/go.mod +++ b/batch/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/beyondcorp/appconnections/apiv1/appconnectionspb/app_connections_service.pb.go b/beyondcorp/appconnections/apiv1/appconnectionspb/app_connections_service.pb.go index 8209af89d5dc..21111f4b6aca 100644 --- a/beyondcorp/appconnections/apiv1/appconnectionspb/app_connections_service.pb.go +++ b/beyondcorp/appconnections/apiv1/appconnectionspb/app_connections_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto package appconnectionspb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -537,7 +537,7 @@ type UpdateAppConnectionRequest struct { // * `display_name` // * `application_endpoint` // * `connectors` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. AppConnection message with updated fields. Only supported fields // specified in update_mask are updated. AppConnection *AppConnection `protobuf:"bytes,2,opt,name=app_connection,json=appConnection,proto3" json:"app_connection,omitempty"` @@ -594,7 +594,7 @@ func (*UpdateAppConnectionRequest) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_appconnections_v1_app_connections_service_proto_rawDescGZIP(), []int{4} } -func (x *UpdateAppConnectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAppConnectionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -876,9 +876,9 @@ type AppConnection struct { // The name is ignored when creating a AppConnection. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Timestamp when the resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the resource was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user provided metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. An arbitrary user-provided name for the AppConnection. Cannot @@ -940,14 +940,14 @@ func (x *AppConnection) GetName() string { return "" } -func (x *AppConnection) GetCreateTime() *timestamppb.Timestamp { +func (x *AppConnection) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppConnection) GetUpdateTime() *timestamppb.Timestamp { +func (x *AppConnection) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1017,9 +1017,9 @@ type AppConnectionOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1068,14 +1068,14 @@ func (*AppConnectionOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_appconnections_v1_app_connections_service_proto_rawDescGZIP(), []int{9} } -func (x *AppConnectionOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *AppConnectionOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppConnectionOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *AppConnectionOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1750,8 +1750,8 @@ var file_google_cloud_beyondcorp_appconnections_v1_app_connections_service_proto (*AppConnection_ApplicationEndpoint)(nil), // 14: google.cloud.beyondcorp.appconnections.v1.AppConnection.ApplicationEndpoint (*AppConnection_Gateway)(nil), // 15: google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway nil, // 16: google.cloud.beyondcorp.appconnections.v1.AppConnection.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 19: google.longrunning.Operation } var file_google_cloud_beyondcorp_appconnections_v1_app_connections_service_proto_depIdxs = []int32{ diff --git a/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connector_instance_config.pb.go b/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connector_instance_config.pb.go index 9d8a7c5c4ac6..bea90b832327 100644 --- a/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connector_instance_config.pb.go +++ b/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connector_instance_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto package appconnectorspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" ) const ( @@ -48,7 +48,7 @@ type AppConnectorInstanceConfig struct { // sequenceNumber should be bumped up to reflect the change. SequenceNumber int64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // The SLM instance agent configuration. - InstanceConfig *anypb.Any `protobuf:"bytes,2,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"` + InstanceConfig *any1.Any `protobuf:"bytes,2,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"` // NotificationConfig defines the notification mechanism that the remote // instance should subscribe to in order to receive notification. NotificationConfig *NotificationConfig `protobuf:"bytes,3,opt,name=notification_config,json=notificationConfig,proto3" json:"notification_config,omitempty"` @@ -96,7 +96,7 @@ func (x *AppConnectorInstanceConfig) GetSequenceNumber() int64 { return 0 } -func (x *AppConnectorInstanceConfig) GetInstanceConfig() *anypb.Any { +func (x *AppConnectorInstanceConfig) GetInstanceConfig() *any1.Any { if x != nil { return x.InstanceConfig } @@ -392,7 +392,7 @@ var file_google_cloud_beyondcorp_appconnectors_v1_app_connector_instance_config_ (*NotificationConfig)(nil), // 1: google.cloud.beyondcorp.appconnectors.v1.NotificationConfig (*ImageConfig)(nil), // 2: google.cloud.beyondcorp.appconnectors.v1.ImageConfig (*NotificationConfig_CloudPubSubNotificationConfig)(nil), // 3: google.cloud.beyondcorp.appconnectors.v1.NotificationConfig.CloudPubSubNotificationConfig - (*anypb.Any)(nil), // 4: google.protobuf.Any + (*any1.Any)(nil), // 4: google.protobuf.Any } var file_google_cloud_beyondcorp_appconnectors_v1_app_connector_instance_config_proto_depIdxs = []int32{ 4, // 0: google.cloud.beyondcorp.appconnectors.v1.AppConnectorInstanceConfig.instance_config:type_name -> google.protobuf.Any diff --git a/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connectors_service.pb.go b/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connectors_service.pb.go index fa046cfcde6b..a27b7cf3305a 100644 --- a/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connectors_service.pb.go +++ b/beyondcorp/appconnectors/apiv1/appconnectorspb/app_connectors_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto package appconnectorspb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -436,7 +436,7 @@ type UpdateAppConnectorRequest struct { // fields from [BeyondCorp.AppConnector]: // * `labels` // * `display_name` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. AppConnector message with updated fields. Only supported fields // specified in update_mask are updated. AppConnector *AppConnector `protobuf:"bytes,2,opt,name=app_connector,json=appConnector,proto3" json:"app_connector,omitempty"` @@ -491,7 +491,7 @@ func (*UpdateAppConnectorRequest) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_appconnectors_v1_app_connectors_service_proto_rawDescGZIP(), []int{4} } -func (x *UpdateAppConnectorRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAppConnectorRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -704,9 +704,9 @@ type AppConnector struct { // The name is ignored when creating a AppConnector. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Timestamp when the resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the resource was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user provided metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. An arbitrary user-provided name for the AppConnector. Cannot @@ -762,14 +762,14 @@ func (x *AppConnector) GetName() string { return "" } -func (x *AppConnector) GetCreateTime() *timestamppb.Timestamp { +func (x *AppConnector) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppConnector) GetUpdateTime() *timestamppb.Timestamp { +func (x *AppConnector) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -825,9 +825,9 @@ type AppConnectorOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -876,14 +876,14 @@ func (*AppConnectorOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_appconnectors_v1_app_connectors_service_proto_rawDescGZIP(), []int{8} } -func (x *AppConnectorOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *AppConnectorOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppConnectorOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *AppConnectorOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1417,9 +1417,9 @@ var file_google_cloud_beyondcorp_appconnectors_v1_app_connectors_service_proto_g (*AppConnector_PrincipalInfo)(nil), // 10: google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo nil, // 11: google.cloud.beyondcorp.appconnectors.v1.AppConnector.LabelsEntry (*AppConnector_PrincipalInfo_ServiceAccount)(nil), // 12: google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo.ServiceAccount - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask (*ResourceInfo)(nil), // 14: google.cloud.beyondcorp.appconnectors.v1.ResourceInfo - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 16: google.longrunning.Operation } var file_google_cloud_beyondcorp_appconnectors_v1_app_connectors_service_proto_depIdxs = []int32{ diff --git a/beyondcorp/appconnectors/apiv1/appconnectorspb/resource_info.pb.go b/beyondcorp/appconnectors/apiv1/appconnectorspb/resource_info.pb.go index 503725b310fa..45ed3dc30beb 100644 --- a/beyondcorp/appconnectors/apiv1/appconnectorspb/resource_info.pb.go +++ b/beyondcorp/appconnectors/apiv1/appconnectorspb/resource_info.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/appconnectors/v1/resource_info.proto package appconnectorspb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -120,10 +120,10 @@ type ResourceInfo struct { // each sub level resources. Status HealthStatus `protobuf:"varint,2,opt,name=status,proto3,enum=google.cloud.beyondcorp.appconnectors.v1.HealthStatus" json:"status,omitempty"` // Specific details for the resource. This is for internal use only. - Resource *anypb.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` + Resource *any1.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` // The timestamp to collect the info. It is suggested to be set by // the topmost level resource only. - Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` + Time *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` // List of Info for the sub level resources. Sub []*ResourceInfo `protobuf:"bytes,5,rep,name=sub,proto3" json:"sub,omitempty"` } @@ -174,14 +174,14 @@ func (x *ResourceInfo) GetStatus() HealthStatus { return HealthStatus_HEALTH_STATUS_UNSPECIFIED } -func (x *ResourceInfo) GetResource() *anypb.Any { +func (x *ResourceInfo) GetResource() *any1.Any { if x != nil { return x.Resource } return nil } -func (x *ResourceInfo) GetTime() *timestamppb.Timestamp { +func (x *ResourceInfo) GetTime() *timestamp.Timestamp { if x != nil { return x.Time } @@ -271,10 +271,10 @@ func file_google_cloud_beyondcorp_appconnectors_v1_resource_info_proto_rawDescGZ var file_google_cloud_beyondcorp_appconnectors_v1_resource_info_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_beyondcorp_appconnectors_v1_resource_info_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_beyondcorp_appconnectors_v1_resource_info_proto_goTypes = []interface{}{ - (HealthStatus)(0), // 0: google.cloud.beyondcorp.appconnectors.v1.HealthStatus - (*ResourceInfo)(nil), // 1: google.cloud.beyondcorp.appconnectors.v1.ResourceInfo - (*anypb.Any)(nil), // 2: google.protobuf.Any - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (HealthStatus)(0), // 0: google.cloud.beyondcorp.appconnectors.v1.HealthStatus + (*ResourceInfo)(nil), // 1: google.cloud.beyondcorp.appconnectors.v1.ResourceInfo + (*any1.Any)(nil), // 2: google.protobuf.Any + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_beyondcorp_appconnectors_v1_resource_info_proto_depIdxs = []int32{ 0, // 0: google.cloud.beyondcorp.appconnectors.v1.ResourceInfo.status:type_name -> google.cloud.beyondcorp.appconnectors.v1.HealthStatus diff --git a/beyondcorp/appgateways/apiv1/appgatewayspb/app_gateways_service.pb.go b/beyondcorp/appgateways/apiv1/appgatewayspb/app_gateways_service.pb.go index 15e3c95ab0a3..4a404f03954c 100644 --- a/beyondcorp/appgateways/apiv1/appgatewayspb/app_gateways_service.pb.go +++ b/beyondcorp/appgateways/apiv1/appgatewayspb/app_gateways_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto package appgatewayspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -617,9 +617,9 @@ type AppGateway struct { // The name is ignored when creating an AppGateway. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Timestamp when the resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the resource was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Resource labels to represent user provided metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. An arbitrary user-provided name for the AppGateway. Cannot exceed @@ -679,14 +679,14 @@ func (x *AppGateway) GetName() string { return "" } -func (x *AppGateway) GetCreateTime() *timestamppb.Timestamp { +func (x *AppGateway) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppGateway) GetUpdateTime() *timestamppb.Timestamp { +func (x *AppGateway) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -756,9 +756,9 @@ type AppGatewayOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -807,14 +807,14 @@ func (*AppGatewayOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_appgateways_v1_app_gateways_service_proto_rawDescGZIP(), []int{6} } -func (x *AppGatewayOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *AppGatewayOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AppGatewayOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *AppGatewayOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1206,7 +1206,7 @@ var file_google_cloud_beyondcorp_appgateways_v1_app_gateways_service_proto_goTyp (*AppGatewayOperationMetadata)(nil), // 9: google.cloud.beyondcorp.appgateways.v1.AppGatewayOperationMetadata (*AppGateway_AllocatedConnection)(nil), // 10: google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection nil, // 11: google.cloud.beyondcorp.appgateways.v1.AppGateway.LabelsEntry - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 12: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 13: google.longrunning.Operation } var file_google_cloud_beyondcorp_appgateways_v1_app_gateways_service_proto_depIdxs = []int32{ diff --git a/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb/client_connector_services_service.pb.go b/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb/client_connector_services_service.pb.go index 96fbac2064af..9a49e102e608 100644 --- a/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb/client_connector_services_service.pb.go +++ b/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb/client_connector_services_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto package clientconnectorservicespb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -172,9 +172,9 @@ type ClientConnectorService struct { // Required. Name of resource. The name is ignored during creation. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. [Output only] Create time stamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. [Output only] Update time stamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User-provided name. // The display name should follow certain format. // * Must be 6 to 30 characters in length. @@ -228,14 +228,14 @@ func (x *ClientConnectorService) GetName() string { return "" } -func (x *ClientConnectorService) GetCreateTime() *timestamppb.Timestamp { +func (x *ClientConnectorService) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ClientConnectorService) GetUpdateTime() *timestamppb.Timestamp { +func (x *ClientConnectorService) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -589,7 +589,7 @@ type UpdateClientConnectorServiceRequest struct { // user does not provide a mask then all fields will be overwritten. // // Mutable fields: display_name. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The resource being updated. ClientConnectorService *ClientConnectorService `protobuf:"bytes,2,opt,name=client_connector_service,json=clientConnectorService,proto3" json:"client_connector_service,omitempty"` // Optional. An optional request ID to identify requests. Specify a unique @@ -645,7 +645,7 @@ func (*UpdateClientConnectorServiceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_clientconnectorservices_v1_client_connector_services_service_proto_rawDescGZIP(), []int{5} } -func (x *UpdateClientConnectorServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateClientConnectorServiceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -767,9 +767,9 @@ type ClientConnectorServiceOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -818,14 +818,14 @@ func (*ClientConnectorServiceOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_clientconnectorservices_v1_client_connector_services_service_proto_rawDescGZIP(), []int{7} } -func (x *ClientConnectorServiceOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ClientConnectorServiceOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ClientConnectorServiceOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *ClientConnectorServiceOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1591,8 +1591,8 @@ var file_google_cloud_beyondcorp_clientconnectorservices_v1_client_connector_ser (*ClientConnectorService_Ingress_Config)(nil), // 12: google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService.Ingress.Config (*ClientConnectorService_Ingress_Config_DestinationRoute)(nil), // 13: google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService.Ingress.Config.DestinationRoute (*ClientConnectorService_Egress_PeeredVpc)(nil), // 14: google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService.Egress.PeeredVpc - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 17: google.longrunning.Operation } var file_google_cloud_beyondcorp_clientconnectorservices_v1_client_connector_services_service_proto_depIdxs = []int32{ diff --git a/beyondcorp/clientgateways/apiv1/clientgatewayspb/client_gateways_service.pb.go b/beyondcorp/clientgateways/apiv1/clientgatewayspb/client_gateways_service.pb.go index d02e5ea7d8fa..e2800100100a 100644 --- a/beyondcorp/clientgateways/apiv1/clientgatewayspb/client_gateways_service.pb.go +++ b/beyondcorp/clientgateways/apiv1/clientgatewayspb/client_gateways_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto package clientgatewayspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -121,9 +121,9 @@ type ClientGateway struct { // Required. name of resource. The name is ignored during creation. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. [Output only] Create time stamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. [Output only] Update time stamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The operational state of the gateway. State ClientGateway_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.beyondcorp.clientgateways.v1.ClientGateway_State" json:"state,omitempty"` // Output only. A unique identifier for the instance generated by the system. @@ -174,14 +174,14 @@ func (x *ClientGateway) GetName() string { return "" } -func (x *ClientGateway) GetCreateTime() *timestamppb.Timestamp { +func (x *ClientGateway) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ClientGateway) GetUpdateTime() *timestamppb.Timestamp { +func (x *ClientGateway) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -599,9 +599,9 @@ type ClientGatewayOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -650,14 +650,14 @@ func (*ClientGatewayOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto_rawDescGZIP(), []int{6} } -func (x *ClientGatewayOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ClientGatewayOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ClientGatewayOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *ClientGatewayOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -958,7 +958,7 @@ var file_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto (*CreateClientGatewayRequest)(nil), // 5: google.cloud.beyondcorp.clientgateways.v1.CreateClientGatewayRequest (*DeleteClientGatewayRequest)(nil), // 6: google.cloud.beyondcorp.clientgateways.v1.DeleteClientGatewayRequest (*ClientGatewayOperationMetadata)(nil), // 7: google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOperationMetadata - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 9: google.longrunning.Operation } var file_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto_depIdxs = []int32{ diff --git a/beyondcorp/go.mod b/beyondcorp/go.mod index d5b0b0fd66e4..18144b1d06f8 100644 --- a/beyondcorp/go.mod +++ b/beyondcorp/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/billing/apiv1/billingpb/cloud_billing.pb.go b/billing/apiv1/billingpb/cloud_billing.pb.go index 8ecab6f946a7..1f2ded16829d 100644 --- a/billing/apiv1/billingpb/cloud_billing.pb.go +++ b/billing/apiv1/billingpb/cloud_billing.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/billing/v1/cloud_billing.proto package billingpb @@ -28,12 +28,12 @@ import ( _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -466,7 +466,7 @@ type UpdateBillingAccountRequest struct { Account *BillingAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // The update mask applied to the resource. // Only "display_name" is currently supported. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBillingAccountRequest) Reset() { @@ -515,7 +515,7 @@ func (x *UpdateBillingAccountRequest) GetAccount() *BillingAccount { return nil } -func (x *UpdateBillingAccountRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBillingAccountRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1039,7 +1039,7 @@ var file_google_cloud_billing_v1_cloud_billing_proto_goTypes = []interface{}{ (*ListProjectBillingInfoResponse)(nil), // 8: google.cloud.billing.v1.ListProjectBillingInfoResponse (*GetProjectBillingInfoRequest)(nil), // 9: google.cloud.billing.v1.GetProjectBillingInfoRequest (*UpdateProjectBillingInfoRequest)(nil), // 10: google.cloud.billing.v1.UpdateProjectBillingInfoRequest - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 12: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 13: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 14: google.iam.v1.TestIamPermissionsRequest diff --git a/billing/apiv1/billingpb/cloud_catalog.pb.go b/billing/apiv1/billingpb/cloud_catalog.pb.go index 16fcd97ef356..2d31aa7a24d3 100644 --- a/billing/apiv1/billingpb/cloud_catalog.pb.go +++ b/billing/apiv1/billingpb/cloud_catalog.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/billing/v1/cloud_catalog.proto package billingpb @@ -26,6 +26,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" money "google.golang.org/genproto/googleapis/type/money" grpc "google.golang.org/grpc" @@ -33,7 +34,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -426,7 +426,7 @@ type PricingInfo struct { // request. If a time range was not specified in the request this field will // be equivalent to a time within the last 12 hours, indicating the latest // pricing info. - EffectiveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"` + EffectiveTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"` // An optional human readable summary of the pricing information, has a // maximum length of 256 characters. Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` @@ -475,7 +475,7 @@ func (*PricingInfo) Descriptor() ([]byte, []int) { return file_google_cloud_billing_v1_cloud_catalog_proto_rawDescGZIP(), []int{3} } -func (x *PricingInfo) GetEffectiveTime() *timestamppb.Timestamp { +func (x *PricingInfo) GetEffectiveTime() *timestamp.Timestamp { if x != nil { return x.EffectiveTime } @@ -842,14 +842,14 @@ type ListSkusRequest struct { // America/Los_Angeles timezone. Time range as a whole is optional. If not // specified, the latest pricing will be returned (up to 12 hours old at // most). - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Optional exclusive end time of the time range for which the pricing // versions will be returned. Timestamps in the future are not allowed. // The time range has to be within a single calendar month in // America/Los_Angeles timezone. Time range as a whole is optional. If not // specified, the latest pricing will be returned (up to 12 hours old at // most). - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The ISO 4217 currency code for the pricing info in the response proto. // Will use the conversion rate as of start_time. // Optional. If not specified USD will be used. @@ -901,14 +901,14 @@ func (x *ListSkusRequest) GetParent() string { return "" } -func (x *ListSkusRequest) GetStartTime() *timestamppb.Timestamp { +func (x *ListSkusRequest) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ListSkusRequest) GetEndTime() *timestamppb.Timestamp { +func (x *ListSkusRequest) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1306,7 +1306,7 @@ var file_google_cloud_billing_v1_cloud_catalog_proto_goTypes = []interface{}{ (*ListSkusRequest)(nil), // 10: google.cloud.billing.v1.ListSkusRequest (*ListSkusResponse)(nil), // 11: google.cloud.billing.v1.ListSkusResponse (*PricingExpression_TierRate)(nil), // 12: google.cloud.billing.v1.PricingExpression.TierRate - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp (*money.Money)(nil), // 14: google.type.Money } var file_google_cloud_billing_v1_cloud_catalog_proto_depIdxs = []int32{ diff --git a/billing/budgets/apiv1/budgetspb/budget_model.pb.go b/billing/budgets/apiv1/budgetspb/budget_model.pb.go index 3069f0a03c2c..0261b2ebab73 100644 --- a/billing/budgets/apiv1/budgetspb/budget_model.pb.go +++ b/billing/budgets/apiv1/budgetspb/budget_model.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/billing/budgets/v1/budget_model.proto package budgetspb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" date "google.golang.org/genproto/googleapis/type/date" money "google.golang.org/genproto/googleapis/type/money" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -692,7 +692,7 @@ type Filter struct { // this set of labeled resources should be included in the budget. Currently, // multiple entries or multiple values per entry are not allowed. If omitted, // the report will include all labeled and unlabeled usage. - Labels map[string]*structpb.ListValue `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Labels map[string]*_struct.ListValue `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Multiple options to choose the budget's time period, specifying that only // usage that occurs during this time period should be included in the budget. // If not set, the `usage_period` defaults to CalendarPeriod.MONTH. @@ -771,7 +771,7 @@ func (x *Filter) GetSubaccounts() []string { return nil } -func (x *Filter) GetLabels() map[string]*structpb.ListValue { +func (x *Filter) GetLabels() map[string]*_struct.ListValue { if x != nil { return x.Labels } @@ -1081,7 +1081,7 @@ var file_google_cloud_billing_budgets_v1_budget_model_proto_goTypes = []interfac nil, // 10: google.cloud.billing.budgets.v1.Filter.LabelsEntry (*money.Money)(nil), // 11: google.type.Money (*date.Date)(nil), // 12: google.type.Date - (*structpb.ListValue)(nil), // 13: google.protobuf.ListValue + (*_struct.ListValue)(nil), // 13: google.protobuf.ListValue } var file_google_cloud_billing_budgets_v1_budget_model_proto_depIdxs = []int32{ 8, // 0: google.cloud.billing.budgets.v1.Budget.budget_filter:type_name -> google.cloud.billing.budgets.v1.Filter diff --git a/billing/budgets/apiv1/budgetspb/budget_service.pb.go b/billing/budgets/apiv1/budgetspb/budget_service.pb.go index c2f930e95aea..63cfae1e8e3d 100644 --- a/billing/budgets/apiv1/budgetspb/budget_service.pb.go +++ b/billing/budgets/apiv1/budgetspb/budget_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/billing/budgets/v1/budget_service.proto package budgetspb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -116,7 +116,7 @@ type UpdateBudgetRequest struct { // updated. See // https://developers.google.com/protocol-buffers/docs/proto3#default for more // details about default values. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBudgetRequest) Reset() { @@ -158,7 +158,7 @@ func (x *UpdateBudgetRequest) GetBudget() *Budget { return nil } -func (x *UpdateBudgetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBudgetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -556,15 +556,15 @@ func file_google_cloud_billing_budgets_v1_budget_service_proto_rawDescGZIP() []b var file_google_cloud_billing_budgets_v1_budget_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_google_cloud_billing_budgets_v1_budget_service_proto_goTypes = []interface{}{ - (*CreateBudgetRequest)(nil), // 0: google.cloud.billing.budgets.v1.CreateBudgetRequest - (*UpdateBudgetRequest)(nil), // 1: google.cloud.billing.budgets.v1.UpdateBudgetRequest - (*GetBudgetRequest)(nil), // 2: google.cloud.billing.budgets.v1.GetBudgetRequest - (*ListBudgetsRequest)(nil), // 3: google.cloud.billing.budgets.v1.ListBudgetsRequest - (*ListBudgetsResponse)(nil), // 4: google.cloud.billing.budgets.v1.ListBudgetsResponse - (*DeleteBudgetRequest)(nil), // 5: google.cloud.billing.budgets.v1.DeleteBudgetRequest - (*Budget)(nil), // 6: google.cloud.billing.budgets.v1.Budget - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty + (*CreateBudgetRequest)(nil), // 0: google.cloud.billing.budgets.v1.CreateBudgetRequest + (*UpdateBudgetRequest)(nil), // 1: google.cloud.billing.budgets.v1.UpdateBudgetRequest + (*GetBudgetRequest)(nil), // 2: google.cloud.billing.budgets.v1.GetBudgetRequest + (*ListBudgetsRequest)(nil), // 3: google.cloud.billing.budgets.v1.ListBudgetsRequest + (*ListBudgetsResponse)(nil), // 4: google.cloud.billing.budgets.v1.ListBudgetsResponse + (*DeleteBudgetRequest)(nil), // 5: google.cloud.billing.budgets.v1.DeleteBudgetRequest + (*Budget)(nil), // 6: google.cloud.billing.budgets.v1.Budget + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*empty.Empty)(nil), // 8: google.protobuf.Empty } var file_google_cloud_billing_budgets_v1_budget_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.billing.budgets.v1.CreateBudgetRequest.budget:type_name -> google.cloud.billing.budgets.v1.Budget @@ -725,7 +725,7 @@ type BudgetServiceClient interface { // in the Cloud Console. ListBudgets(ctx context.Context, in *ListBudgetsRequest, opts ...grpc.CallOption) (*ListBudgetsResponse, error) // Deletes a budget. Returns successfully if already deleted. - DeleteBudget(ctx context.Context, in *DeleteBudgetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteBudget(ctx context.Context, in *DeleteBudgetRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type budgetServiceClient struct { @@ -772,8 +772,8 @@ func (c *budgetServiceClient) ListBudgets(ctx context.Context, in *ListBudgetsRe return out, nil } -func (c *budgetServiceClient) DeleteBudget(ctx context.Context, in *DeleteBudgetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *budgetServiceClient) DeleteBudget(ctx context.Context, in *DeleteBudgetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.billing.budgets.v1.BudgetService/DeleteBudget", in, out, opts...) if err != nil { return nil, err @@ -808,7 +808,7 @@ type BudgetServiceServer interface { // in the Cloud Console. ListBudgets(context.Context, *ListBudgetsRequest) (*ListBudgetsResponse, error) // Deletes a budget. Returns successfully if already deleted. - DeleteBudget(context.Context, *DeleteBudgetRequest) (*emptypb.Empty, error) + DeleteBudget(context.Context, *DeleteBudgetRequest) (*empty.Empty, error) } // UnimplementedBudgetServiceServer can be embedded to have forward compatible implementations. @@ -827,7 +827,7 @@ func (*UnimplementedBudgetServiceServer) GetBudget(context.Context, *GetBudgetRe func (*UnimplementedBudgetServiceServer) ListBudgets(context.Context, *ListBudgetsRequest) (*ListBudgetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListBudgets not implemented") } -func (*UnimplementedBudgetServiceServer) DeleteBudget(context.Context, *DeleteBudgetRequest) (*emptypb.Empty, error) { +func (*UnimplementedBudgetServiceServer) DeleteBudget(context.Context, *DeleteBudgetRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBudget not implemented") } diff --git a/binaryauthorization/apiv1/binaryauthorizationpb/resources.pb.go b/binaryauthorization/apiv1/binaryauthorizationpb/resources.pb.go index 526a39e331bb..fe8307d7ed4f 100644 --- a/binaryauthorization/apiv1/binaryauthorizationpb/resources.pb.go +++ b/binaryauthorization/apiv1/binaryauthorizationpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/binaryauthorization/v1/resources.proto package binaryauthorizationpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -352,7 +352,7 @@ type Policy struct { // kubernetes-service-account, or per-istio-service-identity admission rule. DefaultAdmissionRule *AdmissionRule `protobuf:"bytes,4,opt,name=default_admission_rule,json=defaultAdmissionRule,proto3" json:"default_admission_rule,omitempty"` // Output only. Time when the policy was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Policy) Reset() { @@ -450,7 +450,7 @@ func (x *Policy) GetDefaultAdmissionRule() *AdmissionRule { return nil } -func (x *Policy) GetUpdateTime() *timestamppb.Timestamp { +func (x *Policy) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -609,7 +609,7 @@ type Attestor struct { // *Attestor_UserOwnedGrafeasNote AttestorType isAttestor_AttestorType `protobuf_oneof:"attestor_type"` // Output only. Time when the attestor was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Attestor) Reset() { @@ -672,7 +672,7 @@ func (x *Attestor) GetUserOwnedGrafeasNote() *UserOwnedGrafeasNote { return nil } -func (x *Attestor) GetUpdateTime() *timestamppb.Timestamp { +func (x *Attestor) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1283,7 +1283,7 @@ var file_google_cloud_binaryauthorization_v1_resources_proto_goTypes = []interfa nil, // 12: google.cloud.binaryauthorization.v1.Policy.KubernetesNamespaceAdmissionRulesEntry nil, // 13: google.cloud.binaryauthorization.v1.Policy.KubernetesServiceAccountAdmissionRulesEntry nil, // 14: google.cloud.binaryauthorization.v1.Policy.IstioServiceIdentityAdmissionRulesEntry - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp } var file_google_cloud_binaryauthorization_v1_resources_proto_depIdxs = []int32{ 0, // 0: google.cloud.binaryauthorization.v1.Policy.global_policy_evaluation_mode:type_name -> google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode diff --git a/binaryauthorization/apiv1/binaryauthorizationpb/service.pb.go b/binaryauthorization/apiv1/binaryauthorizationpb/service.pb.go index 030c676a0086..fc276864e72c 100644 --- a/binaryauthorization/apiv1/binaryauthorizationpb/service.pb.go +++ b/binaryauthorization/apiv1/binaryauthorizationpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/binaryauthorization/v1/service.proto package binaryauthorizationpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/grafeas/v1" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -1042,7 +1042,7 @@ var file_google_cloud_binaryauthorization_v1_service_proto_goTypes = []interface (*Policy)(nil), // 12: google.cloud.binaryauthorization.v1.Policy (*Attestor)(nil), // 13: google.cloud.binaryauthorization.v1.Attestor (*v1.AttestationOccurrence)(nil), // 14: grafeas.v1.AttestationOccurrence - (*emptypb.Empty)(nil), // 15: google.protobuf.Empty + (*empty.Empty)(nil), // 15: google.protobuf.Empty } var file_google_cloud_binaryauthorization_v1_service_proto_depIdxs = []int32{ 12, // 0: google.cloud.binaryauthorization.v1.UpdatePolicyRequest.policy:type_name -> google.cloud.binaryauthorization.v1.Policy @@ -1279,7 +1279,7 @@ type BinauthzManagementServiceV1Client interface { ListAttestors(ctx context.Context, in *ListAttestorsRequest, opts ...grpc.CallOption) (*ListAttestorsResponse, error) // Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the // [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. - DeleteAttestor(ctx context.Context, in *DeleteAttestorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAttestor(ctx context.Context, in *DeleteAttestorRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type binauthzManagementServiceV1Client struct { @@ -1344,8 +1344,8 @@ func (c *binauthzManagementServiceV1Client) ListAttestors(ctx context.Context, i return out, nil } -func (c *binauthzManagementServiceV1Client) DeleteAttestor(ctx context.Context, in *DeleteAttestorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *binauthzManagementServiceV1Client) DeleteAttestor(ctx context.Context, in *DeleteAttestorRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/DeleteAttestor", in, out, opts...) if err != nil { return nil, err @@ -1385,7 +1385,7 @@ type BinauthzManagementServiceV1Server interface { ListAttestors(context.Context, *ListAttestorsRequest) (*ListAttestorsResponse, error) // Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the // [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. - DeleteAttestor(context.Context, *DeleteAttestorRequest) (*emptypb.Empty, error) + DeleteAttestor(context.Context, *DeleteAttestorRequest) (*empty.Empty, error) } // UnimplementedBinauthzManagementServiceV1Server can be embedded to have forward compatible implementations. @@ -1410,7 +1410,7 @@ func (*UnimplementedBinauthzManagementServiceV1Server) UpdateAttestor(context.Co func (*UnimplementedBinauthzManagementServiceV1Server) ListAttestors(context.Context, *ListAttestorsRequest) (*ListAttestorsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAttestors not implemented") } -func (*UnimplementedBinauthzManagementServiceV1Server) DeleteAttestor(context.Context, *DeleteAttestorRequest) (*emptypb.Empty, error) { +func (*UnimplementedBinauthzManagementServiceV1Server) DeleteAttestor(context.Context, *DeleteAttestorRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAttestor not implemented") } diff --git a/certificatemanager/apiv1/certificatemanagerpb/certificate_issuance_config.pb.go b/certificatemanager/apiv1/certificatemanagerpb/certificate_issuance_config.pb.go index 64e8be56a0d3..07aef6364c52 100644 --- a/certificatemanager/apiv1/certificatemanagerpb/certificate_issuance_config.pb.go +++ b/certificatemanager/apiv1/certificatemanagerpb/certificate_issuance_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto package certificatemanagerpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -430,9 +430,9 @@ type CertificateIssuanceConfig struct { // `projects/*/locations/*/certificateIssuanceConfigs/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation timestamp of a CertificateIssuanceConfig. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of a CertificateIssuanceConfig. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Set of labels associated with a CertificateIssuanceConfig. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // One or more paragraphs of text description of a CertificateIssuanceConfig. @@ -441,7 +441,7 @@ type CertificateIssuanceConfig struct { // address, type, authentication to CA service, etc. CertificateAuthorityConfig *CertificateIssuanceConfig_CertificateAuthorityConfig `protobuf:"bytes,6,opt,name=certificate_authority_config,json=certificateAuthorityConfig,proto3" json:"certificate_authority_config,omitempty"` // Required. Workload certificate lifetime requested. - Lifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + Lifetime *duration.Duration `protobuf:"bytes,7,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // Required. Specifies the percentage of elapsed time of the certificate // lifetime to wait before renewing the certificate. Must be a number between // 1-99, inclusive. @@ -489,14 +489,14 @@ func (x *CertificateIssuanceConfig) GetName() string { return "" } -func (x *CertificateIssuanceConfig) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateIssuanceConfig) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateIssuanceConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateIssuanceConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -524,7 +524,7 @@ func (x *CertificateIssuanceConfig) GetCertificateAuthorityConfig() *Certificate return nil } -func (x *CertificateIssuanceConfig) GetLifetime() *durationpb.Duration { +func (x *CertificateIssuanceConfig) GetLifetime() *duration.Duration { if x != nil { return x.Lifetime } @@ -888,8 +888,8 @@ var file_google_cloud_certificatemanager_v1_certificate_issuance_config_proto_go (*CertificateIssuanceConfig_CertificateAuthorityConfig)(nil), // 7: google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig nil, // 8: google.cloud.certificatemanager.v1.CertificateIssuanceConfig.LabelsEntry (*CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig)(nil), // 9: google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*duration.Duration)(nil), // 11: google.protobuf.Duration } var file_google_cloud_certificatemanager_v1_certificate_issuance_config_proto_depIdxs = []int32{ 6, // 0: google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.certificate_issuance_configs:type_name -> google.cloud.certificatemanager.v1.CertificateIssuanceConfig diff --git a/certificatemanager/apiv1/certificatemanagerpb/certificate_manager.pb.go b/certificatemanager/apiv1/certificatemanagerpb/certificate_manager.pb.go index 643ff7000aa8..7c68707304b9 100644 --- a/certificatemanager/apiv1/certificatemanagerpb/certificate_manager.pb.go +++ b/certificatemanager/apiv1/certificatemanagerpb/certificate_manager.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/certificatemanager/v1/certificate_manager.proto package certificatemanagerpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -718,7 +718,7 @@ type UpdateCertificateRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCertificateRequest) Reset() { @@ -760,7 +760,7 @@ func (x *UpdateCertificateRequest) GetCertificate() *Certificate { return nil } -func (x *UpdateCertificateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1105,7 +1105,7 @@ type UpdateCertificateMapRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCertificateMapRequest) Reset() { @@ -1147,7 +1147,7 @@ func (x *UpdateCertificateMapRequest) GetCertificateMap() *CertificateMap { return nil } -func (x *UpdateCertificateMapRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateMapRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1497,7 +1497,7 @@ type UpdateCertificateMapEntryRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCertificateMapEntryRequest) Reset() { @@ -1539,7 +1539,7 @@ func (x *UpdateCertificateMapEntryRequest) GetCertificateMapEntry() *Certificate return nil } -func (x *UpdateCertificateMapEntryRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateMapEntryRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1884,7 +1884,7 @@ type UpdateDnsAuthorizationRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDnsAuthorizationRequest) Reset() { @@ -1926,7 +1926,7 @@ func (x *UpdateDnsAuthorizationRequest) GetDnsAuthorization() *DnsAuthorization return nil } -func (x *UpdateDnsAuthorizationRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDnsAuthorizationRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1990,9 +1990,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the verb executed by the operation. @@ -2041,14 +2041,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_certificatemanager_v1_certificate_manager_proto_rawDescGZIP(), []int{24} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2102,9 +2102,9 @@ type Certificate struct { // One or more paragraphs of text description of a certificate. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of a Certificate. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of a Certificate. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Set of labels associated with a Certificate. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Types that are assignable to Type: @@ -2120,7 +2120,7 @@ type Certificate struct { // Output only. The PEM-encoded certificate chain. PemCertificate string `protobuf:"bytes,9,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` // Output only. The expiry timestamp of a Certificate. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Immutable. The scope of the certificate. Scope Certificate_Scope `protobuf:"varint,12,opt,name=scope,proto3,enum=google.cloud.certificatemanager.v1.Certificate_Scope" json:"scope,omitempty"` } @@ -2171,14 +2171,14 @@ func (x *Certificate) GetDescription() string { return "" } -func (x *Certificate) GetCreateTime() *timestamppb.Timestamp { +func (x *Certificate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Certificate) GetUpdateTime() *timestamppb.Timestamp { +func (x *Certificate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2227,7 +2227,7 @@ func (x *Certificate) GetPemCertificate() string { return "" } -func (x *Certificate) GetExpireTime() *timestamppb.Timestamp { +func (x *Certificate) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -2272,9 +2272,9 @@ type CertificateMap struct { // One or more paragraphs of text description of a certificate map. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of a Certificate Map. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update timestamp of a Certificate Map. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Set of labels associated with a Certificate Map. Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. A list of GCLB targets which use this Certificate Map. @@ -2329,14 +2329,14 @@ func (x *CertificateMap) GetDescription() string { return "" } -func (x *CertificateMap) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateMap) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateMap) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateMap) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2370,9 +2370,9 @@ type CertificateMapEntry struct { // One or more paragraphs of text description of a certificate map entry. Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of a Certificate Map Entry. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update timestamp of a Certificate Map Entry. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Set of labels associated with a Certificate Map Entry. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Types that are assignable to Match: @@ -2434,14 +2434,14 @@ func (x *CertificateMapEntry) GetDescription() string { return "" } -func (x *CertificateMapEntry) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateMapEntry) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateMapEntry) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateMapEntry) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2522,9 +2522,9 @@ type DnsAuthorization struct { // `projects/*/locations/*/dnsAuthorizations/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation timestamp of a DnsAuthorization. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of a DnsAuthorization. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Set of labels associated with a DnsAuthorization. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // One or more paragraphs of text description of a DnsAuthorization. @@ -2578,14 +2578,14 @@ func (x *DnsAuthorization) GetName() string { return "" } -func (x *DnsAuthorization) GetCreateTime() *timestamppb.Timestamp { +func (x *DnsAuthorization) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DnsAuthorization) GetUpdateTime() *timestamppb.Timestamp { +func (x *DnsAuthorization) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -4281,9 +4281,9 @@ var file_google_cloud_certificatemanager_v1_certificate_manager_proto_goTypes = (*CertificateMap_GclbTarget_IpConfig)(nil), // 43: google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig nil, // 44: google.cloud.certificatemanager.v1.CertificateMapEntry.LabelsEntry (*DnsAuthorization_DnsResourceRecord)(nil), // 45: google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - nil, // 46: google.cloud.certificatemanager.v1.DnsAuthorization.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 48: google.protobuf.Timestamp + nil, // 46: google.cloud.certificatemanager.v1.DnsAuthorization.LabelsEntry + (*field_mask.FieldMask)(nil), // 47: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 48: google.protobuf.Timestamp (*ListCertificateIssuanceConfigsRequest)(nil), // 49: google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest (*GetCertificateIssuanceConfigRequest)(nil), // 50: google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest (*CreateCertificateIssuanceConfigRequest)(nil), // 51: google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest diff --git a/certificatemanager/go.mod b/certificatemanager/go.mod index 14afb60a4685..f91d78c34ccc 100644 --- a/certificatemanager/go.mod +++ b/certificatemanager/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/channel/apiv1/channelpb/channel_partner_links.pb.go b/channel/apiv1/channelpb/channel_partner_links.pb.go index e5c1933977db..24ae0f10931b 100644 --- a/channel/apiv1/channelpb/channel_partner_links.pb.go +++ b/channel/apiv1/channelpb/channel_partner_links.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/channel_partner_links.proto package channelpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -171,9 +171,9 @@ type ChannelPartnerLink struct { // Output only. URI of the web page where partner accepts the link invitation. InviteLinkUri string `protobuf:"bytes,4,opt,name=invite_link_uri,json=inviteLinkUri,proto3" json:"invite_link_uri,omitempty"` // Output only. Timestamp of when the channel partner link is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp of when the channel partner link is updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Public identifier that a customer must use to generate a transfer token // to move to this distributor-reseller combination. PublicId string `protobuf:"bytes,7,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` @@ -241,14 +241,14 @@ func (x *ChannelPartnerLink) GetInviteLinkUri() string { return "" } -func (x *ChannelPartnerLink) GetCreateTime() *timestamppb.Timestamp { +func (x *ChannelPartnerLink) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ChannelPartnerLink) GetUpdateTime() *timestamppb.Timestamp { +func (x *ChannelPartnerLink) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -363,11 +363,11 @@ func file_google_cloud_channel_v1_channel_partner_links_proto_rawDescGZIP() []by var file_google_cloud_channel_v1_channel_partner_links_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_google_cloud_channel_v1_channel_partner_links_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_channel_v1_channel_partner_links_proto_goTypes = []interface{}{ - (ChannelPartnerLinkView)(0), // 0: google.cloud.channel.v1.ChannelPartnerLinkView - (ChannelPartnerLinkState)(0), // 1: google.cloud.channel.v1.ChannelPartnerLinkState - (*ChannelPartnerLink)(nil), // 2: google.cloud.channel.v1.ChannelPartnerLink - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*CloudIdentityInfo)(nil), // 4: google.cloud.channel.v1.CloudIdentityInfo + (ChannelPartnerLinkView)(0), // 0: google.cloud.channel.v1.ChannelPartnerLinkView + (ChannelPartnerLinkState)(0), // 1: google.cloud.channel.v1.ChannelPartnerLinkState + (*ChannelPartnerLink)(nil), // 2: google.cloud.channel.v1.ChannelPartnerLink + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*CloudIdentityInfo)(nil), // 4: google.cloud.channel.v1.CloudIdentityInfo } var file_google_cloud_channel_v1_channel_partner_links_proto_depIdxs = []int32{ 1, // 0: google.cloud.channel.v1.ChannelPartnerLink.link_state:type_name -> google.cloud.channel.v1.ChannelPartnerLinkState diff --git a/channel/apiv1/channelpb/common.pb.go b/channel/apiv1/channelpb/common.pb.go index 35345151f6af..9392d1e23f2e 100644 --- a/channel/apiv1/channelpb/common.pb.go +++ b/channel/apiv1/channelpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/common.proto package channelpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" ) const ( @@ -477,7 +477,7 @@ func (x *Value) GetDoubleValue() float64 { return 0 } -func (x *Value) GetProtoValue() *anypb.Any { +func (x *Value) GetProtoValue() *any1.Any { if x, ok := x.GetKind().(*Value_ProtoValue); ok { return x.ProtoValue } @@ -512,7 +512,7 @@ type Value_DoubleValue struct { type Value_ProtoValue struct { // Represents an 'Any' proto value. - ProtoValue *anypb.Any `protobuf:"bytes,4,opt,name=proto_value,json=protoValue,proto3,oneof"` + ProtoValue *any1.Any `protobuf:"bytes,4,opt,name=proto_value,json=protoValue,proto3,oneof"` } type Value_BoolValue struct { @@ -720,7 +720,7 @@ var file_google_cloud_channel_v1_common_proto_goTypes = []interface{}{ (*CloudIdentityInfo)(nil), // 4: google.cloud.channel.v1.CloudIdentityInfo (*Value)(nil), // 5: google.cloud.channel.v1.Value (*AdminUser)(nil), // 6: google.cloud.channel.v1.AdminUser - (*anypb.Any)(nil), // 7: google.protobuf.Any + (*any1.Any)(nil), // 7: google.protobuf.Any } var file_google_cloud_channel_v1_common_proto_depIdxs = []int32{ 0, // 0: google.cloud.channel.v1.EduData.institute_type:type_name -> google.cloud.channel.v1.EduData.InstituteType diff --git a/channel/apiv1/channelpb/customers.pb.go b/channel/apiv1/channelpb/customers.pb.go index 3c6045c1b65b..dad0cc5cfb87 100644 --- a/channel/apiv1/channelpb/customers.pb.go +++ b/channel/apiv1/channelpb/customers.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/customers.proto package channelpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" postaladdress "google.golang.org/genproto/googleapis/type/postaladdress" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -66,9 +66,9 @@ type Customer struct { // email's domain. Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` // Output only. Time when the customer was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the customer was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The customer's Cloud Identity ID if the customer has a Cloud // Identity resource. CloudIdentityId string `protobuf:"bytes,9,opt,name=cloud_identity_id,json=cloudIdentityId,proto3" json:"cloud_identity_id,omitempty"` @@ -158,14 +158,14 @@ func (x *Customer) GetDomain() string { return "" } -func (x *Customer) GetCreateTime() *timestamppb.Timestamp { +func (x *Customer) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Customer) GetUpdateTime() *timestamppb.Timestamp { +func (x *Customer) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -401,7 +401,7 @@ var file_google_cloud_channel_v1_customers_proto_goTypes = []interface{}{ (*Customer)(nil), // 0: google.cloud.channel.v1.Customer (*ContactInfo)(nil), // 1: google.cloud.channel.v1.ContactInfo (*postaladdress.PostalAddress)(nil), // 2: google.type.PostalAddress - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp (*CloudIdentityInfo)(nil), // 4: google.cloud.channel.v1.CloudIdentityInfo } var file_google_cloud_channel_v1_customers_proto_depIdxs = []int32{ diff --git a/channel/apiv1/channelpb/entitlements.pb.go b/channel/apiv1/channelpb/entitlements.pb.go index 9cd7d713b046..8eecf826a193 100644 --- a/channel/apiv1/channelpb/entitlements.pb.go +++ b/channel/apiv1/channelpb/entitlements.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/entitlements.proto package channelpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -223,9 +223,9 @@ type Entitlement struct { // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which the entitlement is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which the entitlement is updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. The offer resource name for which the entitlement is to be // created. Takes the form: accounts/{account_id}/offers/{offer_id}. Offer string `protobuf:"bytes,8,opt,name=offer,proto3" json:"offer,omitempty"` @@ -301,14 +301,14 @@ func (x *Entitlement) GetName() string { return "" } -func (x *Entitlement) GetCreateTime() *timestamppb.Timestamp { +func (x *Entitlement) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Entitlement) GetUpdateTime() *timestamppb.Timestamp { +func (x *Entitlement) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -573,9 +573,9 @@ type CommitmentSettings struct { unknownFields protoimpl.UnknownFields // Output only. Commitment start timestamp. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Commitment end timestamp. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Optional. Renewal settings applicable for a commitment-based Offer. RenewalSettings *RenewalSettings `protobuf:"bytes,4,opt,name=renewal_settings,json=renewalSettings,proto3" json:"renewal_settings,omitempty"` } @@ -612,14 +612,14 @@ func (*CommitmentSettings) Descriptor() ([]byte, []int) { return file_google_cloud_channel_v1_entitlements_proto_rawDescGZIP(), []int{4} } -func (x *CommitmentSettings) GetStartTime() *timestamppb.Timestamp { +func (x *CommitmentSettings) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *CommitmentSettings) GetEndTime() *timestamppb.Timestamp { +func (x *CommitmentSettings) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -725,7 +725,7 @@ type TrialSettings struct { // Date when the trial ends. The value is in milliseconds // using the UNIX Epoch format. See an example [Epoch // converter](https://www.epochconverter.com). - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TrialSettings) Reset() { @@ -767,7 +767,7 @@ func (x *TrialSettings) GetTrial() bool { return false } -func (x *TrialSettings) GetEndTime() *timestamppb.Timestamp { +func (x *TrialSettings) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1140,7 +1140,7 @@ var file_google_cloud_channel_v1_entitlements_proto_goTypes = []interface{}{ (*TrialSettings)(nil), // 9: google.cloud.channel.v1.TrialSettings (*TransferableSku)(nil), // 10: google.cloud.channel.v1.TransferableSku (*TransferEligibility)(nil), // 11: google.cloud.channel.v1.TransferEligibility - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 12: google.protobuf.Timestamp (*Value)(nil), // 13: google.cloud.channel.v1.Value (PaymentPlan)(0), // 14: google.cloud.channel.v1.PaymentPlan (*Period)(nil), // 15: google.cloud.channel.v1.Period diff --git a/channel/apiv1/channelpb/offers.pb.go b/channel/apiv1/channelpb/offers.pb.go index 3921ff5b90c0..306887c22211 100644 --- a/channel/apiv1/channelpb/offers.pb.go +++ b/channel/apiv1/channelpb/offers.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/offers.proto package channelpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" money "google.golang.org/genproto/googleapis/type/money" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -428,9 +428,9 @@ type Offer struct { // Price for each monetizable resource type. PriceByResources []*PriceByResource `protobuf:"bytes,6,rep,name=price_by_resources,json=priceByResources,proto3" json:"price_by_resources,omitempty"` // Start of the Offer validity time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. End of the Offer validity time. - EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Parameters required to use current Offer to purchase. ParameterDefinitions []*ParameterDefinition `protobuf:"bytes,9,rep,name=parameter_definitions,json=parameterDefinitions,proto3" json:"parameter_definitions,omitempty"` } @@ -509,14 +509,14 @@ func (x *Offer) GetPriceByResources() []*PriceByResource { return nil } -func (x *Offer) GetStartTime() *timestamppb.Timestamp { +func (x *Offer) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Offer) GetEndTime() *timestamppb.Timestamp { +func (x *Offer) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1470,7 +1470,7 @@ var file_google_cloud_channel_v1_offers_proto_goTypes = []interface{}{ (*Period)(nil), // 15: google.cloud.channel.v1.Period (*MarketingInfo)(nil), // 16: google.cloud.channel.v1.MarketingInfo (*Sku)(nil), // 17: google.cloud.channel.v1.Sku - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp (*Value)(nil), // 19: google.cloud.channel.v1.Value (CloudIdentityInfo_CustomerType)(0), // 20: google.cloud.channel.v1.CloudIdentityInfo.CustomerType (*money.Money)(nil), // 21: google.type.Money diff --git a/channel/apiv1/channelpb/operations.pb.go b/channel/apiv1/channelpb/operations.pb.go index 6f129c4c8c7a..4900c706f42b 100644 --- a/channel/apiv1/channelpb/operations.pb.go +++ b/channel/apiv1/channelpb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/operations.proto package channelpb diff --git a/channel/apiv1/channelpb/products.pb.go b/channel/apiv1/channelpb/products.pb.go index 639aaa8a4b41..7356fe6fdf09 100644 --- a/channel/apiv1/channelpb/products.pb.go +++ b/channel/apiv1/channelpb/products.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/products.proto package channelpb diff --git a/channel/apiv1/channelpb/reports_service.pb.go b/channel/apiv1/channelpb/reports_service.pb.go index cf10e2a36c70..948be95dfc32 100644 --- a/channel/apiv1/channelpb/reports_service.pb.go +++ b/channel/apiv1/channelpb/reports_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/reports_service.proto package channelpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" date "google.golang.org/genproto/googleapis/type/date" @@ -36,7 +37,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1139,9 +1139,9 @@ type ReportStatus struct { // The current state of the report generation process. State ReportStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.channel.v1.ReportStatus_State" json:"state,omitempty"` // The report generation's start time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The report generation's completion time. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *ReportStatus) Reset() { @@ -1183,14 +1183,14 @@ func (x *ReportStatus) GetState() ReportStatus_State { return ReportStatus_STATE_UNSPECIFIED } -func (x *ReportStatus) GetStartTime() *timestamppb.Timestamp { +func (x *ReportStatus) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ReportStatus) GetEndTime() *timestamppb.Timestamp { +func (x *ReportStatus) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1583,7 +1583,7 @@ var file_google_cloud_channel_v1_reports_service_proto_goTypes = []interface{}{ (*date.Date)(nil), // 17: google.type.Date (*decimal.Decimal)(nil), // 18: google.type.Decimal (*money.Money)(nil), // 19: google.type.Money - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 20: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 21: google.longrunning.Operation } var file_google_cloud_channel_v1_reports_service_proto_depIdxs = []int32{ diff --git a/channel/apiv1/channelpb/repricing.pb.go b/channel/apiv1/channelpb/repricing.pb.go index 7d0f3e3a002b..48b660534127 100644 --- a/channel/apiv1/channelpb/repricing.pb.go +++ b/channel/apiv1/channelpb/repricing.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/repricing.proto package channelpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" date "google.golang.org/genproto/googleapis/type/date" decimal "google.golang.org/genproto/googleapis/type/decimal" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -111,7 +111,7 @@ type CustomerRepricingConfig struct { // Output only. Timestamp of an update to the repricing rule. If `update_time` is after // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] then it indicates this was set // mid-month. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *CustomerRepricingConfig) Reset() { @@ -160,7 +160,7 @@ func (x *CustomerRepricingConfig) GetRepricingConfig() *RepricingConfig { return nil } -func (x *CustomerRepricingConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *CustomerRepricingConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -184,7 +184,7 @@ type ChannelPartnerRepricingConfig struct { // Output only. Timestamp of an update to the repricing rule. If `update_time` is after // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] then it indicates this was set // mid-month. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *ChannelPartnerRepricingConfig) Reset() { @@ -233,7 +233,7 @@ func (x *ChannelPartnerRepricingConfig) GetRepricingConfig() *RepricingConfig { return nil } -func (x *ChannelPartnerRepricingConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *ChannelPartnerRepricingConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -732,7 +732,7 @@ var file_google_cloud_channel_v1_repricing_proto_goTypes = []interface{}{ (*PercentageAdjustment)(nil), // 5: google.cloud.channel.v1.PercentageAdjustment (*RepricingConfig_EntitlementGranularity)(nil), // 6: google.cloud.channel.v1.RepricingConfig.EntitlementGranularity (*RepricingConfig_ChannelPartnerGranularity)(nil), // 7: google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp (*date.Date)(nil), // 9: google.type.Date (*decimal.Decimal)(nil), // 10: google.type.Decimal } diff --git a/channel/apiv1/channelpb/service.pb.go b/channel/apiv1/channelpb/service.pb.go index ccae47f084d6..6aba841634fb 100644 --- a/channel/apiv1/channelpb/service.pb.go +++ b/channel/apiv1/channelpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/service.proto package channelpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -548,7 +548,7 @@ type UpdateCustomerRequest struct { Customer *Customer `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"` // The update mask that applies to the resource. // Optional. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCustomerRequest) Reset() { @@ -590,7 +590,7 @@ func (x *UpdateCustomerRequest) GetCustomer() *Customer { return nil } -func (x *UpdateCustomerRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCustomerRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1798,7 +1798,7 @@ type UpdateChannelPartnerLinkRequest struct { // Required. The update mask that applies to the resource. // The only allowable value for an update mask is // channel_partner_link.link_state. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateChannelPartnerLinkRequest) Reset() { @@ -1847,7 +1847,7 @@ func (x *UpdateChannelPartnerLinkRequest) GetChannelPartnerLink() *ChannelPartne return nil } -func (x *UpdateChannelPartnerLinkRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateChannelPartnerLinkRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -6448,7 +6448,7 @@ var file_google_cloud_channel_v1_service_proto_goTypes = []interface{}{ (*ListPurchasableOffersRequest_CreateEntitlementPurchase)(nil), // 69: google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase (*ListPurchasableOffersRequest_ChangeOfferPurchase)(nil), // 70: google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase (*Customer)(nil), // 71: google.cloud.channel.v1.Customer - (*fieldmaskpb.FieldMask)(nil), // 72: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 72: google.protobuf.FieldMask (*CloudIdentityInfo)(nil), // 73: google.cloud.channel.v1.CloudIdentityInfo (*AdminUser)(nil), // 74: google.cloud.channel.v1.AdminUser (*Entitlement)(nil), // 75: google.cloud.channel.v1.Entitlement @@ -6462,7 +6462,7 @@ var file_google_cloud_channel_v1_service_proto_goTypes = []interface{}{ (*RenewalSettings)(nil), // 83: google.cloud.channel.v1.RenewalSettings (*Product)(nil), // 84: google.cloud.channel.v1.Product (*Sku)(nil), // 85: google.cloud.channel.v1.Sku - (*emptypb.Empty)(nil), // 86: google.protobuf.Empty + (*empty.Empty)(nil), // 86: google.protobuf.Empty (*longrunning.Operation)(nil), // 87: google.longrunning.Operation } var file_google_cloud_channel_v1_service_proto_depIdxs = []int32{ @@ -7589,7 +7589,7 @@ type CloudChannelServiceClient interface { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // * FAILED_PRECONDITION: The customer has existing entitlements. // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request. - DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided // Cloud Identity ID or domain before a TransferEntitlements call. If a // linked Customer already exists and overwrite_if_exists is true, it will @@ -8158,7 +8158,7 @@ type CloudChannelServiceClient interface { // past. // * NOT_FOUND: No [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] found for the name in the // request. - DeleteCustomerRepricingConfig(ctx context.Context, in *DeleteCustomerRepricingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteCustomerRepricingConfig(ctx context.Context, in *DeleteCustomerRepricingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets information about how a Distributor modifies their bill before sending // it to a ChannelPartner. // @@ -8276,7 +8276,7 @@ type CloudChannelServiceClient interface { // in the past. // * NOT_FOUND: No [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] found for the name in the // request. - DeleteChannelPartnerRepricingConfig(ctx context.Context, in *DeleteChannelPartnerRepricingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteChannelPartnerRepricingConfig(ctx context.Context, in *DeleteChannelPartnerRepricingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. // // Possible error codes: @@ -8439,8 +8439,8 @@ func (c *cloudChannelServiceClient) UpdateCustomer(ctx context.Context, in *Upda return out, nil } -func (c *cloudChannelServiceClient) DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudChannelServiceClient) DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.channel.v1.CloudChannelService/DeleteCustomer", in, out, opts...) if err != nil { return nil, err @@ -8664,8 +8664,8 @@ func (c *cloudChannelServiceClient) UpdateCustomerRepricingConfig(ctx context.Co return out, nil } -func (c *cloudChannelServiceClient) DeleteCustomerRepricingConfig(ctx context.Context, in *DeleteCustomerRepricingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudChannelServiceClient) DeleteCustomerRepricingConfig(ctx context.Context, in *DeleteCustomerRepricingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.channel.v1.CloudChannelService/DeleteCustomerRepricingConfig", in, out, opts...) if err != nil { return nil, err @@ -8709,8 +8709,8 @@ func (c *cloudChannelServiceClient) UpdateChannelPartnerRepricingConfig(ctx cont return out, nil } -func (c *cloudChannelServiceClient) DeleteChannelPartnerRepricingConfig(ctx context.Context, in *DeleteChannelPartnerRepricingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudChannelServiceClient) DeleteChannelPartnerRepricingConfig(ctx context.Context, in *DeleteChannelPartnerRepricingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.channel.v1.CloudChannelService/DeleteChannelPartnerRepricingConfig", in, out, opts...) if err != nil { return nil, err @@ -8878,7 +8878,7 @@ type CloudChannelServiceServer interface { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // * FAILED_PRECONDITION: The customer has existing entitlements. // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request. - DeleteCustomer(context.Context, *DeleteCustomerRequest) (*emptypb.Empty, error) + DeleteCustomer(context.Context, *DeleteCustomerRequest) (*empty.Empty, error) // Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided // Cloud Identity ID or domain before a TransferEntitlements call. If a // linked Customer already exists and overwrite_if_exists is true, it will @@ -9447,7 +9447,7 @@ type CloudChannelServiceServer interface { // past. // * NOT_FOUND: No [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] found for the name in the // request. - DeleteCustomerRepricingConfig(context.Context, *DeleteCustomerRepricingConfigRequest) (*emptypb.Empty, error) + DeleteCustomerRepricingConfig(context.Context, *DeleteCustomerRepricingConfigRequest) (*empty.Empty, error) // Gets information about how a Distributor modifies their bill before sending // it to a ChannelPartner. // @@ -9565,7 +9565,7 @@ type CloudChannelServiceServer interface { // in the past. // * NOT_FOUND: No [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] found for the name in the // request. - DeleteChannelPartnerRepricingConfig(context.Context, *DeleteChannelPartnerRepricingConfigRequest) (*emptypb.Empty, error) + DeleteChannelPartnerRepricingConfig(context.Context, *DeleteChannelPartnerRepricingConfigRequest) (*empty.Empty, error) // Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. // // Possible error codes: @@ -9694,7 +9694,7 @@ func (*UnimplementedCloudChannelServiceServer) CreateCustomer(context.Context, * func (*UnimplementedCloudChannelServiceServer) UpdateCustomer(context.Context, *UpdateCustomerRequest) (*Customer, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCustomer not implemented") } -func (*UnimplementedCloudChannelServiceServer) DeleteCustomer(context.Context, *DeleteCustomerRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudChannelServiceServer) DeleteCustomer(context.Context, *DeleteCustomerRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCustomer not implemented") } func (*UnimplementedCloudChannelServiceServer) ImportCustomer(context.Context, *ImportCustomerRequest) (*Customer, error) { @@ -9769,7 +9769,7 @@ func (*UnimplementedCloudChannelServiceServer) CreateCustomerRepricingConfig(con func (*UnimplementedCloudChannelServiceServer) UpdateCustomerRepricingConfig(context.Context, *UpdateCustomerRepricingConfigRequest) (*CustomerRepricingConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCustomerRepricingConfig not implemented") } -func (*UnimplementedCloudChannelServiceServer) DeleteCustomerRepricingConfig(context.Context, *DeleteCustomerRepricingConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudChannelServiceServer) DeleteCustomerRepricingConfig(context.Context, *DeleteCustomerRepricingConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCustomerRepricingConfig not implemented") } func (*UnimplementedCloudChannelServiceServer) GetChannelPartnerRepricingConfig(context.Context, *GetChannelPartnerRepricingConfigRequest) (*ChannelPartnerRepricingConfig, error) { @@ -9784,7 +9784,7 @@ func (*UnimplementedCloudChannelServiceServer) CreateChannelPartnerRepricingConf func (*UnimplementedCloudChannelServiceServer) UpdateChannelPartnerRepricingConfig(context.Context, *UpdateChannelPartnerRepricingConfigRequest) (*ChannelPartnerRepricingConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateChannelPartnerRepricingConfig not implemented") } -func (*UnimplementedCloudChannelServiceServer) DeleteChannelPartnerRepricingConfig(context.Context, *DeleteChannelPartnerRepricingConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudChannelServiceServer) DeleteChannelPartnerRepricingConfig(context.Context, *DeleteChannelPartnerRepricingConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteChannelPartnerRepricingConfig not implemented") } func (*UnimplementedCloudChannelServiceServer) LookupOffer(context.Context, *LookupOfferRequest) (*Offer, error) { diff --git a/channel/apiv1/channelpb/subscriber_event.pb.go b/channel/apiv1/channelpb/subscriber_event.pb.go index bfed51279063..5297d249e99e 100644 --- a/channel/apiv1/channelpb/subscriber_event.pb.go +++ b/channel/apiv1/channelpb/subscriber_event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/channel/v1/subscriber_event.proto package channelpb diff --git a/channel/go.mod b/channel/go.mod index b7fe4b355714..3bc9e6df936a 100644 --- a/channel/go.mod +++ b/channel/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/cloudbuild/apiv1/v2/cloudbuildpb/cloudbuild.pb.go b/cloudbuild/apiv1/v2/cloudbuildpb/cloudbuild.pb.go index 48cdb2c3dec8..c0f7a507f2a1 100644 --- a/cloudbuild/apiv1/v2/cloudbuildpb/cloudbuild.pb.go +++ b/cloudbuild/apiv1/v2/cloudbuildpb/cloudbuild.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/cloudbuild/v1/cloudbuild.proto package cloudbuildpb @@ -25,18 +25,18 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" httpbody "google.golang.org/genproto/googleapis/api/httpbody" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1699,7 +1699,7 @@ type BuildStep struct { // Time limit for executing this build step. If not defined, the step has no // time limit and will be allowed to continue to run until either it completes // or the build itself times out. - Timeout *durationpb.Duration `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout,omitempty"` // Output only. Status of the build step. At this time, build step status is // only updated on build completion; step status is not updated in real-time // as the build progresses. @@ -1819,7 +1819,7 @@ func (x *BuildStep) GetPullTiming() *TimeSpan { return nil } -func (x *BuildStep) GetTimeout() *durationpb.Duration { +func (x *BuildStep) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -2108,14 +2108,14 @@ type Build struct { // Output only. Results of the build. Results *Results `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` // Output only. Time at which the request to create the build was received. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time at which execution of the build was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Time at which execution of the build was finished. // // The difference between finish_time and start_time is the duration of the // build's execution. - FinishTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"` + FinishTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"` // Amount of time that this build should be allowed to run, to second // granularity. If this amount of time elapses, work on the build will cease // and the build status will be `TIMEOUT`. @@ -2123,7 +2123,7 @@ type Build struct { // `timeout` starts ticking from `startTime`. // // Default time is ten minutes. - Timeout *durationpb.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"` // A list of images to be pushed upon the successful completion of all build // steps. // @@ -2140,7 +2140,7 @@ type Build struct { // `EXPIRED`. // // The TTL starts ticking from create_time. - QueueTtl *durationpb.Duration `protobuf:"bytes,40,opt,name=queue_ttl,json=queueTtl,proto3" json:"queue_ttl,omitempty"` + QueueTtl *duration.Duration `protobuf:"bytes,40,opt,name=queue_ttl,json=queueTtl,proto3" json:"queue_ttl,omitempty"` // Artifacts produced by the build that should be uploaded upon // successful completion of all build steps. Artifacts *Artifacts `protobuf:"bytes,37,opt,name=artifacts,proto3" json:"artifacts,omitempty"` @@ -2283,28 +2283,28 @@ func (x *Build) GetResults() *Results { return nil } -func (x *Build) GetCreateTime() *timestamppb.Timestamp { +func (x *Build) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Build) GetStartTime() *timestamppb.Timestamp { +func (x *Build) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Build) GetFinishTime() *timestamppb.Timestamp { +func (x *Build) GetFinishTime() *timestamp.Timestamp { if x != nil { return x.FinishTime } return nil } -func (x *Build) GetTimeout() *durationpb.Duration { +func (x *Build) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -2318,7 +2318,7 @@ func (x *Build) GetImages() []string { return nil } -func (x *Build) GetQueueTtl() *durationpb.Duration { +func (x *Build) GetQueueTtl() *duration.Duration { if x != nil { return x.QueueTtl } @@ -2514,9 +2514,9 @@ type TimeSpan struct { unknownFields protoimpl.UnknownFields // Start of time span. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of time span. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimeSpan) Reset() { @@ -2551,14 +2551,14 @@ func (*TimeSpan) Descriptor() ([]byte, []int) { return file_google_devtools_cloudbuild_v1_cloudbuild_proto_rawDescGZIP(), []int{13} } -func (x *TimeSpan) GetStartTime() *timestamppb.Timestamp { +func (x *TimeSpan) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeSpan) GetEndTime() *timestamppb.Timestamp { +func (x *TimeSpan) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3610,7 +3610,7 @@ type ApprovalResult struct { // approve or reject a build at the time that the API was called. ApproverAccount string `protobuf:"bytes,2,opt,name=approver_account,json=approverAccount,proto3" json:"approver_account,omitempty"` // Output only. The time when the approval decision was made. - ApprovalTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=approval_time,json=approvalTime,proto3" json:"approval_time,omitempty"` + ApprovalTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=approval_time,json=approvalTime,proto3" json:"approval_time,omitempty"` // Required. The decision of this manual approval. Decision ApprovalResult_Decision `protobuf:"varint,4,opt,name=decision,proto3,enum=google.devtools.cloudbuild.v1.ApprovalResult_Decision" json:"decision,omitempty"` // Optional. An optional comment for this manual approval result. @@ -3661,7 +3661,7 @@ func (x *ApprovalResult) GetApproverAccount() string { return "" } -func (x *ApprovalResult) GetApprovalTime() *timestamppb.Timestamp { +func (x *ApprovalResult) GetApprovalTime() *timestamp.Timestamp { if x != nil { return x.ApprovalTime } @@ -3741,7 +3741,7 @@ type BuildTrigger struct { // *BuildTrigger_Filename BuildTemplate isBuildTrigger_BuildTemplate `protobuf_oneof:"build_template"` // Output only. Time when the trigger was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // If true, the trigger will never automatically execute a build. Disabled bool `protobuf:"varint,9,opt,name=disabled,proto3" json:"disabled,omitempty"` // Substitutions for Build resource. The keys must match the following @@ -3899,7 +3899,7 @@ func (x *BuildTrigger) GetFilename() string { return "" } -func (x *BuildTrigger) GetCreateTime() *timestamppb.Timestamp { +func (x *BuildTrigger) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -5227,13 +5227,13 @@ type WorkerPool struct { Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Time at which the request to create the `WorkerPool` was // received. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time at which the request to update the `WorkerPool` was // received. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Time at which the request to delete the `WorkerPool` was // received. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. `WorkerPool` state. State WorkerPool_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.devtools.cloudbuild.v1.WorkerPool_State" json:"state,omitempty"` // Private Pool configuration for the `WorkerPool`. @@ -5308,21 +5308,21 @@ func (x *WorkerPool) GetAnnotations() map[string]string { return nil } -func (x *WorkerPool) GetCreateTime() *timestamppb.Timestamp { +func (x *WorkerPool) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *WorkerPool) GetUpdateTime() *timestamppb.Timestamp { +func (x *WorkerPool) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *WorkerPool) GetDeleteTime() *timestamppb.Timestamp { +func (x *WorkerPool) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } @@ -5651,7 +5651,7 @@ type UpdateWorkerPoolRequest struct { // Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`. WorkerPool *WorkerPool `protobuf:"bytes,1,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` // A mask specifying which fields in `worker_pool` to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If set, validate the request and preview the response, but do not actually // post it. ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -5696,7 +5696,7 @@ func (x *UpdateWorkerPoolRequest) GetWorkerPool() *WorkerPool { return nil } -func (x *UpdateWorkerPoolRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateWorkerPoolRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -5851,9 +5851,9 @@ type CreateWorkerPoolOperationMetadata struct { // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `protobuf:"bytes,1,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` // Time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time the operation was completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` } func (x *CreateWorkerPoolOperationMetadata) Reset() { @@ -5895,14 +5895,14 @@ func (x *CreateWorkerPoolOperationMetadata) GetWorkerPool() string { return "" } -func (x *CreateWorkerPoolOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateWorkerPoolOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CreateWorkerPoolOperationMetadata) GetCompleteTime() *timestamppb.Timestamp { +func (x *CreateWorkerPoolOperationMetadata) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -5920,9 +5920,9 @@ type UpdateWorkerPoolOperationMetadata struct { // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `protobuf:"bytes,1,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` // Time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time the operation was completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` } func (x *UpdateWorkerPoolOperationMetadata) Reset() { @@ -5964,14 +5964,14 @@ func (x *UpdateWorkerPoolOperationMetadata) GetWorkerPool() string { return "" } -func (x *UpdateWorkerPoolOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *UpdateWorkerPoolOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *UpdateWorkerPoolOperationMetadata) GetCompleteTime() *timestamppb.Timestamp { +func (x *UpdateWorkerPoolOperationMetadata) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -5989,9 +5989,9 @@ type DeleteWorkerPoolOperationMetadata struct { // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `protobuf:"bytes,1,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` // Time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time the operation was completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` } func (x *DeleteWorkerPoolOperationMetadata) Reset() { @@ -6033,14 +6033,14 @@ func (x *DeleteWorkerPoolOperationMetadata) GetWorkerPool() string { return "" } -func (x *DeleteWorkerPoolOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *DeleteWorkerPoolOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DeleteWorkerPoolOperationMetadata) GetCompleteTime() *timestamppb.Timestamp { +func (x *DeleteWorkerPoolOperationMetadata) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -7977,12 +7977,12 @@ var file_google_devtools_cloudbuild_v1_cloudbuild_proto_goTypes = []interface{}{ nil, // 84: google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry (*PrivatePoolV1Config_WorkerConfig)(nil), // 85: google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig (*PrivatePoolV1Config_NetworkConfig)(nil), // 86: google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig - (*durationpb.Duration)(nil), // 87: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 88: google.protobuf.Timestamp + (*duration.Duration)(nil), // 87: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 88: google.protobuf.Timestamp (*httpbody.HttpBody)(nil), // 89: google.api.HttpBody - (*fieldmaskpb.FieldMask)(nil), // 90: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 90: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 91: google.longrunning.Operation - (*emptypb.Empty)(nil), // 92: google.protobuf.Empty + (*empty.Empty)(nil), // 92: google.protobuf.Empty } var file_google_devtools_cloudbuild_v1_cloudbuild_proto_depIdxs = []int32{ 19, // 0: google.devtools.cloudbuild.v1.RunBuildTriggerRequest.source:type_name -> google.devtools.cloudbuild.v1.RepoSource @@ -9027,7 +9027,7 @@ type CloudBuildClient interface { // Deletes a `BuildTrigger` by its project ID and trigger ID. // // This API is experimental. - DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a `BuildTrigger` by its project ID and trigger ID. // // This API is experimental. @@ -9138,8 +9138,8 @@ func (c *cloudBuildClient) ListBuildTriggers(ctx context.Context, in *ListBuildT return out, nil } -func (c *cloudBuildClient) DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudBuildClient) DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.devtools.cloudbuild.v1.CloudBuild/DeleteBuildTrigger", in, out, opts...) if err != nil { return nil, err @@ -9289,7 +9289,7 @@ type CloudBuildServer interface { // Deletes a `BuildTrigger` by its project ID and trigger ID. // // This API is experimental. - DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*emptypb.Empty, error) + DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*empty.Empty, error) // Updates a `BuildTrigger` by its project ID and trigger ID. // // This API is experimental. @@ -9342,7 +9342,7 @@ func (*UnimplementedCloudBuildServer) GetBuildTrigger(context.Context, *GetBuild func (*UnimplementedCloudBuildServer) ListBuildTriggers(context.Context, *ListBuildTriggersRequest) (*ListBuildTriggersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListBuildTriggers not implemented") } -func (*UnimplementedCloudBuildServer) DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudBuildServer) DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBuildTrigger not implemented") } func (*UnimplementedCloudBuildServer) UpdateBuildTrigger(context.Context, *UpdateBuildTriggerRequest) (*BuildTrigger, error) { diff --git a/clouddms/apiv1/clouddmspb/clouddms.pb.go b/clouddms/apiv1/clouddmspb/clouddms.pb.go index 66484151d642..ed0f82f0bdba 100644 --- a/clouddms/apiv1/clouddmspb/clouddms.pb.go +++ b/clouddms/apiv1/clouddmspb/clouddms.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/clouddms/v1/clouddms.proto package clouddmspb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -354,7 +354,7 @@ type UpdateMigrationJobRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // migration job resource by the update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The migration job parameters to update. MigrationJob *MigrationJob `protobuf:"bytes,2,opt,name=migration_job,json=migrationJob,proto3" json:"migration_job,omitempty"` // A unique id used to identify the request. If the server receives two @@ -399,7 +399,7 @@ func (*UpdateMigrationJobRequest) Descriptor() ([]byte, []int) { return file_google_cloud_clouddms_v1_clouddms_proto_rawDescGZIP(), []int{4} } -func (x *UpdateMigrationJobRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateMigrationJobRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1374,7 +1374,7 @@ type UpdateConnectionProfileRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // connection profile resource by the update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The connection profile parameters to update. ConnectionProfile *ConnectionProfile `protobuf:"bytes,2,opt,name=connection_profile,json=connectionProfile,proto3" json:"connection_profile,omitempty"` // A unique id used to identify the request. If the server receives two @@ -1419,7 +1419,7 @@ func (*UpdateConnectionProfileRequest) Descriptor() ([]byte, []int) { return file_google_cloud_clouddms_v1_clouddms_proto_rawDescGZIP(), []int{20} } -func (x *UpdateConnectionProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateConnectionProfileRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1521,9 +1521,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1571,14 +1571,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_clouddms_v1_clouddms_proto_rawDescGZIP(), []int{22} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2182,9 +2182,9 @@ var file_google_cloud_clouddms_v1_clouddms_proto_goTypes = []interface{}{ (*DeleteConnectionProfileRequest)(nil), // 21: google.cloud.clouddms.v1.DeleteConnectionProfileRequest (*OperationMetadata)(nil), // 22: google.cloud.clouddms.v1.OperationMetadata (*MigrationJob)(nil), // 23: google.cloud.clouddms.v1.MigrationJob - (*fieldmaskpb.FieldMask)(nil), // 24: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 24: google.protobuf.FieldMask (*ConnectionProfile)(nil), // 25: google.cloud.clouddms.v1.ConnectionProfile - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 27: google.longrunning.Operation } var file_google_cloud_clouddms_v1_clouddms_proto_depIdxs = []int32{ diff --git a/clouddms/apiv1/clouddmspb/clouddms_resources.pb.go b/clouddms/apiv1/clouddmspb/clouddms_resources.pb.go index cbeafc5bfcf3..45ce459b5299 100644 --- a/clouddms/apiv1/clouddmspb/clouddms_resources.pb.go +++ b/clouddms/apiv1/clouddmspb/clouddms_resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/clouddms/v1/clouddms_resources.proto package clouddmspb @@ -24,13 +24,13 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -1243,14 +1243,14 @@ func (m *SqlAclEntry) GetExpiration() isSqlAclEntry_Expiration { return nil } -func (x *SqlAclEntry) GetExpireTime() *timestamppb.Timestamp { +func (x *SqlAclEntry) GetExpireTime() *timestamp.Timestamp { if x, ok := x.GetExpiration().(*SqlAclEntry_ExpireTime); ok { return x.ExpireTime } return nil } -func (x *SqlAclEntry) GetTtl() *durationpb.Duration { +func (x *SqlAclEntry) GetTtl() *duration.Duration { if x, ok := x.GetExpiration().(*SqlAclEntry_Ttl); ok { return x.Ttl } @@ -1272,12 +1272,12 @@ type SqlAclEntry_ExpireTime struct { // The time when this access control entry expires in // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example: // `2012-11-15T16:19:00.094Z`. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expire_time,json=expireTime,proto3,oneof"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expire_time,json=expireTime,proto3,oneof"` } type SqlAclEntry_Ttl struct { // Input only. The time-to-leave of this access control entry. - Ttl *durationpb.Duration `protobuf:"bytes,11,opt,name=ttl,proto3,oneof"` + Ttl *duration.Duration `protobuf:"bytes,11,opt,name=ttl,proto3,oneof"` } func (*SqlAclEntry_ExpireTime) isSqlAclEntry_Expiration() {} @@ -1291,14 +1291,14 @@ type SqlIpConfig struct { unknownFields protoimpl.UnknownFields // Whether the instance should be assigned an IPv4 address or not. - EnableIpv4 *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enable_ipv4,json=enableIpv4,proto3" json:"enable_ipv4,omitempty"` + EnableIpv4 *wrappers.BoolValue `protobuf:"bytes,1,opt,name=enable_ipv4,json=enableIpv4,proto3" json:"enable_ipv4,omitempty"` // The resource link for the VPC network from which the Cloud SQL instance is // accessible for private IP. For example, // `projects/myProject/global/networks/default`. This setting can // be updated, but it cannot be removed after it is set. PrivateNetwork string `protobuf:"bytes,2,opt,name=private_network,json=privateNetwork,proto3" json:"private_network,omitempty"` // Whether SSL connections over IP should be enforced or not. - RequireSsl *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=require_ssl,json=requireSsl,proto3" json:"require_ssl,omitempty"` + RequireSsl *wrappers.BoolValue `protobuf:"bytes,3,opt,name=require_ssl,json=requireSsl,proto3" json:"require_ssl,omitempty"` // The list of external networks that are allowed to connect to the instance // using the IP. See // https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as @@ -1338,7 +1338,7 @@ func (*SqlIpConfig) Descriptor() ([]byte, []int) { return file_google_cloud_clouddms_v1_clouddms_resources_proto_rawDescGZIP(), []int{5} } -func (x *SqlIpConfig) GetEnableIpv4() *wrapperspb.BoolValue { +func (x *SqlIpConfig) GetEnableIpv4() *wrappers.BoolValue { if x != nil { return x.EnableIpv4 } @@ -1352,7 +1352,7 @@ func (x *SqlIpConfig) GetPrivateNetwork() string { return "" } -func (x *SqlIpConfig) GetRequireSsl() *wrapperspb.BoolValue { +func (x *SqlIpConfig) GetRequireSsl() *wrappers.BoolValue { if x != nil { return x.RequireSsl } @@ -1389,7 +1389,7 @@ type CloudSqlSettings struct { Tier string `protobuf:"bytes,3,opt,name=tier,proto3" json:"tier,omitempty"` // The maximum size to which storage capacity can be automatically increased. // The default value is 0, which specifies that there is no limit. - StorageAutoResizeLimit *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=storage_auto_resize_limit,json=storageAutoResizeLimit,proto3" json:"storage_auto_resize_limit,omitempty"` + StorageAutoResizeLimit *wrappers.Int64Value `protobuf:"bytes,4,opt,name=storage_auto_resize_limit,json=storageAutoResizeLimit,proto3" json:"storage_auto_resize_limit,omitempty"` // The activation policy specifies when the instance is activated; it is // applicable only when the instance state is 'RUNNABLE'. Valid values: // @@ -1408,7 +1408,7 @@ type CloudSqlSettings struct { // size, Cloud SQL automatically adds additional storage capacity. If the // available storage repeatedly falls below the threshold size, Cloud SQL // continues to add storage until it reaches the maximum of 30 TB. - AutoStorageIncrease *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=auto_storage_increase,json=autoStorageIncrease,proto3" json:"auto_storage_increase,omitempty"` + AutoStorageIncrease *wrappers.BoolValue `protobuf:"bytes,7,opt,name=auto_storage_increase,json=autoStorageIncrease,proto3" json:"auto_storage_increase,omitempty"` // The database flags passed to the Cloud SQL instance at startup. // An object containing a list of "key": value pairs. // Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. @@ -1417,7 +1417,7 @@ type CloudSqlSettings struct { DataDiskType CloudSqlSettings_SqlDataDiskType `protobuf:"varint,9,opt,name=data_disk_type,json=dataDiskType,proto3,enum=google.cloud.clouddms.v1.CloudSqlSettings_SqlDataDiskType" json:"data_disk_type,omitempty"` // The storage capacity available to the database, in GB. // The minimum (and default) size is 10GB. - DataDiskSizeGb *wrapperspb.Int64Value `protobuf:"bytes,10,opt,name=data_disk_size_gb,json=dataDiskSizeGb,proto3" json:"data_disk_size_gb,omitempty"` + DataDiskSizeGb *wrappers.Int64Value `protobuf:"bytes,10,opt,name=data_disk_size_gb,json=dataDiskSizeGb,proto3" json:"data_disk_size_gb,omitempty"` // The Google Cloud Platform zone where your Cloud SQL datdabse instance is // located. Zone string `protobuf:"bytes,11,opt,name=zone,proto3" json:"zone,omitempty"` @@ -1486,7 +1486,7 @@ func (x *CloudSqlSettings) GetTier() string { return "" } -func (x *CloudSqlSettings) GetStorageAutoResizeLimit() *wrapperspb.Int64Value { +func (x *CloudSqlSettings) GetStorageAutoResizeLimit() *wrappers.Int64Value { if x != nil { return x.StorageAutoResizeLimit } @@ -1507,7 +1507,7 @@ func (x *CloudSqlSettings) GetIpConfig() *SqlIpConfig { return nil } -func (x *CloudSqlSettings) GetAutoStorageIncrease() *wrapperspb.BoolValue { +func (x *CloudSqlSettings) GetAutoStorageIncrease() *wrappers.BoolValue { if x != nil { return x.AutoStorageIncrease } @@ -1528,7 +1528,7 @@ func (x *CloudSqlSettings) GetDataDiskType() CloudSqlSettings_SqlDataDiskType { return CloudSqlSettings_SQL_DATA_DISK_TYPE_UNSPECIFIED } -func (x *CloudSqlSettings) GetDataDiskSizeGb() *wrapperspb.Int64Value { +func (x *CloudSqlSettings) GetDataDiskSizeGb() *wrappers.Int64Value { if x != nil { return x.DataDiskSizeGb } @@ -1817,11 +1817,11 @@ type MigrationJob struct { // Output only. The timestamp when the migration job resource was created. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the migration job resource was last updated. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The resource labels for migration job to use to annotate any related // underlying resources such as Compute Engine VMs. An object containing a // list of "key": "value" pairs. @@ -1853,7 +1853,7 @@ type MigrationJob struct { Connectivity isMigrationJob_Connectivity `protobuf_oneof:"connectivity"` // Output only. The duration of the migration job (in seconds). A duration in seconds // with up to nine fractional digits, terminated by 's'. Example: "3.5s". - Duration *durationpb.Duration `protobuf:"bytes,12,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,12,opt,name=duration,proto3" json:"duration,omitempty"` // Output only. The error details in case of state FAILED. Error *status.Status `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"` // The database engine type and provider of the source. @@ -1861,7 +1861,7 @@ type MigrationJob struct { // The database engine type and provider of the destination. DestinationDatabase *DatabaseType `protobuf:"bytes,15,opt,name=destination_database,json=destinationDatabase,proto3" json:"destination_database,omitempty"` // Output only. If the migration job is completed, the time when it was completed. - EndTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *MigrationJob) Reset() { @@ -1903,14 +1903,14 @@ func (x *MigrationJob) GetName() string { return "" } -func (x *MigrationJob) GetCreateTime() *timestamppb.Timestamp { +func (x *MigrationJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MigrationJob) GetUpdateTime() *timestamppb.Timestamp { +func (x *MigrationJob) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2001,7 +2001,7 @@ func (x *MigrationJob) GetStaticIpConnectivity() *StaticIpConnectivity { return nil } -func (x *MigrationJob) GetDuration() *durationpb.Duration { +func (x *MigrationJob) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -2029,7 +2029,7 @@ func (x *MigrationJob) GetDestinationDatabase() *DatabaseType { return nil } -func (x *MigrationJob) GetEndTime() *timestamppb.Timestamp { +func (x *MigrationJob) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2074,11 +2074,11 @@ type ConnectionProfile struct { // Output only. The timestamp when the resource was created. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was last updated. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The resource labels for connection profile to use to annotate any related // underlying resources such as Compute Engine VMs. An object containing a // list of "key": "value" pairs. @@ -2142,14 +2142,14 @@ func (x *ConnectionProfile) GetName() string { return "" } -func (x *ConnectionProfile) GetCreateTime() *timestamppb.Timestamp { +func (x *ConnectionProfile) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ConnectionProfile) GetUpdateTime() *timestamppb.Timestamp { +func (x *ConnectionProfile) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2852,10 +2852,10 @@ var file_google_cloud_clouddms_v1_clouddms_resources_proto_goTypes = []interface nil, // 26: google.cloud.clouddms.v1.CloudSqlSettings.DatabaseFlagsEntry nil, // 27: google.cloud.clouddms.v1.MigrationJob.LabelsEntry nil, // 28: google.cloud.clouddms.v1.ConnectionProfile.LabelsEntry - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 30: google.protobuf.Duration - (*wrapperspb.BoolValue)(nil), // 31: google.protobuf.BoolValue - (*wrapperspb.Int64Value)(nil), // 32: google.protobuf.Int64Value + (*timestamp.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*duration.Duration)(nil), // 30: google.protobuf.Duration + (*wrappers.BoolValue)(nil), // 31: google.protobuf.BoolValue + (*wrappers.Int64Value)(nil), // 32: google.protobuf.Int64Value (*status.Status)(nil), // 33: google.rpc.Status } var file_google_cloud_clouddms_v1_clouddms_resources_proto_depIdxs = []int32{ diff --git a/clouddms/go.mod b/clouddms/go.mod index 6dad59549c87..2e7313c472b2 100644 --- a/clouddms/go.mod +++ b/clouddms/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/cloudtasks/apiv2/cloudtaskspb/cloudtasks.pb.go b/cloudtasks/apiv2/cloudtaskspb/cloudtasks.pb.go index 22f1219a1a4a..fdd7da1ab3eb 100644 --- a/cloudtasks/apiv2/cloudtaskspb/cloudtasks.pb.go +++ b/cloudtasks/apiv2/cloudtaskspb/cloudtasks.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/tasks/v2/cloudtasks.proto package cloudtaskspb @@ -26,15 +26,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -342,7 +342,7 @@ type UpdateQueueRequest struct { // A mask used to specify which fields of the queue are being updated. // // If empty, then all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateQueueRequest) Reset() { @@ -384,7 +384,7 @@ func (x *UpdateQueueRequest) GetQueue() *Queue { return nil } -func (x *UpdateQueueRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateQueueRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1414,13 +1414,13 @@ var file_google_cloud_tasks_v2_cloudtasks_proto_goTypes = []interface{}{ (*DeleteTaskRequest)(nil), // 13: google.cloud.tasks.v2.DeleteTaskRequest (*RunTaskRequest)(nil), // 14: google.cloud.tasks.v2.RunTaskRequest (*Queue)(nil), // 15: google.cloud.tasks.v2.Queue - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (Task_View)(0), // 17: google.cloud.tasks.v2.Task.View (*Task)(nil), // 18: google.cloud.tasks.v2.Task (*v1.GetIamPolicyRequest)(nil), // 19: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 20: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 21: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 22: google.protobuf.Empty + (*empty.Empty)(nil), // 22: google.protobuf.Empty (*v1.Policy)(nil), // 23: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 24: google.iam.v1.TestIamPermissionsResponse } @@ -1743,7 +1743,7 @@ type CloudTasksClient interface { // [Overview of Queue Management and // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using // this method. - DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Purges a queue by deleting all of its tasks. // // All tasks created before this method is called are permanently deleted. @@ -1826,7 +1826,7 @@ type CloudTasksClient interface { // A task can be deleted if it is scheduled or dispatched. A task // cannot be deleted if it has executed successfully or permanently // failed. - DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Forces a task to run now. // // When this method is called, Cloud Tasks will dispatch the task, even if @@ -1898,8 +1898,8 @@ func (c *cloudTasksClient) UpdateQueue(ctx context.Context, in *UpdateQueueReque return out, nil } -func (c *cloudTasksClient) DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudTasksClient) DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2.CloudTasks/DeleteQueue", in, out, opts...) if err != nil { return nil, err @@ -1988,8 +1988,8 @@ func (c *cloudTasksClient) CreateTask(ctx context.Context, in *CreateTaskRequest return out, nil } -func (c *cloudTasksClient) DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudTasksClient) DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2.CloudTasks/DeleteTask", in, out, opts...) if err != nil { return nil, err @@ -2056,7 +2056,7 @@ type CloudTasksServer interface { // [Overview of Queue Management and // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using // this method. - DeleteQueue(context.Context, *DeleteQueueRequest) (*emptypb.Empty, error) + DeleteQueue(context.Context, *DeleteQueueRequest) (*empty.Empty, error) // Purges a queue by deleting all of its tasks. // // All tasks created before this method is called are permanently deleted. @@ -2139,7 +2139,7 @@ type CloudTasksServer interface { // A task can be deleted if it is scheduled or dispatched. A task // cannot be deleted if it has executed successfully or permanently // failed. - DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error) + DeleteTask(context.Context, *DeleteTaskRequest) (*empty.Empty, error) // Forces a task to run now. // // When this method is called, Cloud Tasks will dispatch the task, even if @@ -2183,7 +2183,7 @@ func (*UnimplementedCloudTasksServer) CreateQueue(context.Context, *CreateQueueR func (*UnimplementedCloudTasksServer) UpdateQueue(context.Context, *UpdateQueueRequest) (*Queue, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateQueue not implemented") } -func (*UnimplementedCloudTasksServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudTasksServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteQueue not implemented") } func (*UnimplementedCloudTasksServer) PurgeQueue(context.Context, *PurgeQueueRequest) (*Queue, error) { @@ -2213,7 +2213,7 @@ func (*UnimplementedCloudTasksServer) GetTask(context.Context, *GetTaskRequest) func (*UnimplementedCloudTasksServer) CreateTask(context.Context, *CreateTaskRequest) (*Task, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") } -func (*UnimplementedCloudTasksServer) DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudTasksServer) DeleteTask(context.Context, *DeleteTaskRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") } func (*UnimplementedCloudTasksServer) RunTask(context.Context, *RunTaskRequest) (*Task, error) { diff --git a/cloudtasks/apiv2/cloudtaskspb/queue.pb.go b/cloudtasks/apiv2/cloudtaskspb/queue.pb.go index e501c0677d27..c066e23d67b8 100644 --- a/cloudtasks/apiv2/cloudtaskspb/queue.pb.go +++ b/cloudtasks/apiv2/cloudtaskspb/queue.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/tasks/v2/queue.proto package cloudtaskspb @@ -25,11 +25,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -212,7 +212,7 @@ type Queue struct { // // Purge time will be truncated to the nearest microsecond. Purge // time will be unset if the queue has never been purged. - PurgeTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"` + PurgeTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"` // Configuration options for writing logs to // [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this // field is unset, then no logs are written. @@ -286,7 +286,7 @@ func (x *Queue) GetState() Queue_State { return Queue_STATE_UNSPECIFIED } -func (x *Queue) GetPurgeTime() *timestamppb.Timestamp { +func (x *Queue) GetPurgeTime() *timestamp.Timestamp { if x != nil { return x.PurgeTime } @@ -465,7 +465,7 @@ type RetryConfig struct { // This field has the same meaning as // [task_age_limit in // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - MaxRetryDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` + MaxRetryDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` // A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between // [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails, @@ -480,7 +480,7 @@ type RetryConfig struct { // This field has the same meaning as // [min_backoff_seconds in // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - MinBackoff *durationpb.Duration `protobuf:"bytes,3,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"` + MinBackoff *duration.Duration `protobuf:"bytes,3,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"` // A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between // [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails, @@ -495,7 +495,7 @@ type RetryConfig struct { // This field has the same meaning as // [max_backoff_seconds in // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - MaxBackoff *durationpb.Duration `protobuf:"bytes,4,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"` + MaxBackoff *duration.Duration `protobuf:"bytes,4,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"` // The time between retries will double `max_doublings` times. // // A task's retry interval starts at @@ -563,21 +563,21 @@ func (x *RetryConfig) GetMaxAttempts() int32 { return 0 } -func (x *RetryConfig) GetMaxRetryDuration() *durationpb.Duration { +func (x *RetryConfig) GetMaxRetryDuration() *duration.Duration { if x != nil { return x.MaxRetryDuration } return nil } -func (x *RetryConfig) GetMinBackoff() *durationpb.Duration { +func (x *RetryConfig) GetMinBackoff() *duration.Duration { if x != nil { return x.MinBackoff } return nil } -func (x *RetryConfig) GetMaxBackoff() *durationpb.Duration { +func (x *RetryConfig) GetMaxBackoff() *duration.Duration { if x != nil { return x.MaxBackoff } @@ -763,8 +763,8 @@ var file_google_cloud_tasks_v2_queue_proto_goTypes = []interface{}{ (*RetryConfig)(nil), // 3: google.cloud.tasks.v2.RetryConfig (*StackdriverLoggingConfig)(nil), // 4: google.cloud.tasks.v2.StackdriverLoggingConfig (*AppEngineRouting)(nil), // 5: google.cloud.tasks.v2.AppEngineRouting - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 7: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*duration.Duration)(nil), // 7: google.protobuf.Duration } var file_google_cloud_tasks_v2_queue_proto_depIdxs = []int32{ 5, // 0: google.cloud.tasks.v2.Queue.app_engine_routing_override:type_name -> google.cloud.tasks.v2.AppEngineRouting diff --git a/cloudtasks/apiv2/cloudtaskspb/target.pb.go b/cloudtasks/apiv2/cloudtaskspb/target.pb.go index d25568c3dd54..e7788ef88835 100644 --- a/cloudtasks/apiv2/cloudtaskspb/target.pb.go +++ b/cloudtasks/apiv2/cloudtaskspb/target.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/tasks/v2/target.proto package cloudtaskspb diff --git a/cloudtasks/apiv2/cloudtaskspb/task.pb.go b/cloudtasks/apiv2/cloudtaskspb/task.pb.go index 9d54f31e5e0a..252d754bbdf3 100644 --- a/cloudtasks/apiv2/cloudtaskspb/task.pb.go +++ b/cloudtasks/apiv2/cloudtaskspb/task.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/tasks/v2/task.proto package cloudtaskspb @@ -25,12 +25,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -147,11 +147,11 @@ type Task struct { // The time when the task is scheduled to be attempted or retried. // // `schedule_time` will be truncated to the nearest microsecond. - ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Output only. The time that the task was created. // // `create_time` will be truncated to the nearest second. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The deadline for requests sent to the worker. If the worker does not // respond by this deadline then the request is cancelled and the attempt // is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the @@ -183,7 +183,7 @@ type Task struct { // // `dispatch_deadline` will be truncated to the nearest millisecond. The // deadline is an approximate deadline. - DispatchDeadline *durationpb.Duration `protobuf:"bytes,6,opt,name=dispatch_deadline,json=dispatchDeadline,proto3" json:"dispatch_deadline,omitempty"` + DispatchDeadline *duration.Duration `protobuf:"bytes,6,opt,name=dispatch_deadline,json=dispatchDeadline,proto3" json:"dispatch_deadline,omitempty"` // Output only. The number of attempts dispatched. // // This count includes attempts which have been dispatched but haven't @@ -263,21 +263,21 @@ func (x *Task) GetHttpRequest() *HttpRequest { return nil } -func (x *Task) GetScheduleTime() *timestamppb.Timestamp { +func (x *Task) GetScheduleTime() *timestamp.Timestamp { if x != nil { return x.ScheduleTime } return nil } -func (x *Task) GetCreateTime() *timestamppb.Timestamp { +func (x *Task) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Task) GetDispatchDeadline() *durationpb.Duration { +func (x *Task) GetDispatchDeadline() *duration.Duration { if x != nil { return x.DispatchDeadline } @@ -350,15 +350,15 @@ type Attempt struct { // Output only. The time that this attempt was scheduled. // // `schedule_time` will be truncated to the nearest microsecond. - ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Output only. The time that this attempt was dispatched. // // `dispatch_time` will be truncated to the nearest microsecond. - DispatchTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"` + DispatchTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"` // Output only. The time that this attempt response was received. // // `response_time` will be truncated to the nearest microsecond. - ResponseTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` + ResponseTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` // Output only. The response from the worker for this attempt. // // If `response_time` is unset, then the task has not been attempted or is @@ -398,21 +398,21 @@ func (*Attempt) Descriptor() ([]byte, []int) { return file_google_cloud_tasks_v2_task_proto_rawDescGZIP(), []int{1} } -func (x *Attempt) GetScheduleTime() *timestamppb.Timestamp { +func (x *Attempt) GetScheduleTime() *timestamp.Timestamp { if x != nil { return x.ScheduleTime } return nil } -func (x *Attempt) GetDispatchTime() *timestamppb.Timestamp { +func (x *Attempt) GetDispatchTime() *timestamp.Timestamp { if x != nil { return x.DispatchTime } return nil } -func (x *Attempt) GetResponseTime() *timestamppb.Timestamp { +func (x *Attempt) GetResponseTime() *timestamp.Timestamp { if x != nil { return x.ResponseTime } @@ -536,14 +536,14 @@ func file_google_cloud_tasks_v2_task_proto_rawDescGZIP() []byte { var file_google_cloud_tasks_v2_task_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_tasks_v2_task_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_tasks_v2_task_proto_goTypes = []interface{}{ - (Task_View)(0), // 0: google.cloud.tasks.v2.Task.View - (*Task)(nil), // 1: google.cloud.tasks.v2.Task - (*Attempt)(nil), // 2: google.cloud.tasks.v2.Attempt - (*AppEngineHttpRequest)(nil), // 3: google.cloud.tasks.v2.AppEngineHttpRequest - (*HttpRequest)(nil), // 4: google.cloud.tasks.v2.HttpRequest - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - (*status.Status)(nil), // 7: google.rpc.Status + (Task_View)(0), // 0: google.cloud.tasks.v2.Task.View + (*Task)(nil), // 1: google.cloud.tasks.v2.Task + (*Attempt)(nil), // 2: google.cloud.tasks.v2.Attempt + (*AppEngineHttpRequest)(nil), // 3: google.cloud.tasks.v2.AppEngineHttpRequest + (*HttpRequest)(nil), // 4: google.cloud.tasks.v2.HttpRequest + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*duration.Duration)(nil), // 6: google.protobuf.Duration + (*status.Status)(nil), // 7: google.rpc.Status } var file_google_cloud_tasks_v2_task_proto_depIdxs = []int32{ 3, // 0: google.cloud.tasks.v2.Task.app_engine_http_request:type_name -> google.cloud.tasks.v2.AppEngineHttpRequest diff --git a/contactcenterinsights/apiv1/contactcenterinsightspb/contact_center_insights.pb.go b/contactcenterinsights/apiv1/contactcenterinsightspb/contact_center_insights.pb.go index 617821fbf329..1656f172f829 100644 --- a/contactcenterinsights/apiv1/contactcenterinsightspb/contact_center_insights.pb.go +++ b/contactcenterinsights/apiv1/contactcenterinsightspb/contact_center_insights.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto package contactcenterinsightspb @@ -25,18 +25,18 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -223,7 +223,7 @@ type CalculateStatsResponse struct { // The average duration of all conversations. The average is calculated using // only conversations that have a time duration. - AverageDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=average_duration,json=averageDuration,proto3" json:"average_duration,omitempty"` + AverageDuration *duration.Duration `protobuf:"bytes,1,opt,name=average_duration,json=averageDuration,proto3" json:"average_duration,omitempty"` // The average number of turns per conversation. AverageTurnCount int32 `protobuf:"varint,2,opt,name=average_turn_count,json=averageTurnCount,proto3" json:"average_turn_count,omitempty"` // The total number of conversations. @@ -282,7 +282,7 @@ func (*CalculateStatsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{1} } -func (x *CalculateStatsResponse) GetAverageDuration() *durationpb.Duration { +func (x *CalculateStatsResponse) GetAverageDuration() *duration.Duration { if x != nil { return x.AverageDuration } @@ -346,9 +346,9 @@ type CreateAnalysisOperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The Conversation that this Analysis Operation belongs to. Conversation string `protobuf:"bytes,3,opt,name=conversation,proto3" json:"conversation,omitempty"` } @@ -385,14 +385,14 @@ func (*CreateAnalysisOperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{2} } -func (x *CreateAnalysisOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateAnalysisOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CreateAnalysisOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *CreateAnalysisOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -696,7 +696,7 @@ type UpdateConversationRequest struct { // Required. The new values for the conversation. Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateConversationRequest) Reset() { @@ -738,7 +738,7 @@ func (x *UpdateConversationRequest) GetConversation() *Conversation { return nil } -func (x *UpdateConversationRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateConversationRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1219,9 +1219,9 @@ type ExportInsightsDataMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The original request for export. Request *ExportInsightsDataRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // Partial errors during export operation that might cause the operation @@ -1261,14 +1261,14 @@ func (*ExportInsightsDataMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{15} } -func (x *ExportInsightsDataMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ExportInsightsDataMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ExportInsightsDataMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *ExportInsightsDataMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1393,9 +1393,9 @@ type CreateIssueModelMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The original request for creation. Request *CreateIssueModelRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` } @@ -1432,14 +1432,14 @@ func (*CreateIssueModelMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{18} } -func (x *CreateIssueModelMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateIssueModelMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CreateIssueModelMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *CreateIssueModelMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1462,7 +1462,7 @@ type UpdateIssueModelRequest struct { // Required. The new values for the issue model. IssueModel *IssueModel `protobuf:"bytes,1,opt,name=issue_model,json=issueModel,proto3" json:"issue_model,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateIssueModelRequest) Reset() { @@ -1504,7 +1504,7 @@ func (x *UpdateIssueModelRequest) GetIssueModel() *IssueModel { return nil } -func (x *UpdateIssueModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIssueModelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1714,9 +1714,9 @@ type DeleteIssueModelMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The original request for deletion. Request *DeleteIssueModelRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` } @@ -1753,14 +1753,14 @@ func (*DeleteIssueModelMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{24} } -func (x *DeleteIssueModelMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *DeleteIssueModelMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DeleteIssueModelMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *DeleteIssueModelMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1869,9 +1869,9 @@ type DeployIssueModelMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The original request for deployment. Request *DeployIssueModelRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` } @@ -1908,14 +1908,14 @@ func (*DeployIssueModelMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{27} } -func (x *DeployIssueModelMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *DeployIssueModelMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DeployIssueModelMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *DeployIssueModelMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2024,9 +2024,9 @@ type UndeployIssueModelMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The original request for undeployment. Request *UndeployIssueModelRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` } @@ -2063,14 +2063,14 @@ func (*UndeployIssueModelMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{30} } -func (x *UndeployIssueModelMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *UndeployIssueModelMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *UndeployIssueModelMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *UndeployIssueModelMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2240,7 +2240,7 @@ type UpdateIssueRequest struct { // Required. The new values for the issue. Issue *Issue `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateIssueRequest) Reset() { @@ -2282,7 +2282,7 @@ func (x *UpdateIssueRequest) GetIssue() *Issue { return nil } -func (x *UpdateIssueRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIssueRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2697,7 +2697,7 @@ type UpdatePhraseMatcherRequest struct { // Required. The new values for the phrase matcher. PhraseMatcher *PhraseMatcher `protobuf:"bytes,1,opt,name=phrase_matcher,json=phraseMatcher,proto3" json:"phrase_matcher,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdatePhraseMatcherRequest) Reset() { @@ -2739,7 +2739,7 @@ func (x *UpdatePhraseMatcherRequest) GetPhraseMatcher() *PhraseMatcher { return nil } -func (x *UpdatePhraseMatcherRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatePhraseMatcherRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2804,7 +2804,7 @@ type UpdateSettingsRequest struct { // Required. The new settings values. Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // Required. The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSettingsRequest) Reset() { @@ -2846,7 +2846,7 @@ func (x *UpdateSettingsRequest) GetSettings() *Settings { return nil } -func (x *UpdateSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSettingsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3103,7 +3103,7 @@ type UpdateViewRequest struct { // Required. The new view. View *View `protobuf:"bytes,1,opt,name=view,proto3" json:"view,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateViewRequest) Reset() { @@ -3145,7 +3145,7 @@ func (x *UpdateViewRequest) GetView() *View { return nil } -func (x *UpdateViewRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateViewRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3208,7 +3208,7 @@ type CalculateStatsResponse_TimeSeries struct { unknownFields protoimpl.UnknownFields // The duration of each interval. - IntervalDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=interval_duration,json=intervalDuration,proto3" json:"interval_duration,omitempty"` + IntervalDuration *duration.Duration `protobuf:"bytes,1,opt,name=interval_duration,json=intervalDuration,proto3" json:"interval_duration,omitempty"` // An ordered list of intervals from earliest to latest, where each interval // represents the number of conversations that transpired during the time // window. @@ -3247,7 +3247,7 @@ func (*CalculateStatsResponse_TimeSeries) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{1, 0} } -func (x *CalculateStatsResponse_TimeSeries) GetIntervalDuration() *durationpb.Duration { +func (x *CalculateStatsResponse_TimeSeries) GetIntervalDuration() *duration.Duration { if x != nil { return x.IntervalDuration } @@ -3268,7 +3268,7 @@ type CalculateStatsResponse_TimeSeries_Interval struct { unknownFields protoimpl.UnknownFields // The start time of this interval. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The number of conversations created in this interval. ConversationCount int32 `protobuf:"varint,2,opt,name=conversation_count,json=conversationCount,proto3" json:"conversation_count,omitempty"` } @@ -3305,7 +3305,7 @@ func (*CalculateStatsResponse_TimeSeries_Interval) Descriptor() ([]byte, []int) return file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_rawDescGZIP(), []int{1, 0, 0} } -func (x *CalculateStatsResponse_TimeSeries_Interval) GetStartTime() *timestamppb.Timestamp { +func (x *CalculateStatsResponse_TimeSeries_Interval) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -4590,10 +4590,10 @@ var file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_goT nil, // 57: google.cloud.contactcenterinsights.v1.CalculateStatsResponse.IssueMatchesStatsEntry (*CalculateStatsResponse_TimeSeries_Interval)(nil), // 58: google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval (*ExportInsightsDataRequest_BigQueryDestination)(nil), // 59: google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination - (*durationpb.Duration)(nil), // 60: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 61: google.protobuf.Timestamp + (*duration.Duration)(nil), // 60: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 61: google.protobuf.Timestamp (*Conversation)(nil), // 62: google.cloud.contactcenterinsights.v1.Conversation - (*fieldmaskpb.FieldMask)(nil), // 63: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 63: google.protobuf.FieldMask (*Analysis)(nil), // 64: google.cloud.contactcenterinsights.v1.Analysis (*status.Status)(nil), // 65: google.rpc.Status (*IssueModel)(nil), // 66: google.cloud.contactcenterinsights.v1.IssueModel @@ -4603,7 +4603,7 @@ var file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_goT (*Settings)(nil), // 70: google.cloud.contactcenterinsights.v1.Settings (*View)(nil), // 71: google.cloud.contactcenterinsights.v1.View (*IssueModelLabelStats_IssueStats)(nil), // 72: google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats - (*emptypb.Empty)(nil), // 73: google.protobuf.Empty + (*empty.Empty)(nil), // 73: google.protobuf.Empty (*longrunning.Operation)(nil), // 74: google.longrunning.Operation } var file_google_cloud_contactcenterinsights_v1_contact_center_insights_proto_depIdxs = []int32{ @@ -5439,7 +5439,7 @@ type ContactCenterInsightsClient interface { // Lists conversations. ListConversations(ctx context.Context, in *ListConversationsRequest, opts ...grpc.CallOption) (*ListConversationsResponse, error) // Deletes a conversation. - DeleteConversation(ctx context.Context, in *DeleteConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteConversation(ctx context.Context, in *DeleteConversationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates an analysis. The long running operation is done when the analysis // has completed. CreateAnalysis(ctx context.Context, in *CreateAnalysisRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) @@ -5448,7 +5448,7 @@ type ContactCenterInsightsClient interface { // Lists analyses. ListAnalyses(ctx context.Context, in *ListAnalysesRequest, opts ...grpc.CallOption) (*ListAnalysesResponse, error) // Deletes an analysis. - DeleteAnalysis(ctx context.Context, in *DeleteAnalysisRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAnalysis(ctx context.Context, in *DeleteAnalysisRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Export insights data to a destination defined in the request body. ExportInsightsData(ctx context.Context, in *ExportInsightsDataRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Creates an issue model. @@ -5482,7 +5482,7 @@ type ContactCenterInsightsClient interface { // Lists phrase matchers. ListPhraseMatchers(ctx context.Context, in *ListPhraseMatchersRequest, opts ...grpc.CallOption) (*ListPhraseMatchersResponse, error) // Deletes a phrase matcher. - DeletePhraseMatcher(ctx context.Context, in *DeletePhraseMatcherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePhraseMatcher(ctx context.Context, in *DeletePhraseMatcherRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a phrase matcher. UpdatePhraseMatcher(ctx context.Context, in *UpdatePhraseMatcherRequest, opts ...grpc.CallOption) (*PhraseMatcher, error) // Gets conversation statistics. @@ -5500,7 +5500,7 @@ type ContactCenterInsightsClient interface { // Updates a view. UpdateView(ctx context.Context, in *UpdateViewRequest, opts ...grpc.CallOption) (*View, error) // Deletes a view. - DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type contactCenterInsightsClient struct { @@ -5547,8 +5547,8 @@ func (c *contactCenterInsightsClient) ListConversations(ctx context.Context, in return out, nil } -func (c *contactCenterInsightsClient) DeleteConversation(ctx context.Context, in *DeleteConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contactCenterInsightsClient) DeleteConversation(ctx context.Context, in *DeleteConversationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteConversation", in, out, opts...) if err != nil { return nil, err @@ -5583,8 +5583,8 @@ func (c *contactCenterInsightsClient) ListAnalyses(ctx context.Context, in *List return out, nil } -func (c *contactCenterInsightsClient) DeleteAnalysis(ctx context.Context, in *DeleteAnalysisRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contactCenterInsightsClient) DeleteAnalysis(ctx context.Context, in *DeleteAnalysisRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteAnalysis", in, out, opts...) if err != nil { return nil, err @@ -5727,8 +5727,8 @@ func (c *contactCenterInsightsClient) ListPhraseMatchers(ctx context.Context, in return out, nil } -func (c *contactCenterInsightsClient) DeletePhraseMatcher(ctx context.Context, in *DeletePhraseMatcherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contactCenterInsightsClient) DeletePhraseMatcher(ctx context.Context, in *DeletePhraseMatcherRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeletePhraseMatcher", in, out, opts...) if err != nil { return nil, err @@ -5808,8 +5808,8 @@ func (c *contactCenterInsightsClient) UpdateView(ctx context.Context, in *Update return out, nil } -func (c *contactCenterInsightsClient) DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contactCenterInsightsClient) DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteView", in, out, opts...) if err != nil { return nil, err @@ -5828,7 +5828,7 @@ type ContactCenterInsightsServer interface { // Lists conversations. ListConversations(context.Context, *ListConversationsRequest) (*ListConversationsResponse, error) // Deletes a conversation. - DeleteConversation(context.Context, *DeleteConversationRequest) (*emptypb.Empty, error) + DeleteConversation(context.Context, *DeleteConversationRequest) (*empty.Empty, error) // Creates an analysis. The long running operation is done when the analysis // has completed. CreateAnalysis(context.Context, *CreateAnalysisRequest) (*longrunning.Operation, error) @@ -5837,7 +5837,7 @@ type ContactCenterInsightsServer interface { // Lists analyses. ListAnalyses(context.Context, *ListAnalysesRequest) (*ListAnalysesResponse, error) // Deletes an analysis. - DeleteAnalysis(context.Context, *DeleteAnalysisRequest) (*emptypb.Empty, error) + DeleteAnalysis(context.Context, *DeleteAnalysisRequest) (*empty.Empty, error) // Export insights data to a destination defined in the request body. ExportInsightsData(context.Context, *ExportInsightsDataRequest) (*longrunning.Operation, error) // Creates an issue model. @@ -5871,7 +5871,7 @@ type ContactCenterInsightsServer interface { // Lists phrase matchers. ListPhraseMatchers(context.Context, *ListPhraseMatchersRequest) (*ListPhraseMatchersResponse, error) // Deletes a phrase matcher. - DeletePhraseMatcher(context.Context, *DeletePhraseMatcherRequest) (*emptypb.Empty, error) + DeletePhraseMatcher(context.Context, *DeletePhraseMatcherRequest) (*empty.Empty, error) // Updates a phrase matcher. UpdatePhraseMatcher(context.Context, *UpdatePhraseMatcherRequest) (*PhraseMatcher, error) // Gets conversation statistics. @@ -5889,7 +5889,7 @@ type ContactCenterInsightsServer interface { // Updates a view. UpdateView(context.Context, *UpdateViewRequest) (*View, error) // Deletes a view. - DeleteView(context.Context, *DeleteViewRequest) (*emptypb.Empty, error) + DeleteView(context.Context, *DeleteViewRequest) (*empty.Empty, error) } // UnimplementedContactCenterInsightsServer can be embedded to have forward compatible implementations. @@ -5908,7 +5908,7 @@ func (*UnimplementedContactCenterInsightsServer) GetConversation(context.Context func (*UnimplementedContactCenterInsightsServer) ListConversations(context.Context, *ListConversationsRequest) (*ListConversationsResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListConversations not implemented") } -func (*UnimplementedContactCenterInsightsServer) DeleteConversation(context.Context, *DeleteConversationRequest) (*emptypb.Empty, error) { +func (*UnimplementedContactCenterInsightsServer) DeleteConversation(context.Context, *DeleteConversationRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteConversation not implemented") } func (*UnimplementedContactCenterInsightsServer) CreateAnalysis(context.Context, *CreateAnalysisRequest) (*longrunning.Operation, error) { @@ -5920,7 +5920,7 @@ func (*UnimplementedContactCenterInsightsServer) GetAnalysis(context.Context, *G func (*UnimplementedContactCenterInsightsServer) ListAnalyses(context.Context, *ListAnalysesRequest) (*ListAnalysesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListAnalyses not implemented") } -func (*UnimplementedContactCenterInsightsServer) DeleteAnalysis(context.Context, *DeleteAnalysisRequest) (*emptypb.Empty, error) { +func (*UnimplementedContactCenterInsightsServer) DeleteAnalysis(context.Context, *DeleteAnalysisRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteAnalysis not implemented") } func (*UnimplementedContactCenterInsightsServer) ExportInsightsData(context.Context, *ExportInsightsDataRequest) (*longrunning.Operation, error) { @@ -5968,7 +5968,7 @@ func (*UnimplementedContactCenterInsightsServer) GetPhraseMatcher(context.Contex func (*UnimplementedContactCenterInsightsServer) ListPhraseMatchers(context.Context, *ListPhraseMatchersRequest) (*ListPhraseMatchersResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListPhraseMatchers not implemented") } -func (*UnimplementedContactCenterInsightsServer) DeletePhraseMatcher(context.Context, *DeletePhraseMatcherRequest) (*emptypb.Empty, error) { +func (*UnimplementedContactCenterInsightsServer) DeletePhraseMatcher(context.Context, *DeletePhraseMatcherRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeletePhraseMatcher not implemented") } func (*UnimplementedContactCenterInsightsServer) UpdatePhraseMatcher(context.Context, *UpdatePhraseMatcherRequest) (*PhraseMatcher, error) { @@ -5995,7 +5995,7 @@ func (*UnimplementedContactCenterInsightsServer) ListViews(context.Context, *Lis func (*UnimplementedContactCenterInsightsServer) UpdateView(context.Context, *UpdateViewRequest) (*View, error) { return nil, status1.Errorf(codes.Unimplemented, "method UpdateView not implemented") } -func (*UnimplementedContactCenterInsightsServer) DeleteView(context.Context, *DeleteViewRequest) (*emptypb.Empty, error) { +func (*UnimplementedContactCenterInsightsServer) DeleteView(context.Context, *DeleteViewRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteView not implemented") } diff --git a/contactcenterinsights/apiv1/contactcenterinsightspb/resources.pb.go b/contactcenterinsights/apiv1/contactcenterinsightspb/resources.pb.go index a6c29d304039..4a63ed669546 100644 --- a/contactcenterinsights/apiv1/contactcenterinsightspb/resources.pb.go +++ b/contactcenterinsights/apiv1/contactcenterinsightspb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/contactcenterinsights/v1/resources.proto package contactcenterinsightspb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -595,11 +595,11 @@ type Conversation struct { // The source of the audio and transcription for the conversation. DataSource *ConversationDataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"` // Output only. The time at which the conversation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time at which the conversation was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The time at which the conversation started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // A user-specified language code for the conversation. LanguageCode string `protobuf:"bytes,14,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // An opaque, user-specified string representing the human agent who handled @@ -613,7 +613,7 @@ type Conversation struct { // Immutable. The conversation medium, if unspecified will default to PHONE_CALL. Medium Conversation_Medium `protobuf:"varint,9,opt,name=medium,proto3,enum=google.cloud.contactcenterinsights.v1.Conversation_Medium" json:"medium,omitempty"` // Output only. The duration of the conversation. - Duration *durationpb.Duration `protobuf:"bytes,10,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,10,opt,name=duration,proto3" json:"duration,omitempty"` // Output only. The number of turns in the conversation. TurnCount int32 `protobuf:"varint,11,opt,name=turn_count,json=turnCount,proto3" json:"turn_count,omitempty"` // Output only. The conversation's latest analysis, if one exists. @@ -682,14 +682,14 @@ func (m *Conversation) GetExpiration() isConversation_Expiration { return nil } -func (x *Conversation) GetExpireTime() *timestamppb.Timestamp { +func (x *Conversation) GetExpireTime() *timestamp.Timestamp { if x, ok := x.GetExpiration().(*Conversation_ExpireTime); ok { return x.ExpireTime } return nil } -func (x *Conversation) GetTtl() *durationpb.Duration { +func (x *Conversation) GetTtl() *duration.Duration { if x, ok := x.GetExpiration().(*Conversation_Ttl); ok { return x.Ttl } @@ -710,21 +710,21 @@ func (x *Conversation) GetDataSource() *ConversationDataSource { return nil } -func (x *Conversation) GetCreateTime() *timestamppb.Timestamp { +func (x *Conversation) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Conversation) GetUpdateTime() *timestamppb.Timestamp { +func (x *Conversation) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Conversation) GetStartTime() *timestamppb.Timestamp { +func (x *Conversation) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -766,7 +766,7 @@ func (x *Conversation) GetMedium() Conversation_Medium { return Conversation_MEDIUM_UNSPECIFIED } -func (x *Conversation) GetDuration() *durationpb.Duration { +func (x *Conversation) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -826,13 +826,13 @@ type isConversation_Expiration interface { type Conversation_ExpireTime struct { // The time at which this conversation should expire. After this time, the // conversation data and any associated analyses will be deleted. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expire_time,json=expireTime,proto3,oneof"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=expire_time,json=expireTime,proto3,oneof"` } type Conversation_Ttl struct { // Input only. The TTL for this resource. If specified, then this TTL will // be used to calculate the expire time. - Ttl *durationpb.Duration `protobuf:"bytes,16,opt,name=ttl,proto3,oneof"` + Ttl *duration.Duration `protobuf:"bytes,16,opt,name=ttl,proto3,oneof"` } func (*Conversation_ExpireTime) isConversation_Expiration() {} @@ -850,10 +850,10 @@ type Analysis struct { // projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which the analysis was requested. - RequestTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` // Output only. The time at which the analysis was created, which occurs when the // long-running operation completes. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The result of the analysis, which is populated when the analysis // finishes. AnalysisResult *AnalysisResult `protobuf:"bytes,7,opt,name=analysis_result,json=analysisResult,proto3" json:"analysis_result,omitempty"` @@ -898,14 +898,14 @@ func (x *Analysis) GetName() string { return "" } -func (x *Analysis) GetRequestTime() *timestamppb.Timestamp { +func (x *Analysis) GetRequestTime() *timestamp.Timestamp { if x != nil { return x.RequestTime } return nil } -func (x *Analysis) GetCreateTime() *timestamppb.Timestamp { +func (x *Analysis) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1139,7 +1139,7 @@ type AnalysisResult struct { // *AnalysisResult_CallAnalysisMetadata_ Metadata isAnalysisResult_Metadata `protobuf_oneof:"metadata"` // The time at which the analysis ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *AnalysisResult) Reset() { @@ -1188,7 +1188,7 @@ func (x *AnalysisResult) GetCallAnalysisMetadata() *AnalysisResult_CallAnalysisM return nil } -func (x *AnalysisResult) GetEndTime() *timestamppb.Timestamp { +func (x *AnalysisResult) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2238,9 +2238,9 @@ type IssueModel struct { // The representative name for the issue model. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. The time at which this issue model was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time at which the issue model was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. State of the model. State IssueModel_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.contactcenterinsights.v1.IssueModel_State" json:"state,omitempty"` // Configs for the input data that used to create the issue model. @@ -2295,14 +2295,14 @@ func (x *IssueModel) GetDisplayName() string { return "" } -func (x *IssueModel) GetCreateTime() *timestamppb.Timestamp { +func (x *IssueModel) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *IssueModel) GetUpdateTime() *timestamppb.Timestamp { +func (x *IssueModel) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2343,9 +2343,9 @@ type Issue struct { // The representative name for the issue. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. The time at which this issue was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time that this issue was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Issue) Reset() { @@ -2394,14 +2394,14 @@ func (x *Issue) GetDisplayName() string { return "" } -func (x *Issue) GetCreateTime() *timestamppb.Timestamp { +func (x *Issue) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Issue) GetUpdateTime() *timestamppb.Timestamp { +func (x *Issue) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2496,7 +2496,7 @@ type PhraseMatcher struct { VersionTag string `protobuf:"bytes,3,opt,name=version_tag,json=versionTag,proto3" json:"version_tag,omitempty"` // Output only. The timestamp of when the revision was created. It is also the create time // when a new matcher is added. - RevisionCreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` + RevisionCreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` // The human-readable name of the phrase matcher. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Required. The type of this phrase matcher. @@ -2506,13 +2506,13 @@ type PhraseMatcher struct { // A list of phase match rule groups that are included in this matcher. PhraseMatchRuleGroups []*PhraseMatchRuleGroup `protobuf:"bytes,8,rep,name=phrase_match_rule_groups,json=phraseMatchRuleGroups,proto3" json:"phrase_match_rule_groups,omitempty"` // Output only. The most recent time at which the activation status was updated. - ActivationUpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=activation_update_time,json=activationUpdateTime,proto3" json:"activation_update_time,omitempty"` + ActivationUpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=activation_update_time,json=activationUpdateTime,proto3" json:"activation_update_time,omitempty"` // The role whose utterances the phrase matcher should be matched // against. If the role is ROLE_UNSPECIFIED it will be matched against any // utterances in the transcript. RoleMatch ConversationParticipant_Role `protobuf:"varint,10,opt,name=role_match,json=roleMatch,proto3,enum=google.cloud.contactcenterinsights.v1.ConversationParticipant_Role" json:"role_match,omitempty"` // Output only. The most recent time at which the phrase matcher was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *PhraseMatcher) Reset() { @@ -2568,7 +2568,7 @@ func (x *PhraseMatcher) GetVersionTag() string { return "" } -func (x *PhraseMatcher) GetRevisionCreateTime() *timestamppb.Timestamp { +func (x *PhraseMatcher) GetRevisionCreateTime() *timestamp.Timestamp { if x != nil { return x.RevisionCreateTime } @@ -2603,7 +2603,7 @@ func (x *PhraseMatcher) GetPhraseMatchRuleGroups() []*PhraseMatchRuleGroup { return nil } -func (x *PhraseMatcher) GetActivationUpdateTime() *timestamppb.Timestamp { +func (x *PhraseMatcher) GetActivationUpdateTime() *timestamp.Timestamp { if x != nil { return x.ActivationUpdateTime } @@ -2617,7 +2617,7 @@ func (x *PhraseMatcher) GetRoleMatch() ConversationParticipant_Role { return ConversationParticipant_ROLE_UNSPECIFIED } -func (x *PhraseMatcher) GetUpdateTime() *timestamppb.Timestamp { +func (x *PhraseMatcher) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2882,9 +2882,9 @@ type Settings struct { // projects/{project}/locations/{location}/settings Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which the settings was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which the settings were last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // A language code to be applied to each transcript segment unless the segment // already specifies a language code. Language code defaults to "en-US" if it // is neither specified on the segment nor here. @@ -2893,7 +2893,7 @@ type Settings struct { // specified expiration, that value will be used instead. Changing this // value will not change the expiration of existing conversations. // Conversations with no expire time persist until they are deleted. - ConversationTtl *durationpb.Duration `protobuf:"bytes,5,opt,name=conversation_ttl,json=conversationTtl,proto3" json:"conversation_ttl,omitempty"` + ConversationTtl *duration.Duration `protobuf:"bytes,5,opt,name=conversation_ttl,json=conversationTtl,proto3" json:"conversation_ttl,omitempty"` // A map that maps a notification trigger to a Pub/Sub topic. Each time a // specified trigger occurs, Insights will notify the corresponding Pub/Sub // topic. @@ -2953,14 +2953,14 @@ func (x *Settings) GetName() string { return "" } -func (x *Settings) GetCreateTime() *timestamppb.Timestamp { +func (x *Settings) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Settings) GetUpdateTime() *timestamppb.Timestamp { +func (x *Settings) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2974,7 +2974,7 @@ func (x *Settings) GetLanguageCode() string { return "" } -func (x *Settings) GetConversationTtl() *durationpb.Duration { +func (x *Settings) GetConversationTtl() *duration.Duration { if x != nil { return x.ConversationTtl } @@ -3016,7 +3016,7 @@ type RuntimeAnnotation struct { // projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} AnnotationId string `protobuf:"bytes,1,opt,name=annotation_id,json=annotationId,proto3" json:"annotation_id,omitempty"` // The time at which this annotation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The boundary in the conversation where the annotation starts, inclusive. StartBoundary *AnnotationBoundary `protobuf:"bytes,3,opt,name=start_boundary,json=startBoundary,proto3" json:"start_boundary,omitempty"` // The boundary in the conversation where the annotation ends, inclusive. @@ -3106,7 +3106,7 @@ func (x *RuntimeAnnotation) GetAnnotationId() string { return "" } -func (x *RuntimeAnnotation) GetCreateTime() *timestamppb.Timestamp { +func (x *RuntimeAnnotation) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -3796,9 +3796,9 @@ type View struct { // The human-readable display name of the view. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. The time at which this view was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time at which the view was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // String with specific view properties. Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` } @@ -3849,14 +3849,14 @@ func (x *View) GetDisplayName() string { return "" } -func (x *View) GetCreateTime() *timestamppb.Timestamp { +func (x *View) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *View) GetUpdateTime() *timestamppb.Timestamp { +func (x *View) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3984,7 +3984,7 @@ type Conversation_Transcript_TranscriptSegment struct { unknownFields protoimpl.UnknownFields // The time that the message occurred, if provided. - MessageTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=message_time,json=messageTime,proto3" json:"message_time,omitempty"` + MessageTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=message_time,json=messageTime,proto3" json:"message_time,omitempty"` // The text of this segment. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // A confidence estimate between 0.0 and 1.0 of the fidelity of this @@ -4041,7 +4041,7 @@ func (*Conversation_Transcript_TranscriptSegment) Descriptor() ([]byte, []int) { return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{0, 1, 0} } -func (x *Conversation_Transcript_TranscriptSegment) GetMessageTime() *timestamppb.Timestamp { +func (x *Conversation_Transcript_TranscriptSegment) GetMessageTime() *timestamp.Timestamp { if x != nil { return x.MessageTime } @@ -4112,10 +4112,10 @@ type Conversation_Transcript_TranscriptSegment_WordInfo struct { // Time offset of the start of this word relative to the beginning of // the total conversation. - StartOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` + StartOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` // Time offset of the end of this word relative to the beginning of the // total conversation. - EndOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` + EndOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` // The word itself. Includes punctuation marks that surround the word. Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` // A confidence estimate between 0.0 and 1.0 of the fidelity of this @@ -4155,14 +4155,14 @@ func (*Conversation_Transcript_TranscriptSegment_WordInfo) Descriptor() ([]byte, return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{0, 1, 0, 0} } -func (x *Conversation_Transcript_TranscriptSegment_WordInfo) GetStartOffset() *durationpb.Duration { +func (x *Conversation_Transcript_TranscriptSegment_WordInfo) GetStartOffset() *duration.Duration { if x != nil { return x.StartOffset } return nil } -func (x *Conversation_Transcript_TranscriptSegment_WordInfo) GetEndOffset() *durationpb.Duration { +func (x *Conversation_Transcript_TranscriptSegment_WordInfo) GetEndOffset() *duration.Duration { if x != nil { return x.EndOffset } @@ -5626,8 +5626,8 @@ var file_google_cloud_contactcenterinsights_v1_resources_proto_goTypes = []inter nil, // 65: google.cloud.contactcenterinsights.v1.FaqAnswerData.MetadataEntry nil, // 66: google.cloud.contactcenterinsights.v1.SmartReplyData.MetadataEntry nil, // 67: google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData.MetadataEntry - (*timestamppb.Timestamp)(nil), // 68: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 69: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 68: google.protobuf.Timestamp + (*duration.Duration)(nil), // 69: google.protobuf.Duration } var file_google_cloud_contactcenterinsights_v1_resources_proto_depIdxs = []int32{ 47, // 0: google.cloud.contactcenterinsights.v1.Conversation.call_metadata:type_name -> google.cloud.contactcenterinsights.v1.Conversation.CallMetadata diff --git a/contactcenterinsights/go.mod b/contactcenterinsights/go.mod index 96335b4fd730..a8b2043cdab0 100644 --- a/contactcenterinsights/go.mod +++ b/contactcenterinsights/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/container/apiv1/containerpb/cluster_service.pb.go b/container/apiv1/containerpb/cluster_service.pb.go index aaa864c9445c..0b4c5676af8b 100644 --- a/container/apiv1/containerpb/cluster_service.pb.go +++ b/container/apiv1/containerpb/cluster_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/container/v1/cluster_service.proto package containerpb @@ -25,6 +25,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" code "google.golang.org/genproto/googleapis/rpc/code" status "google.golang.org/genproto/googleapis/rpc/status" @@ -33,10 +37,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -2145,7 +2145,7 @@ type NodeKubeletConfig struct { // your pods to be in Guaranteed QoS class by specifying the CPU limits. // // The default value is 'true' if unspecified. - CpuCfsQuota *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=cpu_cfs_quota,json=cpuCfsQuota,proto3" json:"cpu_cfs_quota,omitempty"` + CpuCfsQuota *wrappers.BoolValue `protobuf:"bytes,2,opt,name=cpu_cfs_quota,json=cpuCfsQuota,proto3" json:"cpu_cfs_quota,omitempty"` // Set the CPU CFS quota period value 'cpu.cfs_period_us'. // // The string must be a sequence of decimal numbers, each with optional @@ -2200,7 +2200,7 @@ func (x *NodeKubeletConfig) GetCpuManagerPolicy() string { return "" } -func (x *NodeKubeletConfig) GetCpuCfsQuota() *wrapperspb.BoolValue { +func (x *NodeKubeletConfig) GetCpuCfsQuota() *wrappers.BoolValue { if x != nil { return x.CpuCfsQuota } @@ -8844,7 +8844,7 @@ type BlueGreenSettings struct { RolloutPolicy isBlueGreenSettings_RolloutPolicy `protobuf_oneof:"rollout_policy"` // Time needed after draining entire blue pool. After this period, blue pool // will be cleaned up. - NodePoolSoakDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=node_pool_soak_duration,json=nodePoolSoakDuration,proto3,oneof" json:"node_pool_soak_duration,omitempty"` + NodePoolSoakDuration *duration.Duration `protobuf:"bytes,2,opt,name=node_pool_soak_duration,json=nodePoolSoakDuration,proto3,oneof" json:"node_pool_soak_duration,omitempty"` } func (x *BlueGreenSettings) Reset() { @@ -8893,7 +8893,7 @@ func (x *BlueGreenSettings) GetStandardRolloutPolicy() *BlueGreenSettings_Standa return nil } -func (x *BlueGreenSettings) GetNodePoolSoakDuration() *durationpb.Duration { +func (x *BlueGreenSettings) GetNodePoolSoakDuration() *duration.Duration { if x != nil { return x.NodePoolSoakDuration } @@ -9438,10 +9438,10 @@ type TimeWindow struct { // *TimeWindow_MaintenanceExclusionOptions Options isTimeWindow_Options `protobuf_oneof:"options"` // The time that the window first starts. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The time that the window ends. The end time should take place after the // start time. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimeWindow) Reset() { @@ -9490,14 +9490,14 @@ func (x *TimeWindow) GetMaintenanceExclusionOptions() *MaintenanceExclusionOptio return nil } -func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -12459,7 +12459,7 @@ type MeshCertificates struct { // Requires Workload Identity // ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] // must be non-empty). - EnableCertificates *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enable_certificates,json=enableCertificates,proto3" json:"enable_certificates,omitempty"` + EnableCertificates *wrappers.BoolValue `protobuf:"bytes,1,opt,name=enable_certificates,json=enableCertificates,proto3" json:"enable_certificates,omitempty"` } func (x *MeshCertificates) Reset() { @@ -12494,7 +12494,7 @@ func (*MeshCertificates) Descriptor() ([]byte, []int) { return file_google_container_v1_cluster_service_proto_rawDescGZIP(), []int{109} } -func (x *MeshCertificates) GetEnableCertificates() *wrapperspb.BoolValue { +func (x *MeshCertificates) GetEnableCertificates() *wrappers.BoolValue { if x != nil { return x.EnableCertificates } @@ -13244,7 +13244,7 @@ type UpgradeEvent struct { // The operation associated with this upgrade. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // The time when the operation was started. - OperationStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=operation_start_time,json=operationStartTime,proto3" json:"operation_start_time,omitempty"` + OperationStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=operation_start_time,json=operationStartTime,proto3" json:"operation_start_time,omitempty"` // The current version before the upgrade. CurrentVersion string `protobuf:"bytes,4,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"` // The target version for the upgrade. @@ -13300,7 +13300,7 @@ func (x *UpgradeEvent) GetOperation() string { return "" } -func (x *UpgradeEvent) GetOperationStartTime() *timestamppb.Timestamp { +func (x *UpgradeEvent) GetOperationStartTime() *timestamp.Timestamp { if x != nil { return x.OperationStartTime } @@ -14248,7 +14248,7 @@ type BlueGreenSettings_StandardRolloutPolicy struct { // *BlueGreenSettings_StandardRolloutPolicy_BatchNodeCount UpdateBatchSize isBlueGreenSettings_StandardRolloutPolicy_UpdateBatchSize `protobuf_oneof:"update_batch_size"` // Soak time after each batch gets drained. Default to zero. - BatchSoakDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=batch_soak_duration,json=batchSoakDuration,proto3,oneof" json:"batch_soak_duration,omitempty"` + BatchSoakDuration *duration.Duration `protobuf:"bytes,3,opt,name=batch_soak_duration,json=batchSoakDuration,proto3,oneof" json:"batch_soak_duration,omitempty"` } func (x *BlueGreenSettings_StandardRolloutPolicy) Reset() { @@ -14304,7 +14304,7 @@ func (x *BlueGreenSettings_StandardRolloutPolicy) GetBatchNodeCount() int32 { return 0 } -func (x *BlueGreenSettings_StandardRolloutPolicy) GetBatchSoakDuration() *durationpb.Duration { +func (x *BlueGreenSettings_StandardRolloutPolicy) GetBatchSoakDuration() *duration.Duration { if x != nil { return x.BatchSoakDuration } @@ -18104,12 +18104,12 @@ var file_google_container_v1_cluster_service_proto_goTypes = []interface{}{ (*ResourceUsageExportConfig_ConsumptionMeteringConfig)(nil), // 183: google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig (*NotificationConfig_PubSub)(nil), // 184: google.container.v1.NotificationConfig.PubSub (*NotificationConfig_Filter)(nil), // 185: google.container.v1.NotificationConfig.Filter - (*wrapperspb.BoolValue)(nil), // 186: google.protobuf.BoolValue + (*wrappers.BoolValue)(nil), // 186: google.protobuf.BoolValue (*status.Status)(nil), // 187: google.rpc.Status - (*durationpb.Duration)(nil), // 188: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 189: google.protobuf.Timestamp + (*duration.Duration)(nil), // 188: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 189: google.protobuf.Timestamp (code.Code)(0), // 190: google.rpc.Code - (*emptypb.Empty)(nil), // 191: google.protobuf.Empty + (*empty.Empty)(nil), // 191: google.protobuf.Empty } var file_google_container_v1_cluster_service_proto_depIdxs = []int32{ 167, // 0: google.container.v1.LinuxNodeConfig.sysctls:type_name -> google.container.v1.LinuxNodeConfig.SysctlsEntry @@ -20265,7 +20265,7 @@ type ClusterManagerClient interface { // Gets the specified operation. GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error) // Cancels the specified operation. - CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Returns configuration info about the Google Kubernetes Engine service. GetServerConfig(ctx context.Context, in *GetServerConfigRequest, opts ...grpc.CallOption) (*ServerConfig, error) // Gets the public component of the cluster signing keys in @@ -20283,7 +20283,7 @@ type ClusterManagerClient interface { DeleteNodePool(ctx context.Context, in *DeleteNodePoolRequest, opts ...grpc.CallOption) (*Operation, error) // CompleteNodePoolUpgrade will signal an on-going node pool upgrade to // complete. - CompleteNodePoolUpgrade(ctx context.Context, in *CompleteNodePoolUpgradeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CompleteNodePoolUpgrade(ctx context.Context, in *CompleteNodePoolUpgradeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Rolls back a previously Aborted or Failed NodePool upgrade. // This makes no changes if the last upgrade successfully completed. RollbackNodePoolUpgrade(ctx context.Context, in *RollbackNodePoolUpgradeRequest, opts ...grpc.CallOption) (*Operation, error) @@ -20453,8 +20453,8 @@ func (c *clusterManagerClient) GetOperation(ctx context.Context, in *GetOperatio return out, nil } -func (c *clusterManagerClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *clusterManagerClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.container.v1.ClusterManager/CancelOperation", in, out, opts...) if err != nil { return nil, err @@ -20516,8 +20516,8 @@ func (c *clusterManagerClient) DeleteNodePool(ctx context.Context, in *DeleteNod return out, nil } -func (c *clusterManagerClient) CompleteNodePoolUpgrade(ctx context.Context, in *CompleteNodePoolUpgradeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *clusterManagerClient) CompleteNodePoolUpgrade(ctx context.Context, in *CompleteNodePoolUpgradeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.container.v1.ClusterManager/CompleteNodePoolUpgrade", in, out, opts...) if err != nil { return nil, err @@ -20676,7 +20676,7 @@ type ClusterManagerServer interface { // Gets the specified operation. GetOperation(context.Context, *GetOperationRequest) (*Operation, error) // Cancels the specified operation. - CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) + CancelOperation(context.Context, *CancelOperationRequest) (*empty.Empty, error) // Returns configuration info about the Google Kubernetes Engine service. GetServerConfig(context.Context, *GetServerConfigRequest) (*ServerConfig, error) // Gets the public component of the cluster signing keys in @@ -20694,7 +20694,7 @@ type ClusterManagerServer interface { DeleteNodePool(context.Context, *DeleteNodePoolRequest) (*Operation, error) // CompleteNodePoolUpgrade will signal an on-going node pool upgrade to // complete. - CompleteNodePoolUpgrade(context.Context, *CompleteNodePoolUpgradeRequest) (*emptypb.Empty, error) + CompleteNodePoolUpgrade(context.Context, *CompleteNodePoolUpgradeRequest) (*empty.Empty, error) // Rolls back a previously Aborted or Failed NodePool upgrade. // This makes no changes if the last upgrade successfully completed. RollbackNodePoolUpgrade(context.Context, *RollbackNodePoolUpgradeRequest) (*Operation, error) @@ -20769,7 +20769,7 @@ func (*UnimplementedClusterManagerServer) ListOperations(context.Context, *ListO func (*UnimplementedClusterManagerServer) GetOperation(context.Context, *GetOperationRequest) (*Operation, error) { return nil, status1.Errorf(codes.Unimplemented, "method GetOperation not implemented") } -func (*UnimplementedClusterManagerServer) CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) { +func (*UnimplementedClusterManagerServer) CancelOperation(context.Context, *CancelOperationRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CancelOperation not implemented") } func (*UnimplementedClusterManagerServer) GetServerConfig(context.Context, *GetServerConfigRequest) (*ServerConfig, error) { @@ -20790,7 +20790,7 @@ func (*UnimplementedClusterManagerServer) CreateNodePool(context.Context, *Creat func (*UnimplementedClusterManagerServer) DeleteNodePool(context.Context, *DeleteNodePoolRequest) (*Operation, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteNodePool not implemented") } -func (*UnimplementedClusterManagerServer) CompleteNodePoolUpgrade(context.Context, *CompleteNodePoolUpgradeRequest) (*emptypb.Empty, error) { +func (*UnimplementedClusterManagerServer) CompleteNodePoolUpgrade(context.Context, *CompleteNodePoolUpgradeRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CompleteNodePoolUpgrade not implemented") } func (*UnimplementedClusterManagerServer) RollbackNodePoolUpgrade(context.Context, *RollbackNodePoolUpgradeRequest) (*Operation, error) { diff --git a/container/go.mod b/container/go.mod index 692a0604a8aa..6dfdc7a05579 100644 --- a/container/go.mod +++ b/container/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect diff --git a/datacatalog/apiv1/datacatalogpb/bigquery.pb.go b/datacatalog/apiv1/datacatalogpb/bigquery.pb.go index 2fdd97cda7e1..a09798f7859d 100644 --- a/datacatalog/apiv1/datacatalogpb/bigquery.pb.go +++ b/datacatalog/apiv1/datacatalogpb/bigquery.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/bigquery.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/common.pb.go b/datacatalog/apiv1/datacatalogpb/common.pb.go index 385e3e11a514..8962d0eb14f3 100644 --- a/datacatalog/apiv1/datacatalogpb/common.pb.go +++ b/datacatalog/apiv1/datacatalogpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/common.proto package datacatalogpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -106,7 +106,7 @@ type PersonalDetails struct { // True if the entry is starred by the user; false otherwise. Starred bool `protobuf:"varint,1,opt,name=starred,proto3" json:"starred,omitempty"` // Set if the entry is starred; unset otherwise. - StarTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=star_time,json=starTime,proto3" json:"star_time,omitempty"` + StarTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=star_time,json=starTime,proto3" json:"star_time,omitempty"` } func (x *PersonalDetails) Reset() { @@ -148,7 +148,7 @@ func (x *PersonalDetails) GetStarred() bool { return false } -func (x *PersonalDetails) GetStarTime() *timestamppb.Timestamp { +func (x *PersonalDetails) GetStarTime() *timestamp.Timestamp { if x != nil { return x.StarTime } @@ -210,9 +210,9 @@ func file_google_cloud_datacatalog_v1_common_proto_rawDescGZIP() []byte { var file_google_cloud_datacatalog_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_datacatalog_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_datacatalog_v1_common_proto_goTypes = []interface{}{ - (IntegratedSystem)(0), // 0: google.cloud.datacatalog.v1.IntegratedSystem - (*PersonalDetails)(nil), // 1: google.cloud.datacatalog.v1.PersonalDetails - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (IntegratedSystem)(0), // 0: google.cloud.datacatalog.v1.IntegratedSystem + (*PersonalDetails)(nil), // 1: google.cloud.datacatalog.v1.PersonalDetails + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_google_cloud_datacatalog_v1_common_proto_depIdxs = []int32{ 2, // 0: google.cloud.datacatalog.v1.PersonalDetails.star_time:type_name -> google.protobuf.Timestamp diff --git a/datacatalog/apiv1/datacatalogpb/data_source.pb.go b/datacatalog/apiv1/datacatalogpb/data_source.pb.go index a111f498ab84..c1e8b5e032a5 100644 --- a/datacatalog/apiv1/datacatalogpb/data_source.pb.go +++ b/datacatalog/apiv1/datacatalogpb/data_source.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/data_source.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/datacatalog.pb.go b/datacatalog/apiv1/datacatalogpb/datacatalog.pb.go index 73dd5a61400f..8e538c1d320d 100644 --- a/datacatalog/apiv1/datacatalogpb/datacatalog.pb.go +++ b/datacatalog/apiv1/datacatalogpb/datacatalog.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/datacatalog.proto package datacatalogpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -585,7 +585,7 @@ type UpdateEntryGroupRequest struct { // If this parameter is absent or empty, all modifiable fields // are overwritten. If such fields are non-required and omitted in the // request body, their values are emptied. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEntryGroupRequest) Reset() { @@ -627,7 +627,7 @@ func (x *UpdateEntryGroupRequest) GetEntryGroup() *EntryGroup { return nil } -func (x *UpdateEntryGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEntryGroupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -644,7 +644,7 @@ type GetEntryGroupRequest struct { // Required. The name of the entry group to get. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The fields to return. If empty or omitted, all fields are returned. - ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + ReadMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` } func (x *GetEntryGroupRequest) Reset() { @@ -686,7 +686,7 @@ func (x *GetEntryGroupRequest) GetName() string { return "" } -func (x *GetEntryGroupRequest) GetReadMask() *fieldmaskpb.FieldMask { +func (x *GetEntryGroupRequest) GetReadMask() *field_mask.FieldMask { if x != nil { return x.ReadMask } @@ -999,7 +999,7 @@ type UpdateEntryRequest struct { // * `user_specified_system` // * `linked_resource` // * `source_system_timestamps` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEntryRequest) Reset() { @@ -1041,7 +1041,7 @@ func (x *UpdateEntryRequest) GetEntry() *Entry { return nil } -func (x *UpdateEntryRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEntryRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2438,7 +2438,7 @@ type UpdateTagTemplateRequest struct { // // Note: Updating the `is_publicly_readable` field may require up to 12 // hours to take effect in search results. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTagTemplateRequest) Reset() { @@ -2480,7 +2480,7 @@ func (x *UpdateTagTemplateRequest) GetTagTemplate() *TagTemplate { return nil } -func (x *UpdateTagTemplateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagTemplateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2628,7 +2628,7 @@ type UpdateTagRequest struct { // In general, if this parameter is absent or empty, all modifiable fields // are overwritten. If such fields are non-required and omitted in the // request body, their values are emptied. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTagRequest) Reset() { @@ -2670,7 +2670,7 @@ func (x *UpdateTagRequest) GetTag() *Tag { return nil } -func (x *UpdateTagRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2830,7 +2830,7 @@ type UpdateTagTemplateFieldRequest struct { // // Additionally, updating a template field from optional to required is // *not* allowed. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTagTemplateFieldRequest) Reset() { @@ -2879,7 +2879,7 @@ func (x *UpdateTagTemplateFieldRequest) GetTagTemplateField() *TagTemplateField return nil } -func (x *UpdateTagTemplateFieldRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagTemplateFieldRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3220,7 +3220,7 @@ type ListEntriesRequest struct { // // For example, to return a list of entries with only the `name` field, // set `read_mask` to only one path with the `name` value. - ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + ReadMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` } func (x *ListEntriesRequest) Reset() { @@ -3276,7 +3276,7 @@ func (x *ListEntriesRequest) GetPageToken() string { return "" } -func (x *ListEntriesRequest) GetReadMask() *fieldmaskpb.FieldMask { +func (x *ListEntriesRequest) GetReadMask() *field_mask.FieldMask { if x != nil { return x.ReadMask } @@ -5087,7 +5087,7 @@ var file_google_cloud_datacatalog_v1_datacatalog_proto_goTypes = []interface{}{ (*RoutineSpec_Argument)(nil), // 50: google.cloud.datacatalog.v1.RoutineSpec.Argument (*Contacts_Person)(nil), // 51: google.cloud.datacatalog.v1.Contacts.Person (*SearchCatalogResult)(nil), // 52: google.cloud.datacatalog.v1.SearchCatalogResult - (*fieldmaskpb.FieldMask)(nil), // 53: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 53: google.protobuf.FieldMask (IntegratedSystem)(0), // 54: google.cloud.datacatalog.v1.IntegratedSystem (*GcsFilesetSpec)(nil), // 55: google.cloud.datacatalog.v1.GcsFilesetSpec (*BigQueryTableSpec)(nil), // 56: google.cloud.datacatalog.v1.BigQueryTableSpec @@ -5107,7 +5107,7 @@ var file_google_cloud_datacatalog_v1_datacatalog_proto_goTypes = []interface{}{ (*v1.SetIamPolicyRequest)(nil), // 70: google.iam.v1.SetIamPolicyRequest (*v1.GetIamPolicyRequest)(nil), // 71: google.iam.v1.GetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 72: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 73: google.protobuf.Empty + (*empty.Empty)(nil), // 73: google.protobuf.Empty (*v1.Policy)(nil), // 74: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 75: google.iam.v1.TestIamPermissionsResponse } @@ -5930,7 +5930,7 @@ type DataCatalogClient interface { // identified by the `name` parameter. For more information, see [Data Catalog // resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists entry groups. ListEntryGroups(ctx context.Context, in *ListEntryGroupsRequest, opts ...grpc.CallOption) (*ListEntryGroupsResponse, error) // Creates an entry. @@ -5962,7 +5962,7 @@ type DataCatalogClient interface { // the `name` parameter. For more information, see [Data Catalog // resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets an entry. GetEntry(ctx context.Context, in *GetEntryRequest, opts ...grpc.CallOption) (*Entry, error) // Gets an entry by its target resource name. @@ -6011,7 +6011,7 @@ type DataCatalogClient interface { // You must enable the Data Catalog API in the project identified by // the `name` parameter. For more information, see [Data Catalog resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a field in a tag template. // // You must enable the Data Catalog API in the project identified by @@ -6043,7 +6043,7 @@ type DataCatalogClient interface { // You must enable the Data Catalog API in the project identified by // the `name` parameter. For more information, see [Data Catalog resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a tag and assigns it to: // // - An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is @@ -6060,7 +6060,7 @@ type DataCatalogClient interface { // Updates an existing tag. UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error) // Deletes a tag. - DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. // The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are // lowercased. @@ -6172,8 +6172,8 @@ func (c *dataCatalogClient) UpdateEntryGroup(ctx context.Context, in *UpdateEntr return out, nil } -func (c *dataCatalogClient) DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataCatalogClient) DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.DataCatalog/DeleteEntryGroup", in, out, opts...) if err != nil { return nil, err @@ -6208,8 +6208,8 @@ func (c *dataCatalogClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequ return out, nil } -func (c *dataCatalogClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataCatalogClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.DataCatalog/DeleteEntry", in, out, opts...) if err != nil { return nil, err @@ -6289,8 +6289,8 @@ func (c *dataCatalogClient) UpdateTagTemplate(ctx context.Context, in *UpdateTag return out, nil } -func (c *dataCatalogClient) DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataCatalogClient) DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplate", in, out, opts...) if err != nil { return nil, err @@ -6334,8 +6334,8 @@ func (c *dataCatalogClient) RenameTagTemplateFieldEnumValue(ctx context.Context, return out, nil } -func (c *dataCatalogClient) DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataCatalogClient) DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplateField", in, out, opts...) if err != nil { return nil, err @@ -6361,8 +6361,8 @@ func (c *dataCatalogClient) UpdateTag(ctx context.Context, in *UpdateTagRequest, return out, nil } -func (c *dataCatalogClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataCatalogClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.DataCatalog/DeleteTag", in, out, opts...) if err != nil { return nil, err @@ -6485,7 +6485,7 @@ type DataCatalogServer interface { // identified by the `name` parameter. For more information, see [Data Catalog // resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*emptypb.Empty, error) + DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*empty.Empty, error) // Lists entry groups. ListEntryGroups(context.Context, *ListEntryGroupsRequest) (*ListEntryGroupsResponse, error) // Creates an entry. @@ -6517,7 +6517,7 @@ type DataCatalogServer interface { // the `name` parameter. For more information, see [Data Catalog // resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteEntry(context.Context, *DeleteEntryRequest) (*emptypb.Empty, error) + DeleteEntry(context.Context, *DeleteEntryRequest) (*empty.Empty, error) // Gets an entry. GetEntry(context.Context, *GetEntryRequest) (*Entry, error) // Gets an entry by its target resource name. @@ -6566,7 +6566,7 @@ type DataCatalogServer interface { // You must enable the Data Catalog API in the project identified by // the `name` parameter. For more information, see [Data Catalog resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*emptypb.Empty, error) + DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*empty.Empty, error) // Creates a field in a tag template. // // You must enable the Data Catalog API in the project identified by @@ -6598,7 +6598,7 @@ type DataCatalogServer interface { // You must enable the Data Catalog API in the project identified by // the `name` parameter. For more information, see [Data Catalog resource // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*emptypb.Empty, error) + DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*empty.Empty, error) // Creates a tag and assigns it to: // // - An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is @@ -6615,7 +6615,7 @@ type DataCatalogServer interface { // Updates an existing tag. UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) // Deletes a tag. - DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) + DeleteTag(context.Context, *DeleteTagRequest) (*empty.Empty, error) // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. // The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are // lowercased. @@ -6699,7 +6699,7 @@ func (*UnimplementedDataCatalogServer) GetEntryGroup(context.Context, *GetEntryG func (*UnimplementedDataCatalogServer) UpdateEntryGroup(context.Context, *UpdateEntryGroupRequest) (*EntryGroup, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEntryGroup not implemented") } -func (*UnimplementedDataCatalogServer) DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataCatalogServer) DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEntryGroup not implemented") } func (*UnimplementedDataCatalogServer) ListEntryGroups(context.Context, *ListEntryGroupsRequest) (*ListEntryGroupsResponse, error) { @@ -6711,7 +6711,7 @@ func (*UnimplementedDataCatalogServer) CreateEntry(context.Context, *CreateEntry func (*UnimplementedDataCatalogServer) UpdateEntry(context.Context, *UpdateEntryRequest) (*Entry, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEntry not implemented") } -func (*UnimplementedDataCatalogServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataCatalogServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEntry not implemented") } func (*UnimplementedDataCatalogServer) GetEntry(context.Context, *GetEntryRequest) (*Entry, error) { @@ -6738,7 +6738,7 @@ func (*UnimplementedDataCatalogServer) GetTagTemplate(context.Context, *GetTagTe func (*UnimplementedDataCatalogServer) UpdateTagTemplate(context.Context, *UpdateTagTemplateRequest) (*TagTemplate, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTagTemplate not implemented") } -func (*UnimplementedDataCatalogServer) DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataCatalogServer) DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTagTemplate not implemented") } func (*UnimplementedDataCatalogServer) CreateTagTemplateField(context.Context, *CreateTagTemplateFieldRequest) (*TagTemplateField, error) { @@ -6753,7 +6753,7 @@ func (*UnimplementedDataCatalogServer) RenameTagTemplateField(context.Context, * func (*UnimplementedDataCatalogServer) RenameTagTemplateFieldEnumValue(context.Context, *RenameTagTemplateFieldEnumValueRequest) (*TagTemplateField, error) { return nil, status.Errorf(codes.Unimplemented, "method RenameTagTemplateFieldEnumValue not implemented") } -func (*UnimplementedDataCatalogServer) DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataCatalogServer) DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTagTemplateField not implemented") } func (*UnimplementedDataCatalogServer) CreateTag(context.Context, *CreateTagRequest) (*Tag, error) { @@ -6762,7 +6762,7 @@ func (*UnimplementedDataCatalogServer) CreateTag(context.Context, *CreateTagRequ func (*UnimplementedDataCatalogServer) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTag not implemented") } -func (*UnimplementedDataCatalogServer) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataCatalogServer) DeleteTag(context.Context, *DeleteTagRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTag not implemented") } func (*UnimplementedDataCatalogServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error) { diff --git a/datacatalog/apiv1/datacatalogpb/dataplex_spec.pb.go b/datacatalog/apiv1/datacatalogpb/dataplex_spec.pb.go index d348a6abe911..6831df8483d6 100644 --- a/datacatalog/apiv1/datacatalogpb/dataplex_spec.pb.go +++ b/datacatalog/apiv1/datacatalogpb/dataplex_spec.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/dataplex_spec.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/gcs_fileset_spec.pb.go b/datacatalog/apiv1/datacatalogpb/gcs_fileset_spec.pb.go index 7e57360b4f5b..172ab4206e8a 100644 --- a/datacatalog/apiv1/datacatalogpb/gcs_fileset_spec.pb.go +++ b/datacatalog/apiv1/datacatalogpb/gcs_fileset_spec.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/physical_schema.pb.go b/datacatalog/apiv1/datacatalogpb/physical_schema.pb.go index 0f689ed1d085..6b39754c77a2 100644 --- a/datacatalog/apiv1/datacatalogpb/physical_schema.pb.go +++ b/datacatalog/apiv1/datacatalogpb/physical_schema.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/physical_schema.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/policytagmanager.pb.go b/datacatalog/apiv1/datacatalogpb/policytagmanager.pb.go index 2e487985779c..200f67f202e6 100644 --- a/datacatalog/apiv1/datacatalogpb/policytagmanager.pb.go +++ b/datacatalog/apiv1/datacatalogpb/policytagmanager.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/policytagmanager.proto package datacatalogpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -463,7 +463,7 @@ type UpdateTaxonomyRequest struct { // // For more information, see [FieldMask] // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTaxonomyRequest) Reset() { @@ -505,7 +505,7 @@ func (x *UpdateTaxonomyRequest) GetTaxonomy() *Taxonomy { return nil } -func (x *UpdateTaxonomyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTaxonomyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -821,7 +821,7 @@ type UpdatePolicyTagRequest struct { // If not set, defaults to all updatable fields. // For more information, see [FieldMask] // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdatePolicyTagRequest) Reset() { @@ -863,7 +863,7 @@ func (x *UpdatePolicyTagRequest) GetPolicyTag() *PolicyTag { return nil } -func (x *UpdatePolicyTagRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatePolicyTagRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1454,11 +1454,11 @@ var file_google_cloud_datacatalog_v1_policytagmanager_proto_goTypes = []interfac (*ListPolicyTagsResponse)(nil), // 13: google.cloud.datacatalog.v1.ListPolicyTagsResponse (*GetPolicyTagRequest)(nil), // 14: google.cloud.datacatalog.v1.GetPolicyTagRequest (*SystemTimestamps)(nil), // 15: google.cloud.datacatalog.v1.SystemTimestamps - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 17: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 18: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 19: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 20: google.protobuf.Empty + (*empty.Empty)(nil), // 20: google.protobuf.Empty (*v1.Policy)(nil), // 21: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 22: google.iam.v1.TestIamPermissionsResponse } @@ -1722,7 +1722,7 @@ type PolicyTagManagerClient interface { // Deletes a taxonomy, including all policy tags in this // taxonomy, their associated policies, and the policy tags references from // BigQuery columns. - DeleteTaxonomy(ctx context.Context, in *DeleteTaxonomyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTaxonomy(ctx context.Context, in *DeleteTaxonomyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a taxonomy, including its display name, // description, and activated policy types. UpdateTaxonomy(ctx context.Context, in *UpdateTaxonomyRequest, opts ...grpc.CallOption) (*Taxonomy, error) @@ -1739,7 +1739,7 @@ type PolicyTagManagerClient interface { // - Policies associated with the policy tag and its descendants // - References from BigQuery table schema of the policy tag and its // descendants - DeletePolicyTag(ctx context.Context, in *DeletePolicyTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePolicyTag(ctx context.Context, in *DeletePolicyTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a policy tag, including its display // name, description, and parent policy tag. UpdatePolicyTag(ctx context.Context, in *UpdatePolicyTagRequest, opts ...grpc.CallOption) (*PolicyTag, error) @@ -1773,8 +1773,8 @@ func (c *policyTagManagerClient) CreateTaxonomy(ctx context.Context, in *CreateT return out, nil } -func (c *policyTagManagerClient) DeleteTaxonomy(ctx context.Context, in *DeleteTaxonomyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *policyTagManagerClient) DeleteTaxonomy(ctx context.Context, in *DeleteTaxonomyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.PolicyTagManager/DeleteTaxonomy", in, out, opts...) if err != nil { return nil, err @@ -1818,8 +1818,8 @@ func (c *policyTagManagerClient) CreatePolicyTag(ctx context.Context, in *Create return out, nil } -func (c *policyTagManagerClient) DeletePolicyTag(ctx context.Context, in *DeletePolicyTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *policyTagManagerClient) DeletePolicyTag(ctx context.Context, in *DeletePolicyTagRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.datacatalog.v1.PolicyTagManager/DeletePolicyTag", in, out, opts...) if err != nil { return nil, err @@ -1890,7 +1890,7 @@ type PolicyTagManagerServer interface { // Deletes a taxonomy, including all policy tags in this // taxonomy, their associated policies, and the policy tags references from // BigQuery columns. - DeleteTaxonomy(context.Context, *DeleteTaxonomyRequest) (*emptypb.Empty, error) + DeleteTaxonomy(context.Context, *DeleteTaxonomyRequest) (*empty.Empty, error) // Updates a taxonomy, including its display name, // description, and activated policy types. UpdateTaxonomy(context.Context, *UpdateTaxonomyRequest) (*Taxonomy, error) @@ -1907,7 +1907,7 @@ type PolicyTagManagerServer interface { // - Policies associated with the policy tag and its descendants // - References from BigQuery table schema of the policy tag and its // descendants - DeletePolicyTag(context.Context, *DeletePolicyTagRequest) (*emptypb.Empty, error) + DeletePolicyTag(context.Context, *DeletePolicyTagRequest) (*empty.Empty, error) // Updates a policy tag, including its display // name, description, and parent policy tag. UpdatePolicyTag(context.Context, *UpdatePolicyTagRequest) (*PolicyTag, error) @@ -1931,7 +1931,7 @@ type UnimplementedPolicyTagManagerServer struct { func (*UnimplementedPolicyTagManagerServer) CreateTaxonomy(context.Context, *CreateTaxonomyRequest) (*Taxonomy, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTaxonomy not implemented") } -func (*UnimplementedPolicyTagManagerServer) DeleteTaxonomy(context.Context, *DeleteTaxonomyRequest) (*emptypb.Empty, error) { +func (*UnimplementedPolicyTagManagerServer) DeleteTaxonomy(context.Context, *DeleteTaxonomyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTaxonomy not implemented") } func (*UnimplementedPolicyTagManagerServer) UpdateTaxonomy(context.Context, *UpdateTaxonomyRequest) (*Taxonomy, error) { @@ -1946,7 +1946,7 @@ func (*UnimplementedPolicyTagManagerServer) GetTaxonomy(context.Context, *GetTax func (*UnimplementedPolicyTagManagerServer) CreatePolicyTag(context.Context, *CreatePolicyTagRequest) (*PolicyTag, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePolicyTag not implemented") } -func (*UnimplementedPolicyTagManagerServer) DeletePolicyTag(context.Context, *DeletePolicyTagRequest) (*emptypb.Empty, error) { +func (*UnimplementedPolicyTagManagerServer) DeletePolicyTag(context.Context, *DeletePolicyTagRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePolicyTag not implemented") } func (*UnimplementedPolicyTagManagerServer) UpdatePolicyTag(context.Context, *UpdatePolicyTagRequest) (*PolicyTag, error) { diff --git a/datacatalog/apiv1/datacatalogpb/policytagmanagerserialization.pb.go b/datacatalog/apiv1/datacatalogpb/policytagmanagerserialization.pb.go index 8853293166eb..60a6d0b47948 100644 --- a/datacatalog/apiv1/datacatalogpb/policytagmanagerserialization.pb.go +++ b/datacatalog/apiv1/datacatalogpb/policytagmanagerserialization.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/schema.pb.go b/datacatalog/apiv1/datacatalogpb/schema.pb.go index 06605e1c2723..67e08bbf74e7 100644 --- a/datacatalog/apiv1/datacatalogpb/schema.pb.go +++ b/datacatalog/apiv1/datacatalogpb/schema.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/schema.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/search.pb.go b/datacatalog/apiv1/datacatalogpb/search.pb.go index e46e96a0662c..fddd85a693c2 100644 --- a/datacatalog/apiv1/datacatalogpb/search.pb.go +++ b/datacatalog/apiv1/datacatalogpb/search.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/search.proto package datacatalogpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -131,7 +131,7 @@ type SearchCatalogResult struct { // `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` LinkedResource string `protobuf:"bytes,4,opt,name=linked_resource,json=linkedResource,proto3" json:"linked_resource,omitempty"` // The last modification timestamp of the entry in the source system. - ModifyTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=modify_time,json=modifyTime,proto3" json:"modify_time,omitempty"` + ModifyTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modify_time,json=modifyTime,proto3" json:"modify_time,omitempty"` // The source system of the entry. Applicable only when the // `search_result_type` is `ENTRY`. // @@ -223,7 +223,7 @@ func (x *SearchCatalogResult) GetLinkedResource() string { return "" } -func (x *SearchCatalogResult) GetModifyTime() *timestamppb.Timestamp { +func (x *SearchCatalogResult) GetModifyTime() *timestamp.Timestamp { if x != nil { return x.ModifyTime } @@ -380,10 +380,10 @@ func file_google_cloud_datacatalog_v1_search_proto_rawDescGZIP() []byte { var file_google_cloud_datacatalog_v1_search_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_datacatalog_v1_search_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_datacatalog_v1_search_proto_goTypes = []interface{}{ - (SearchResultType)(0), // 0: google.cloud.datacatalog.v1.SearchResultType - (*SearchCatalogResult)(nil), // 1: google.cloud.datacatalog.v1.SearchCatalogResult - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (IntegratedSystem)(0), // 3: google.cloud.datacatalog.v1.IntegratedSystem + (SearchResultType)(0), // 0: google.cloud.datacatalog.v1.SearchResultType + (*SearchCatalogResult)(nil), // 1: google.cloud.datacatalog.v1.SearchCatalogResult + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp + (IntegratedSystem)(0), // 3: google.cloud.datacatalog.v1.IntegratedSystem } var file_google_cloud_datacatalog_v1_search_proto_depIdxs = []int32{ 0, // 0: google.cloud.datacatalog.v1.SearchCatalogResult.search_result_type:type_name -> google.cloud.datacatalog.v1.SearchResultType diff --git a/datacatalog/apiv1/datacatalogpb/table_spec.pb.go b/datacatalog/apiv1/datacatalogpb/table_spec.pb.go index 096963e67b5f..dd5000b7ae45 100644 --- a/datacatalog/apiv1/datacatalogpb/table_spec.pb.go +++ b/datacatalog/apiv1/datacatalogpb/table_spec.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/table_spec.proto package datacatalogpb diff --git a/datacatalog/apiv1/datacatalogpb/tags.pb.go b/datacatalog/apiv1/datacatalogpb/tags.pb.go index 1244e3586222..10478a227ed2 100644 --- a/datacatalog/apiv1/datacatalogpb/tags.pb.go +++ b/datacatalog/apiv1/datacatalogpb/tags.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/tags.proto package datacatalogpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -331,7 +331,7 @@ func (x *TagField) GetBoolValue() bool { return false } -func (x *TagField) GetTimestampValue() *timestamppb.Timestamp { +func (x *TagField) GetTimestampValue() *timestamp.Timestamp { if x, ok := x.GetKind().(*TagField_TimestampValue); ok { return x.TimestampValue } @@ -382,7 +382,7 @@ type TagField_BoolValue struct { type TagField_TimestampValue struct { // The value of a tag field with a timestamp type. - TimestampValue *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` + TimestampValue *timestamp.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` } type TagField_EnumValue_ struct { @@ -1063,7 +1063,7 @@ var file_google_cloud_datacatalog_v1_tags_proto_goTypes = []interface{}{ nil, // 8: google.cloud.datacatalog.v1.TagTemplate.FieldsEntry (*FieldType_EnumType)(nil), // 9: google.cloud.datacatalog.v1.FieldType.EnumType (*FieldType_EnumType_EnumValue)(nil), // 10: google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_google_cloud_datacatalog_v1_tags_proto_depIdxs = []int32{ 6, // 0: google.cloud.datacatalog.v1.Tag.fields:type_name -> google.cloud.datacatalog.v1.Tag.FieldsEntry diff --git a/datacatalog/apiv1/datacatalogpb/timestamps.pb.go b/datacatalog/apiv1/datacatalogpb/timestamps.pb.go index 8a3da39d9b4e..ce191a3dd449 100644 --- a/datacatalog/apiv1/datacatalogpb/timestamps.pb.go +++ b/datacatalog/apiv1/datacatalogpb/timestamps.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/timestamps.proto package datacatalogpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -44,7 +44,7 @@ type SystemTimestamps struct { unknownFields protoimpl.UnknownFields // Creation timestamp of the resource within the given system. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Timestamp of the last modification of the resource or its metadata within // a given system. // @@ -52,11 +52,11 @@ type SystemTimestamps struct { // timestamp. // For example, BigQuery timestamps every metadata modification but not data // or permission changes. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Expiration timestamp of the resource within the given system. // // Currently only applicable to BigQuery resources. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *SystemTimestamps) Reset() { @@ -91,21 +91,21 @@ func (*SystemTimestamps) Descriptor() ([]byte, []int) { return file_google_cloud_datacatalog_v1_timestamps_proto_rawDescGZIP(), []int{0} } -func (x *SystemTimestamps) GetCreateTime() *timestamppb.Timestamp { +func (x *SystemTimestamps) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *SystemTimestamps) GetUpdateTime() *timestamppb.Timestamp { +func (x *SystemTimestamps) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *SystemTimestamps) GetExpireTime() *timestamppb.Timestamp { +func (x *SystemTimestamps) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -167,8 +167,8 @@ func file_google_cloud_datacatalog_v1_timestamps_proto_rawDescGZIP() []byte { var file_google_cloud_datacatalog_v1_timestamps_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_datacatalog_v1_timestamps_proto_goTypes = []interface{}{ - (*SystemTimestamps)(nil), // 0: google.cloud.datacatalog.v1.SystemTimestamps - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*SystemTimestamps)(nil), // 0: google.cloud.datacatalog.v1.SystemTimestamps + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_datacatalog_v1_timestamps_proto_depIdxs = []int32{ 1, // 0: google.cloud.datacatalog.v1.SystemTimestamps.create_time:type_name -> google.protobuf.Timestamp diff --git a/datacatalog/apiv1/datacatalogpb/usage.pb.go b/datacatalog/apiv1/datacatalogpb/usage.pb.go index 8c9056a53118..dc014fc75dbf 100644 --- a/datacatalog/apiv1/datacatalogpb/usage.pb.go +++ b/datacatalog/apiv1/datacatalogpb/usage.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datacatalog/v1/usage.proto package datacatalogpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -131,7 +131,7 @@ type UsageSignal struct { unknownFields protoimpl.UnknownFields // The end timestamp of the duration of usage statistics. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Usage statistics over each of the predefined time ranges. // // Supported time ranges are `{"24H", "7D", "30D"}`. @@ -170,7 +170,7 @@ func (*UsageSignal) Descriptor() ([]byte, []int) { return file_google_cloud_datacatalog_v1_usage_proto_rawDescGZIP(), []int{1} } -func (x *UsageSignal) GetUpdateTime() *timestamppb.Timestamp { +func (x *UsageSignal) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -258,10 +258,10 @@ func file_google_cloud_datacatalog_v1_usage_proto_rawDescGZIP() []byte { var file_google_cloud_datacatalog_v1_usage_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_datacatalog_v1_usage_proto_goTypes = []interface{}{ - (*UsageStats)(nil), // 0: google.cloud.datacatalog.v1.UsageStats - (*UsageSignal)(nil), // 1: google.cloud.datacatalog.v1.UsageSignal - nil, // 2: google.cloud.datacatalog.v1.UsageSignal.UsageWithinTimeRangeEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*UsageStats)(nil), // 0: google.cloud.datacatalog.v1.UsageStats + (*UsageSignal)(nil), // 1: google.cloud.datacatalog.v1.UsageSignal + nil, // 2: google.cloud.datacatalog.v1.UsageSignal.UsageWithinTimeRangeEntry + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_datacatalog_v1_usage_proto_depIdxs = []int32{ 3, // 0: google.cloud.datacatalog.v1.UsageSignal.update_time:type_name -> google.protobuf.Timestamp diff --git a/datafusion/apiv1/datafusionpb/datafusion.pb.go b/datafusion/apiv1/datafusionpb/datafusion.pb.go index 0eb5a8ac1f8c..c43b9412bc34 100644 --- a/datafusion/apiv1/datafusionpb/datafusion.pb.go +++ b/datafusion/apiv1/datafusionpb/datafusion.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datafusion/v1/datafusion.proto package datafusionpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -703,9 +703,9 @@ type Instance struct { // Data Fusion instance. Options map[string]string `protobuf:"bytes,9,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. The time the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the instance was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The current state of this Data Fusion instance. State Instance_State `protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.datafusion.v1.Instance_State" json:"state,omitempty"` // Output only. Additional information about the current state of this Data @@ -847,14 +847,14 @@ func (x *Instance) GetOptions() map[string]string { return nil } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Instance) GetUpdateTime() *timestamppb.Timestamp { +func (x *Instance) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1463,7 +1463,7 @@ type UpdateInstanceRequest struct { // A field will be overwritten if it is in the mask. // If the user does not provide a mask, all the supported fields (labels, // options, and version currently) will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateInstanceRequest) Reset() { @@ -1505,7 +1505,7 @@ func (x *UpdateInstanceRequest) GetInstance() *Instance { return nil } -func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1569,9 +1569,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the verb executed by the operation. @@ -1624,14 +1624,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_datafusion_v1_datafusion_proto_rawDescGZIP(), []int{14} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2158,8 +2158,8 @@ var file_google_cloud_datafusion_v1_datafusion_proto_goTypes = []interface{}{ nil, // 21: google.cloud.datafusion.v1.Instance.LabelsEntry nil, // 22: google.cloud.datafusion.v1.Instance.OptionsEntry nil, // 23: google.cloud.datafusion.v1.OperationMetadata.AdditionalStatusEntry - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 25: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 26: google.longrunning.Operation } var file_google_cloud_datafusion_v1_datafusion_proto_depIdxs = []int32{ diff --git a/datafusion/go.mod b/datafusion/go.mod index 8f95be2b50ba..a926d04cef21 100644 --- a/datafusion/go.mod +++ b/datafusion/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/dataplex/apiv1/dataplexpb/analyze.pb.go b/dataplex/apiv1/dataplexpb/analyze.pb.go index b6fc17c72d85..0ef7ff3a6f3d 100644 --- a/dataplex/apiv1/dataplexpb/analyze.pb.go +++ b/dataplex/apiv1/dataplexpb/analyze.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/analyze.proto package dataplexpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -152,9 +152,9 @@ type Environment struct { // different if the environment is deleted and re-created with the same name. Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. Environment creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the environment was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User defined labels for the environment. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. Description of the environment. @@ -224,14 +224,14 @@ func (x *Environment) GetUid() string { return "" } -func (x *Environment) GetCreateTime() *timestamppb.Timestamp { +func (x *Environment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Environment) GetUpdateTime() *timestamppb.Timestamp { +func (x *Environment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -304,9 +304,9 @@ type Content struct { // Limited to alphanumerics, hyphens, underscores, dots and slashes. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Output only. Content creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the content was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User defined labels for the content. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. Description of the content. @@ -377,14 +377,14 @@ func (x *Content) GetPath() string { return "" } -func (x *Content) GetCreateTime() *timestamppb.Timestamp { +func (x *Content) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Content) GetUpdateTime() *timestamppb.Timestamp { +func (x *Content) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -481,8 +481,8 @@ type Session struct { // Output only. Email of user running the session. UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Output only. Session start time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - State State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.dataplex.v1.State" json:"state,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + State State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.dataplex.v1.State" json:"state,omitempty"` } func (x *Session) Reset() { @@ -531,7 +531,7 @@ func (x *Session) GetUserId() string { return "" } -func (x *Session) GetCreateTime() *timestamppb.Timestamp { +func (x *Session) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -654,7 +654,7 @@ type Environment_SessionSpec struct { // Optional. The idle time configuration of the session. The session will be // auto-terminated at the end of this period. - MaxIdleDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=max_idle_duration,json=maxIdleDuration,proto3" json:"max_idle_duration,omitempty"` + MaxIdleDuration *duration.Duration `protobuf:"bytes,1,opt,name=max_idle_duration,json=maxIdleDuration,proto3" json:"max_idle_duration,omitempty"` // Optional. If True, this causes sessions to be pre-created and available for faster // startup to enable interactive exploration use-cases. This defaults to // False to avoid additional billed charges. @@ -695,7 +695,7 @@ func (*Environment_SessionSpec) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_analyze_proto_rawDescGZIP(), []int{0, 1} } -func (x *Environment_SessionSpec) GetMaxIdleDuration() *durationpb.Duration { +func (x *Environment_SessionSpec) GetMaxIdleDuration() *duration.Duration { if x != nil { return x.MaxIdleDuration } @@ -1335,13 +1335,13 @@ var file_google_cloud_dataplex_v1_analyze_proto_goTypes = []interface{}{ nil, // 9: google.cloud.dataplex.v1.Environment.LabelsEntry (*Environment_InfrastructureSpec_ComputeResources)(nil), // 10: google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources (*Environment_InfrastructureSpec_OsImageRuntime)(nil), // 11: google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime - nil, // 12: google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntry - (*Content_SqlScript)(nil), // 13: google.cloud.dataplex.v1.Content.SqlScript - (*Content_Notebook)(nil), // 14: google.cloud.dataplex.v1.Content.Notebook - nil, // 15: google.cloud.dataplex.v1.Content.LabelsEntry - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (State)(0), // 17: google.cloud.dataplex.v1.State - (*durationpb.Duration)(nil), // 18: google.protobuf.Duration + nil, // 12: google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntry + (*Content_SqlScript)(nil), // 13: google.cloud.dataplex.v1.Content.SqlScript + (*Content_Notebook)(nil), // 14: google.cloud.dataplex.v1.Content.Notebook + nil, // 15: google.cloud.dataplex.v1.Content.LabelsEntry + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp + (State)(0), // 17: google.cloud.dataplex.v1.State + (*duration.Duration)(nil), // 18: google.protobuf.Duration } var file_google_cloud_dataplex_v1_analyze_proto_depIdxs = []int32{ 16, // 0: google.cloud.dataplex.v1.Environment.create_time:type_name -> google.protobuf.Timestamp diff --git a/dataplex/apiv1/dataplexpb/content.pb.go b/dataplex/apiv1/dataplexpb/content.pb.go index f1fd614c5f96..5d42784bbeee 100644 --- a/dataplex/apiv1/dataplexpb/content.pb.go +++ b/dataplex/apiv1/dataplexpb/content.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/content.proto package dataplexpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -174,7 +174,7 @@ type UpdateContentRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Content *Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` @@ -215,7 +215,7 @@ func (*UpdateContentRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_content_proto_rawDescGZIP(), []int{1} } -func (x *UpdateContentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateContentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -746,11 +746,11 @@ var file_google_cloud_dataplex_v1_content_proto_goTypes = []interface{}{ (*ListContentResponse)(nil), // 5: google.cloud.dataplex.v1.ListContentResponse (*GetContentRequest)(nil), // 6: google.cloud.dataplex.v1.GetContentRequest (*Content)(nil), // 7: google.cloud.dataplex.v1.Content - (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 8: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 9: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 10: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 11: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*empty.Empty)(nil), // 12: google.protobuf.Empty (*v1.Policy)(nil), // 13: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 14: google.iam.v1.TestIamPermissionsResponse } @@ -901,7 +901,7 @@ type ContentServiceClient interface { // Update a content. Only supports full resource update. UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...grpc.CallOption) (*Content, error) // Delete a content. - DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Get a content resource. GetContent(ctx context.Context, in *GetContentRequest, opts ...grpc.CallOption) (*Content, error) // Gets the access control policy for a contentitem resource. A `NOT_FOUND` @@ -958,8 +958,8 @@ func (c *contentServiceClient) UpdateContent(ctx context.Context, in *UpdateCont return out, nil } -func (c *contentServiceClient) DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contentServiceClient) DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataplex.v1.ContentService/DeleteContent", in, out, opts...) if err != nil { return nil, err @@ -1019,7 +1019,7 @@ type ContentServiceServer interface { // Update a content. Only supports full resource update. UpdateContent(context.Context, *UpdateContentRequest) (*Content, error) // Delete a content. - DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error) + DeleteContent(context.Context, *DeleteContentRequest) (*empty.Empty, error) // Get a content resource. GetContent(context.Context, *GetContentRequest) (*Content, error) // Gets the access control policy for a contentitem resource. A `NOT_FOUND` @@ -1060,7 +1060,7 @@ func (*UnimplementedContentServiceServer) CreateContent(context.Context, *Create func (*UnimplementedContentServiceServer) UpdateContent(context.Context, *UpdateContentRequest) (*Content, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateContent not implemented") } -func (*UnimplementedContentServiceServer) DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error) { +func (*UnimplementedContentServiceServer) DeleteContent(context.Context, *DeleteContentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteContent not implemented") } func (*UnimplementedContentServiceServer) GetContent(context.Context, *GetContentRequest) (*Content, error) { diff --git a/dataplex/apiv1/dataplexpb/logs.pb.go b/dataplex/apiv1/dataplexpb/logs.pb.go index a50a71f6eefa..ebdccc4989ac 100644 --- a/dataplex/apiv1/dataplexpb/logs.pb.go +++ b/dataplex/apiv1/dataplexpb/logs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/logs.proto package dataplexpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -624,9 +624,9 @@ type JobEvent struct { // The unique id identifying the job. JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // The time when the job started running. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The time when the job ended running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The job state on completion. State JobEvent_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.dataplex.v1.JobEvent_State" json:"state,omitempty"` // The number of retries. @@ -685,14 +685,14 @@ func (x *JobEvent) GetJobId() string { return "" } -func (x *JobEvent) GetStartTime() *timestamppb.Timestamp { +func (x *JobEvent) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *JobEvent) GetEndTime() *timestamppb.Timestamp { +func (x *JobEvent) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -762,7 +762,7 @@ type SessionEvent struct { // and was pre-created before being assigned to a user. FastStartupEnabled bool `protobuf:"varint,7,opt,name=fast_startup_enabled,json=fastStartupEnabled,proto3" json:"fast_startup_enabled,omitempty"` // The idle duration of a warm pooled session before it is assigned to user. - UnassignedDuration *durationpb.Duration `protobuf:"bytes,8,opt,name=unassigned_duration,json=unassignedDuration,proto3" json:"unassigned_duration,omitempty"` + UnassignedDuration *duration.Duration `protobuf:"bytes,8,opt,name=unassigned_duration,json=unassignedDuration,proto3" json:"unassigned_duration,omitempty"` } func (x *SessionEvent) Reset() { @@ -853,7 +853,7 @@ func (x *SessionEvent) GetFastStartupEnabled() bool { return false } -func (x *SessionEvent) GetUnassignedDuration() *durationpb.Duration { +func (x *SessionEvent) GetUnassignedDuration() *duration.Duration { if x != nil { return x.UnassignedDuration } @@ -1124,7 +1124,7 @@ type SessionEvent_QueryDetail struct { // Query Execution engine. Engine SessionEvent_QueryDetail_Engine `protobuf:"varint,3,opt,name=engine,proto3,enum=google.cloud.dataplex.v1.SessionEvent_QueryDetail_Engine" json:"engine,omitempty"` // Time taken for execution of the query. - Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // The size of results the query produced. ResultSizeBytes int64 `protobuf:"varint,5,opt,name=result_size_bytes,json=resultSizeBytes,proto3" json:"result_size_bytes,omitempty"` // The data processed by the query. @@ -1184,7 +1184,7 @@ func (x *SessionEvent_QueryDetail) GetEngine() SessionEvent_QueryDetail_Engine { return SessionEvent_QueryDetail_ENGINE_UNSPECIFIED } -func (x *SessionEvent_QueryDetail) GetDuration() *durationpb.Duration { +func (x *SessionEvent_QueryDetail) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1438,8 +1438,8 @@ var file_google_cloud_dataplex_v1_logs_proto_goTypes = []interface{}{ (*DiscoveryEvent_ActionDetails)(nil), // 13: google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails nil, // 14: google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry (*SessionEvent_QueryDetail)(nil), // 15: google.cloud.dataplex.v1.SessionEvent.QueryDetail - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 17: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp + (*duration.Duration)(nil), // 17: google.protobuf.Duration } var file_google_cloud_dataplex_v1_logs_proto_depIdxs = []int32{ 0, // 0: google.cloud.dataplex.v1.DiscoveryEvent.type:type_name -> google.cloud.dataplex.v1.DiscoveryEvent.EventType diff --git a/dataplex/apiv1/dataplexpb/metadata.pb.go b/dataplex/apiv1/dataplexpb/metadata.pb.go index 4a0a12532afc..a840b1b15296 100644 --- a/dataplex/apiv1/dataplexpb/metadata.pb.go +++ b/dataplex/apiv1/dataplexpb/metadata.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/metadata.proto package dataplexpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1388,9 +1388,9 @@ type Entity struct { // 1024 characters. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The time when the entity was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the entity was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. A user-provided entity ID. It is mutable, and will be used as the // published table name. Specifying a new ID in an update entity // request will override the existing value. @@ -1484,14 +1484,14 @@ func (x *Entity) GetDescription() string { return "" } -func (x *Entity) GetCreateTime() *timestamppb.Timestamp { +func (x *Entity) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Entity) GetUpdateTime() *timestamppb.Timestamp { +func (x *Entity) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2810,8 +2810,8 @@ var file_google_cloud_dataplex_v1_metadata_proto_goTypes = []interface{}{ (*Schema_PartitionField)(nil), // 27: google.cloud.dataplex.v1.Schema.PartitionField (*StorageFormat_CsvOptions)(nil), // 28: google.cloud.dataplex.v1.StorageFormat.CsvOptions (*StorageFormat_JsonOptions)(nil), // 29: google.cloud.dataplex.v1.StorageFormat.JsonOptions - (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 31: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 30: google.protobuf.Timestamp + (*empty.Empty)(nil), // 31: google.protobuf.Empty } var file_google_cloud_dataplex_v1_metadata_proto_depIdxs = []int32{ 20, // 0: google.cloud.dataplex.v1.CreateEntityRequest.entity:type_name -> google.cloud.dataplex.v1.Entity @@ -3167,7 +3167,7 @@ type MetadataServiceClient interface { // Update a metadata entity. Only supports full resource update. UpdateEntity(ctx context.Context, in *UpdateEntityRequest, opts ...grpc.CallOption) (*Entity, error) // Delete a metadata entity. - DeleteEntity(ctx context.Context, in *DeleteEntityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEntity(ctx context.Context, in *DeleteEntityRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Get a metadata entity. GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*Entity, error) // List metadata entities in a zone. @@ -3175,7 +3175,7 @@ type MetadataServiceClient interface { // Create a metadata partition. CreatePartition(ctx context.Context, in *CreatePartitionRequest, opts ...grpc.CallOption) (*Partition, error) // Delete a metadata partition. - DeletePartition(ctx context.Context, in *DeletePartitionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePartition(ctx context.Context, in *DeletePartitionRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Get a metadata partition of an entity. GetPartition(ctx context.Context, in *GetPartitionRequest, opts ...grpc.CallOption) (*Partition, error) // List metadata partitions of an entity. @@ -3208,8 +3208,8 @@ func (c *metadataServiceClient) UpdateEntity(ctx context.Context, in *UpdateEnti return out, nil } -func (c *metadataServiceClient) DeleteEntity(ctx context.Context, in *DeleteEntityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *metadataServiceClient) DeleteEntity(ctx context.Context, in *DeleteEntityRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataplex.v1.MetadataService/DeleteEntity", in, out, opts...) if err != nil { return nil, err @@ -3244,8 +3244,8 @@ func (c *metadataServiceClient) CreatePartition(ctx context.Context, in *CreateP return out, nil } -func (c *metadataServiceClient) DeletePartition(ctx context.Context, in *DeletePartitionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *metadataServiceClient) DeletePartition(ctx context.Context, in *DeletePartitionRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataplex.v1.MetadataService/DeletePartition", in, out, opts...) if err != nil { return nil, err @@ -3278,7 +3278,7 @@ type MetadataServiceServer interface { // Update a metadata entity. Only supports full resource update. UpdateEntity(context.Context, *UpdateEntityRequest) (*Entity, error) // Delete a metadata entity. - DeleteEntity(context.Context, *DeleteEntityRequest) (*emptypb.Empty, error) + DeleteEntity(context.Context, *DeleteEntityRequest) (*empty.Empty, error) // Get a metadata entity. GetEntity(context.Context, *GetEntityRequest) (*Entity, error) // List metadata entities in a zone. @@ -3286,7 +3286,7 @@ type MetadataServiceServer interface { // Create a metadata partition. CreatePartition(context.Context, *CreatePartitionRequest) (*Partition, error) // Delete a metadata partition. - DeletePartition(context.Context, *DeletePartitionRequest) (*emptypb.Empty, error) + DeletePartition(context.Context, *DeletePartitionRequest) (*empty.Empty, error) // Get a metadata partition of an entity. GetPartition(context.Context, *GetPartitionRequest) (*Partition, error) // List metadata partitions of an entity. @@ -3303,7 +3303,7 @@ func (*UnimplementedMetadataServiceServer) CreateEntity(context.Context, *Create func (*UnimplementedMetadataServiceServer) UpdateEntity(context.Context, *UpdateEntityRequest) (*Entity, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEntity not implemented") } -func (*UnimplementedMetadataServiceServer) DeleteEntity(context.Context, *DeleteEntityRequest) (*emptypb.Empty, error) { +func (*UnimplementedMetadataServiceServer) DeleteEntity(context.Context, *DeleteEntityRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEntity not implemented") } func (*UnimplementedMetadataServiceServer) GetEntity(context.Context, *GetEntityRequest) (*Entity, error) { @@ -3315,7 +3315,7 @@ func (*UnimplementedMetadataServiceServer) ListEntities(context.Context, *ListEn func (*UnimplementedMetadataServiceServer) CreatePartition(context.Context, *CreatePartitionRequest) (*Partition, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePartition not implemented") } -func (*UnimplementedMetadataServiceServer) DeletePartition(context.Context, *DeletePartitionRequest) (*emptypb.Empty, error) { +func (*UnimplementedMetadataServiceServer) DeletePartition(context.Context, *DeletePartitionRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePartition not implemented") } func (*UnimplementedMetadataServiceServer) GetPartition(context.Context, *GetPartitionRequest) (*Partition, error) { diff --git a/dataplex/apiv1/dataplexpb/resources.pb.go b/dataplex/apiv1/dataplexpb/resources.pb.go index 3bcf73476f9c..4bcf0c79b63f 100644 --- a/dataplex/apiv1/dataplexpb/resources.pb.go +++ b/dataplex/apiv1/dataplexpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/resources.proto package dataplexpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -683,9 +683,9 @@ type Lake struct { // different if the lake is deleted and re-created with the same name. Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time when the lake was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the lake was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User-defined labels for the lake. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. Description of the lake. @@ -757,14 +757,14 @@ func (x *Lake) GetUid() string { return "" } -func (x *Lake) GetCreateTime() *timestamppb.Timestamp { +func (x *Lake) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Lake) GetUpdateTime() *timestamppb.Timestamp { +func (x *Lake) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -827,7 +827,7 @@ type AssetStatus struct { unknownFields protoimpl.UnknownFields // Last update time of the status. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Number of active assets. ActiveAssets int32 `protobuf:"varint,2,opt,name=active_assets,json=activeAssets,proto3" json:"active_assets,omitempty"` // Number of assets that are in process of updating the security policy on @@ -867,7 +867,7 @@ func (*AssetStatus) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_resources_proto_rawDescGZIP(), []int{1} } -func (x *AssetStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *AssetStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -906,9 +906,9 @@ type Zone struct { // different if the zone is deleted and re-created with the same name. Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time when the zone was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the zone was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User defined labels for the zone. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. Description of the zone. @@ -979,14 +979,14 @@ func (x *Zone) GetUid() string { return "" } -func (x *Zone) GetCreateTime() *timestamppb.Timestamp { +func (x *Zone) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Zone) GetUpdateTime() *timestamppb.Timestamp { +func (x *Zone) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1053,7 +1053,7 @@ type Action struct { // Detailed description of the issue requiring action. Issue string `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"` // The time that the issue was detected. - DetectTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=detect_time,json=detectTime,proto3" json:"detect_time,omitempty"` + DetectTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=detect_time,json=detectTime,proto3" json:"detect_time,omitempty"` // Output only. The relative resource name of the action, of the form: // `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` // `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` @@ -1135,7 +1135,7 @@ func (x *Action) GetIssue() string { return "" } -func (x *Action) GetDetectTime() *timestamppb.Timestamp { +func (x *Action) GetDetectTime() *timestamp.Timestamp { if x != nil { return x.DetectTime } @@ -1318,9 +1318,9 @@ type Asset struct { // different if the asset is deleted and re-created with the same name. Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time when the asset was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the asset was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User defined labels for the asset. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. Description of the asset. @@ -1395,14 +1395,14 @@ func (x *Asset) GetUid() string { return "" } -func (x *Asset) GetCreateTime() *timestamppb.Timestamp { +func (x *Asset) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Asset) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1528,7 +1528,7 @@ type Lake_MetastoreStatus struct { // Additional information about the current status. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Last update time of the metastore status of the lake. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The URI of the endpoint used to access the Metastore service. Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } @@ -1579,7 +1579,7 @@ func (x *Lake_MetastoreStatus) GetMessage() string { return "" } -func (x *Lake_MetastoreStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *Lake_MetastoreStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2341,7 +2341,7 @@ type Asset_SecurityStatus struct { // Additional information about the current state. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Last update time of the status. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Asset_SecurityStatus) Reset() { @@ -2390,7 +2390,7 @@ func (x *Asset_SecurityStatus) GetMessage() string { return "" } -func (x *Asset_SecurityStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset_SecurityStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2601,7 +2601,7 @@ type Asset_ResourceStatus struct { // Additional information about the current state. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Last update time of the status. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Asset_ResourceStatus) Reset() { @@ -2650,7 +2650,7 @@ func (x *Asset_ResourceStatus) GetMessage() string { return "" } -func (x *Asset_ResourceStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset_ResourceStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2668,13 +2668,13 @@ type Asset_DiscoveryStatus struct { // Additional information about the current state. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Last update time of the status. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The start time of the last discovery run. - LastRunTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"` + LastRunTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"` // Data Stats of the asset reported by discovery. Stats *Asset_DiscoveryStatus_Stats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"` // The duration of the last discovery run. - LastRunDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=last_run_duration,json=lastRunDuration,proto3" json:"last_run_duration,omitempty"` + LastRunDuration *duration.Duration `protobuf:"bytes,7,opt,name=last_run_duration,json=lastRunDuration,proto3" json:"last_run_duration,omitempty"` } func (x *Asset_DiscoveryStatus) Reset() { @@ -2723,14 +2723,14 @@ func (x *Asset_DiscoveryStatus) GetMessage() string { return "" } -func (x *Asset_DiscoveryStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset_DiscoveryStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Asset_DiscoveryStatus) GetLastRunTime() *timestamppb.Timestamp { +func (x *Asset_DiscoveryStatus) GetLastRunTime() *timestamp.Timestamp { if x != nil { return x.LastRunTime } @@ -2744,7 +2744,7 @@ func (x *Asset_DiscoveryStatus) GetStats() *Asset_DiscoveryStatus_Stats { return nil } -func (x *Asset_DiscoveryStatus) GetLastRunDuration() *durationpb.Duration { +func (x *Asset_DiscoveryStatus) GetLastRunDuration() *duration.Duration { if x != nil { return x.LastRunDuration } @@ -3607,8 +3607,8 @@ var file_google_cloud_dataplex_v1_resources_proto_goTypes = []interface{}{ (*Asset_DiscoverySpec_CsvOptions)(nil), // 38: google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions (*Asset_DiscoverySpec_JsonOptions)(nil), // 39: google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions (*Asset_DiscoveryStatus_Stats)(nil), // 40: google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats - (*timestamppb.Timestamp)(nil), // 41: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 42: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 41: google.protobuf.Timestamp + (*duration.Duration)(nil), // 42: google.protobuf.Duration } var file_google_cloud_dataplex_v1_resources_proto_depIdxs = []int32{ 41, // 0: google.cloud.dataplex.v1.Lake.create_time:type_name -> google.protobuf.Timestamp diff --git a/dataplex/apiv1/dataplexpb/service.pb.go b/dataplex/apiv1/dataplexpb/service.pb.go index 9bf8be347385..7698bbffa355 100644 --- a/dataplex/apiv1/dataplexpb/service.pb.go +++ b/dataplex/apiv1/dataplexpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/service.proto package dataplexpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -137,7 +137,7 @@ type UpdateLakeRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Lake *Lake `protobuf:"bytes,2,opt,name=lake,proto3" json:"lake,omitempty"` @@ -178,7 +178,7 @@ func (*UpdateLakeRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{1} } -func (x *UpdateLakeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateLakeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -683,7 +683,7 @@ type UpdateZoneRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Zone *Zone `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"` @@ -724,7 +724,7 @@ func (*UpdateZoneRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{9} } -func (x *UpdateZoneRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateZoneRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1159,7 +1159,7 @@ type UpdateAssetRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Asset *Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` @@ -1200,7 +1200,7 @@ func (*UpdateAssetRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{16} } -func (x *UpdateAssetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAssetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1551,9 +1551,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1601,14 +1601,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{22} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1735,7 +1735,7 @@ type UpdateTaskRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Task *Task `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` @@ -1776,7 +1776,7 @@ func (*UpdateTaskRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{24} } -func (x *UpdateTaskRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTaskRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2377,7 +2377,7 @@ type UpdateEnvironmentRequest struct { unknownFields protoimpl.UnknownFields // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in `update_mask` are updated. Environment *Environment `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"` @@ -2418,7 +2418,7 @@ func (*UpdateEnvironmentRequest) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_service_proto_rawDescGZIP(), []int{34} } -func (x *UpdateEnvironmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEnvironmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3725,17 +3725,17 @@ var file_google_cloud_dataplex_v1_service_proto_goTypes = []interface{}{ (*ListSessionsRequest)(nil), // 39: google.cloud.dataplex.v1.ListSessionsRequest (*ListSessionsResponse)(nil), // 40: google.cloud.dataplex.v1.ListSessionsResponse (*Lake)(nil), // 41: google.cloud.dataplex.v1.Lake - (*fieldmaskpb.FieldMask)(nil), // 42: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 42: google.protobuf.FieldMask (*Action)(nil), // 43: google.cloud.dataplex.v1.Action (*Zone)(nil), // 44: google.cloud.dataplex.v1.Zone (*Asset)(nil), // 45: google.cloud.dataplex.v1.Asset - (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 46: google.protobuf.Timestamp (*Task)(nil), // 47: google.cloud.dataplex.v1.Task (*Job)(nil), // 48: google.cloud.dataplex.v1.Job (*Environment)(nil), // 49: google.cloud.dataplex.v1.Environment (*Session)(nil), // 50: google.cloud.dataplex.v1.Session (*longrunning.Operation)(nil), // 51: google.longrunning.Operation - (*emptypb.Empty)(nil), // 52: google.protobuf.Empty + (*empty.Empty)(nil), // 52: google.protobuf.Empty } var file_google_cloud_dataplex_v1_service_proto_depIdxs = []int32{ 41, // 0: google.cloud.dataplex.v1.CreateLakeRequest.lake:type_name -> google.cloud.dataplex.v1.Lake @@ -4422,7 +4422,7 @@ type DataplexServiceClient interface { // Get job resource. GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) // Cancel jobs running for the task resource. - CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Create an environment resource. CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Update the environment resource. @@ -4671,8 +4671,8 @@ func (c *dataplexServiceClient) GetJob(ctx context.Context, in *GetJobRequest, o return out, nil } -func (c *dataplexServiceClient) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dataplexServiceClient) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataplex.v1.DataplexService/CancelJob", in, out, opts...) if err != nil { return nil, err @@ -4790,7 +4790,7 @@ type DataplexServiceServer interface { // Get job resource. GetJob(context.Context, *GetJobRequest) (*Job, error) // Cancel jobs running for the task resource. - CancelJob(context.Context, *CancelJobRequest) (*emptypb.Empty, error) + CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error) // Create an environment resource. CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunning.Operation, error) // Update the environment resource. @@ -4885,7 +4885,7 @@ func (*UnimplementedDataplexServiceServer) ListJobs(context.Context, *ListJobsRe func (*UnimplementedDataplexServiceServer) GetJob(context.Context, *GetJobRequest) (*Job, error) { return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") } -func (*UnimplementedDataplexServiceServer) CancelJob(context.Context, *CancelJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedDataplexServiceServer) CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelJob not implemented") } func (*UnimplementedDataplexServiceServer) CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunning.Operation, error) { diff --git a/dataplex/apiv1/dataplexpb/tasks.pb.go b/dataplex/apiv1/dataplexpb/tasks.pb.go index c884f5251fec..f6afd4dc582d 100644 --- a/dataplex/apiv1/dataplexpb/tasks.pb.go +++ b/dataplex/apiv1/dataplexpb/tasks.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataplex/v1/tasks.proto package dataplexpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -221,9 +221,9 @@ type Task struct { // different if the task is deleted and re-created with the same name. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time when the task was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the task was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Description of the task. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Optional. User friendly display name. @@ -293,14 +293,14 @@ func (x *Task) GetUid() string { return "" } -func (x *Task) GetCreateTime() *timestamppb.Timestamp { +func (x *Task) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Task) GetUpdateTime() *timestamppb.Timestamp { +func (x *Task) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -407,9 +407,9 @@ type Job struct { // Output only. System generated globally unique ID for the job. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time when the job was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time when the job ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Execution state for the job. State Job_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.dataplex.v1.Job_State" json:"state,omitempty"` // Output only. The number of times the job has been retried (excluding the @@ -469,14 +469,14 @@ func (x *Job) GetUid() string { return "" } -func (x *Job) GetStartTime() *timestamppb.Timestamp { +func (x *Job) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Job) GetEndTime() *timestamppb.Timestamp { +func (x *Job) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -662,7 +662,7 @@ type Task_TriggerSpec struct { // Optional. The first run of the task will be after this time. // If not specified, the task will run shortly after being submitted if // ON_DEMAND and based on the schedule if RECURRING. - StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Optional. Prevent the task from executing. // This does not cancel already running tasks. It is intended to temporarily // disable RECURRING tasks. @@ -717,7 +717,7 @@ func (x *Task_TriggerSpec) GetType() Task_TriggerSpec_Type { return Task_TriggerSpec_TYPE_UNSPECIFIED } -func (x *Task_TriggerSpec) GetStartTime() *timestamppb.Timestamp { +func (x *Task_TriggerSpec) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -798,7 +798,7 @@ type Task_ExecutionSpec struct { // [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project. Project string `protobuf:"bytes,7,opt,name=project,proto3" json:"project,omitempty"` // Optional. The maximum duration after which the job execution is expired. - MaxJobExecutionLifetime *durationpb.Duration `protobuf:"bytes,8,opt,name=max_job_execution_lifetime,json=maxJobExecutionLifetime,proto3" json:"max_job_execution_lifetime,omitempty"` + MaxJobExecutionLifetime *duration.Duration `protobuf:"bytes,8,opt,name=max_job_execution_lifetime,json=maxJobExecutionLifetime,proto3" json:"max_job_execution_lifetime,omitempty"` // Optional. The Cloud KMS key to use for encryption, of the form: // `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. KmsKey string `protobuf:"bytes,9,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"` @@ -857,7 +857,7 @@ func (x *Task_ExecutionSpec) GetProject() string { return "" } -func (x *Task_ExecutionSpec) GetMaxJobExecutionLifetime() *durationpb.Duration { +func (x *Task_ExecutionSpec) GetMaxJobExecutionLifetime() *duration.Duration { if x != nil { return x.MaxJobExecutionLifetime } @@ -1136,7 +1136,7 @@ type Task_ExecutionStatus struct { unknownFields protoimpl.UnknownFields // Output only. Last update time of the status. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. latest job execution LatestJob *Job `protobuf:"bytes,9,opt,name=latest_job,json=latestJob,proto3" json:"latest_job,omitempty"` } @@ -1173,7 +1173,7 @@ func (*Task_ExecutionStatus) Descriptor() ([]byte, []int) { return file_google_cloud_dataplex_v1_tasks_proto_rawDescGZIP(), []int{0, 5} } -func (x *Task_ExecutionStatus) GetUpdateTime() *timestamppb.Timestamp { +func (x *Task_ExecutionStatus) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1752,11 +1752,11 @@ var file_google_cloud_dataplex_v1_tasks_proto_goTypes = []interface{}{ (*Task_InfrastructureSpec_BatchComputeResources)(nil), // 12: google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources (*Task_InfrastructureSpec_ContainerImageRuntime)(nil), // 13: google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime (*Task_InfrastructureSpec_VpcNetwork)(nil), // 14: google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork - nil, // 15: google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.PropertiesEntry - nil, // 16: google.cloud.dataplex.v1.Task.ExecutionSpec.ArgsEntry - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp - (State)(0), // 18: google.cloud.dataplex.v1.State - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration + nil, // 15: google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.PropertiesEntry + nil, // 16: google.cloud.dataplex.v1.Task.ExecutionSpec.ArgsEntry + (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp + (State)(0), // 18: google.cloud.dataplex.v1.State + (*duration.Duration)(nil), // 19: google.protobuf.Duration } var file_google_cloud_dataplex_v1_tasks_proto_depIdxs = []int32{ 17, // 0: google.cloud.dataplex.v1.Task.create_time:type_name -> google.protobuf.Timestamp diff --git a/dataplex/go.mod b/dataplex/go.mod index dae74b9f8d33..8f285ea60b49 100644 --- a/dataplex/go.mod +++ b/dataplex/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/dataproc/apiv1/dataprocpb/autoscaling_policies.pb.go b/dataproc/apiv1/dataprocpb/autoscaling_policies.pb.go index 2f23e13bcc72..4ed57c829e8b 100644 --- a/dataproc/apiv1/dataprocpb/autoscaling_policies.pb.go +++ b/dataproc/apiv1/dataprocpb/autoscaling_policies.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/autoscaling_policies.proto package dataprocpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -190,7 +190,7 @@ type BasicAutoscalingAlgorithm struct { // the update operation from the previous event has completed. // // Bounds: [2m, 1d]. Default: 2m. - CooldownPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=cooldown_period,json=cooldownPeriod,proto3" json:"cooldown_period,omitempty"` + CooldownPeriod *duration.Duration `protobuf:"bytes,2,opt,name=cooldown_period,json=cooldownPeriod,proto3" json:"cooldown_period,omitempty"` } func (x *BasicAutoscalingAlgorithm) Reset() { @@ -239,7 +239,7 @@ func (x *BasicAutoscalingAlgorithm) GetYarnConfig() *BasicYarnAutoscalingConfig return nil } -func (x *BasicAutoscalingAlgorithm) GetCooldownPeriod() *durationpb.Duration { +func (x *BasicAutoscalingAlgorithm) GetCooldownPeriod() *duration.Duration { if x != nil { return x.CooldownPeriod } @@ -269,7 +269,7 @@ type BasicYarnAutoscalingConfig struct { // downscaling operations. // // Bounds: [0s, 1d]. - GracefulDecommissionTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=graceful_decommission_timeout,json=gracefulDecommissionTimeout,proto3" json:"graceful_decommission_timeout,omitempty"` + GracefulDecommissionTimeout *duration.Duration `protobuf:"bytes,5,opt,name=graceful_decommission_timeout,json=gracefulDecommissionTimeout,proto3" json:"graceful_decommission_timeout,omitempty"` // Required. Fraction of average YARN pending memory in the last cooldown period // for which to add workers. A scale-up factor of 1.0 will result in scaling // up so that there is no pending memory remaining after the update (more @@ -342,7 +342,7 @@ func (*BasicYarnAutoscalingConfig) Descriptor() ([]byte, []int) { return file_google_cloud_dataproc_v1_autoscaling_policies_proto_rawDescGZIP(), []int{2} } -func (x *BasicYarnAutoscalingConfig) GetGracefulDecommissionTimeout() *durationpb.Duration { +func (x *BasicYarnAutoscalingConfig) GetGracefulDecommissionTimeout() *duration.Duration { if x != nil { return x.GracefulDecommissionTimeout } @@ -1137,8 +1137,8 @@ var file_google_cloud_dataproc_v1_autoscaling_policies_proto_goTypes = []interfa (*ListAutoscalingPoliciesRequest)(nil), // 8: google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest (*ListAutoscalingPoliciesResponse)(nil), // 9: google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse nil, // 10: google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntry - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*duration.Duration)(nil), // 11: google.protobuf.Duration + (*empty.Empty)(nil), // 12: google.protobuf.Empty } var file_google_cloud_dataproc_v1_autoscaling_policies_proto_depIdxs = []int32{ 1, // 0: google.cloud.dataproc.v1.AutoscalingPolicy.basic_algorithm:type_name -> google.cloud.dataproc.v1.BasicAutoscalingAlgorithm @@ -1346,7 +1346,7 @@ type AutoscalingPolicyServiceClient interface { ListAutoscalingPolicies(ctx context.Context, in *ListAutoscalingPoliciesRequest, opts ...grpc.CallOption) (*ListAutoscalingPoliciesResponse, error) // Deletes an autoscaling policy. It is an error to delete an autoscaling // policy that is in use by one or more clusters. - DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type autoscalingPolicyServiceClient struct { @@ -1393,8 +1393,8 @@ func (c *autoscalingPolicyServiceClient) ListAutoscalingPolicies(ctx context.Con return out, nil } -func (c *autoscalingPolicyServiceClient) DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *autoscalingPolicyServiceClient) DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy", in, out, opts...) if err != nil { return nil, err @@ -1417,7 +1417,7 @@ type AutoscalingPolicyServiceServer interface { ListAutoscalingPolicies(context.Context, *ListAutoscalingPoliciesRequest) (*ListAutoscalingPoliciesResponse, error) // Deletes an autoscaling policy. It is an error to delete an autoscaling // policy that is in use by one or more clusters. - DeleteAutoscalingPolicy(context.Context, *DeleteAutoscalingPolicyRequest) (*emptypb.Empty, error) + DeleteAutoscalingPolicy(context.Context, *DeleteAutoscalingPolicyRequest) (*empty.Empty, error) } // UnimplementedAutoscalingPolicyServiceServer can be embedded to have forward compatible implementations. @@ -1436,7 +1436,7 @@ func (*UnimplementedAutoscalingPolicyServiceServer) GetAutoscalingPolicy(context func (*UnimplementedAutoscalingPolicyServiceServer) ListAutoscalingPolicies(context.Context, *ListAutoscalingPoliciesRequest) (*ListAutoscalingPoliciesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAutoscalingPolicies not implemented") } -func (*UnimplementedAutoscalingPolicyServiceServer) DeleteAutoscalingPolicy(context.Context, *DeleteAutoscalingPolicyRequest) (*emptypb.Empty, error) { +func (*UnimplementedAutoscalingPolicyServiceServer) DeleteAutoscalingPolicy(context.Context, *DeleteAutoscalingPolicyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAutoscalingPolicy not implemented") } diff --git a/dataproc/apiv1/dataprocpb/batches.pb.go b/dataproc/apiv1/dataprocpb/batches.pb.go index a34121500bd6..050ca44d9364 100644 --- a/dataproc/apiv1/dataprocpb/batches.pb.go +++ b/dataproc/apiv1/dataprocpb/batches.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/batches.proto package dataprocpb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,8 +34,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -441,7 +441,7 @@ type Batch struct { // generates this value when it creates the batch. Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // Output only. The time when the batch was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The application/framework-specific portion of the batch configuration. // // Types that are assignable to BatchConfig: @@ -459,7 +459,7 @@ type Batch struct { // description if the state is `FAILED`. StateMessage string `protobuf:"bytes,10,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` // Output only. The time when the batch entered a current state. - StateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. The email address of the user who created the batch. Creator string `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"` // Optional. The labels to associate with this batch. @@ -526,7 +526,7 @@ func (x *Batch) GetUuid() string { return "" } -func (x *Batch) GetCreateTime() *timestamppb.Timestamp { +func (x *Batch) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -589,7 +589,7 @@ func (x *Batch) GetStateMessage() string { return "" } -func (x *Batch) GetStateTime() *timestamppb.Timestamp { +func (x *Batch) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -1073,7 +1073,7 @@ type Batch_StateHistory struct { // Output only. Details about the state at this point in history. StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` // Output only. The time when the batch entered the historical state. - StateStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` + StateStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` } func (x *Batch_StateHistory) Reset() { @@ -1122,7 +1122,7 @@ func (x *Batch_StateHistory) GetStateMessage() string { return "" } -func (x *Batch_StateHistory) GetStateStartTime() *timestamppb.Timestamp { +func (x *Batch_StateHistory) GetStateStartTime() *timestamp.Timestamp { if x != nil { return x.StateStartTime } @@ -1441,12 +1441,12 @@ var file_google_cloud_dataproc_v1_batches_proto_goTypes = []interface{}{ (*Batch_StateHistory)(nil), // 11: google.cloud.dataproc.v1.Batch.StateHistory nil, // 12: google.cloud.dataproc.v1.Batch.LabelsEntry nil, // 13: google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntry - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp (*RuntimeInfo)(nil), // 15: google.cloud.dataproc.v1.RuntimeInfo (*RuntimeConfig)(nil), // 16: google.cloud.dataproc.v1.RuntimeConfig (*EnvironmentConfig)(nil), // 17: google.cloud.dataproc.v1.EnvironmentConfig (*longrunning.Operation)(nil), // 18: google.longrunning.Operation - (*emptypb.Empty)(nil), // 19: google.protobuf.Empty + (*empty.Empty)(nil), // 19: google.protobuf.Empty } var file_google_cloud_dataproc_v1_batches_proto_depIdxs = []int32{ 6, // 0: google.cloud.dataproc.v1.CreateBatchRequest.batch:type_name -> google.cloud.dataproc.v1.Batch @@ -1672,7 +1672,7 @@ type BatchControllerClient interface { ListBatches(ctx context.Context, in *ListBatchesRequest, opts ...grpc.CallOption) (*ListBatchesResponse, error) // Deletes the batch workload resource. If the batch is not in terminal state, // the delete fails and the response returns `FAILED_PRECONDITION`. - DeleteBatch(ctx context.Context, in *DeleteBatchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteBatch(ctx context.Context, in *DeleteBatchRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type batchControllerClient struct { @@ -1710,8 +1710,8 @@ func (c *batchControllerClient) ListBatches(ctx context.Context, in *ListBatches return out, nil } -func (c *batchControllerClient) DeleteBatch(ctx context.Context, in *DeleteBatchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *batchControllerClient) DeleteBatch(ctx context.Context, in *DeleteBatchRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.BatchController/DeleteBatch", in, out, opts...) if err != nil { return nil, err @@ -1729,7 +1729,7 @@ type BatchControllerServer interface { ListBatches(context.Context, *ListBatchesRequest) (*ListBatchesResponse, error) // Deletes the batch workload resource. If the batch is not in terminal state, // the delete fails and the response returns `FAILED_PRECONDITION`. - DeleteBatch(context.Context, *DeleteBatchRequest) (*emptypb.Empty, error) + DeleteBatch(context.Context, *DeleteBatchRequest) (*empty.Empty, error) } // UnimplementedBatchControllerServer can be embedded to have forward compatible implementations. @@ -1745,7 +1745,7 @@ func (*UnimplementedBatchControllerServer) GetBatch(context.Context, *GetBatchRe func (*UnimplementedBatchControllerServer) ListBatches(context.Context, *ListBatchesRequest) (*ListBatchesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListBatches not implemented") } -func (*UnimplementedBatchControllerServer) DeleteBatch(context.Context, *DeleteBatchRequest) (*emptypb.Empty, error) { +func (*UnimplementedBatchControllerServer) DeleteBatch(context.Context, *DeleteBatchRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBatch not implemented") } diff --git a/dataproc/apiv1/dataprocpb/clusters.pb.go b/dataproc/apiv1/dataprocpb/clusters.pb.go index 78c3f5b5aff6..9e3a45170824 100644 --- a/dataproc/apiv1/dataprocpb/clusters.pb.go +++ b/dataproc/apiv1/dataprocpb/clusters.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/clusters.proto package dataprocpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1940,7 +1940,7 @@ type NodeInitializationAction struct { // Cluster creation fails with an explanatory error message (the // name of the executable that caused the error and the exceeded timeout // period) if the executable is not completed at end of the timeout period. - ExecutionTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` + ExecutionTimeout *duration.Duration `protobuf:"bytes,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` } func (x *NodeInitializationAction) Reset() { @@ -1982,7 +1982,7 @@ func (x *NodeInitializationAction) GetExecutableFile() string { return "" } -func (x *NodeInitializationAction) GetExecutionTimeout() *durationpb.Duration { +func (x *NodeInitializationAction) GetExecutionTimeout() *duration.Duration { if x != nil { return x.ExecutionTimeout } @@ -2001,7 +2001,7 @@ type ClusterStatus struct { Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` // Output only. Time when this state was entered (see JSON representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - StateStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` + StateStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` // Output only. Additional state information that includes // status reported by the agent. Substate ClusterStatus_Substate `protobuf:"varint,4,opt,name=substate,proto3,enum=google.cloud.dataproc.v1.ClusterStatus_Substate" json:"substate,omitempty"` @@ -2053,7 +2053,7 @@ func (x *ClusterStatus) GetDetail() string { return "" } -func (x *ClusterStatus) GetStateStartTime() *timestamppb.Timestamp { +func (x *ClusterStatus) GetStateStartTime() *timestamp.Timestamp { if x != nil { return x.StateStartTime } @@ -2474,7 +2474,7 @@ type LifecycleConfig struct { // deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON // representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - IdleDeleteTtl *durationpb.Duration `protobuf:"bytes,1,opt,name=idle_delete_ttl,json=idleDeleteTtl,proto3" json:"idle_delete_ttl,omitempty"` + IdleDeleteTtl *duration.Duration `protobuf:"bytes,1,opt,name=idle_delete_ttl,json=idleDeleteTtl,proto3" json:"idle_delete_ttl,omitempty"` // Either the exact time the cluster should be deleted at or // the cluster maximum age. // @@ -2487,7 +2487,7 @@ type LifecycleConfig struct { // and became eligible for deletion due to idleness (see JSON representation // of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - IdleStartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=idle_start_time,json=idleStartTime,proto3" json:"idle_start_time,omitempty"` + IdleStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=idle_start_time,json=idleStartTime,proto3" json:"idle_start_time,omitempty"` } func (x *LifecycleConfig) Reset() { @@ -2522,7 +2522,7 @@ func (*LifecycleConfig) Descriptor() ([]byte, []int) { return file_google_cloud_dataproc_v1_clusters_proto_rawDescGZIP(), []int{21} } -func (x *LifecycleConfig) GetIdleDeleteTtl() *durationpb.Duration { +func (x *LifecycleConfig) GetIdleDeleteTtl() *duration.Duration { if x != nil { return x.IdleDeleteTtl } @@ -2536,21 +2536,21 @@ func (m *LifecycleConfig) GetTtl() isLifecycleConfig_Ttl { return nil } -func (x *LifecycleConfig) GetAutoDeleteTime() *timestamppb.Timestamp { +func (x *LifecycleConfig) GetAutoDeleteTime() *timestamp.Timestamp { if x, ok := x.GetTtl().(*LifecycleConfig_AutoDeleteTime); ok { return x.AutoDeleteTime } return nil } -func (x *LifecycleConfig) GetAutoDeleteTtl() *durationpb.Duration { +func (x *LifecycleConfig) GetAutoDeleteTtl() *duration.Duration { if x, ok := x.GetTtl().(*LifecycleConfig_AutoDeleteTtl); ok { return x.AutoDeleteTtl } return nil } -func (x *LifecycleConfig) GetIdleStartTime() *timestamppb.Timestamp { +func (x *LifecycleConfig) GetIdleStartTime() *timestamp.Timestamp { if x != nil { return x.IdleStartTime } @@ -2564,7 +2564,7 @@ type isLifecycleConfig_Ttl interface { type LifecycleConfig_AutoDeleteTime struct { // Optional. The time when cluster will be auto-deleted (see JSON representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - AutoDeleteTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=auto_delete_time,json=autoDeleteTime,proto3,oneof"` + AutoDeleteTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=auto_delete_time,json=autoDeleteTime,proto3,oneof"` } type LifecycleConfig_AutoDeleteTtl struct { @@ -2572,7 +2572,7 @@ type LifecycleConfig_AutoDeleteTtl struct { // auto-deleted at the end of this period. Minimum value is 10 minutes; // maximum value is 14 days (see JSON representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - AutoDeleteTtl *durationpb.Duration `protobuf:"bytes,3,opt,name=auto_delete_ttl,json=autoDeleteTtl,proto3,oneof"` + AutoDeleteTtl *duration.Duration `protobuf:"bytes,3,opt,name=auto_delete_ttl,json=autoDeleteTtl,proto3,oneof"` } func (*LifecycleConfig_AutoDeleteTime) isLifecycleConfig_Ttl() {} @@ -2862,7 +2862,7 @@ type UpdateClusterRequest struct { // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). // // Only supported on Dataproc image versions 1.2 and higher. - GracefulDecommissionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=graceful_decommission_timeout,json=gracefulDecommissionTimeout,proto3" json:"graceful_decommission_timeout,omitempty"` + GracefulDecommissionTimeout *duration.Duration `protobuf:"bytes,6,opt,name=graceful_decommission_timeout,json=gracefulDecommissionTimeout,proto3" json:"graceful_decommission_timeout,omitempty"` // Required. Specifies the path, relative to `Cluster`, of // the field to update. For example, to change the number of workers // in a cluster to 5, the `update_mask` parameter would be @@ -2916,7 +2916,7 @@ type UpdateClusterRequest struct { // // // - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. A unique ID used to identify the request. If the server // receives two // [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s @@ -2992,14 +2992,14 @@ func (x *UpdateClusterRequest) GetCluster() *Cluster { return nil } -func (x *UpdateClusterRequest) GetGracefulDecommissionTimeout() *durationpb.Duration { +func (x *UpdateClusterRequest) GetGracefulDecommissionTimeout() *duration.Duration { if x != nil { return x.GracefulDecommissionTimeout } return nil } -func (x *UpdateClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateClusterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -4771,11 +4771,11 @@ var file_google_cloud_dataproc_v1_clusters_proto_goTypes = []interface{}{ nil, // 49: google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry (*KubernetesClusterConfig)(nil), // 50: google.cloud.dataproc.v1.KubernetesClusterConfig (*SparkHistoryServerConfig)(nil), // 51: google.cloud.dataproc.v1.SparkHistoryServerConfig - (*durationpb.Duration)(nil), // 52: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp + (*duration.Duration)(nil), // 52: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 53: google.protobuf.Timestamp (Component)(0), // 54: google.cloud.dataproc.v1.Component (FailureAction)(0), // 55: google.cloud.dataproc.v1.FailureAction - (*fieldmaskpb.FieldMask)(nil), // 56: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 56: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 57: google.longrunning.Operation } var file_google_cloud_dataproc_v1_clusters_proto_depIdxs = []int32{ diff --git a/dataproc/apiv1/dataprocpb/jobs.pb.go b/dataproc/apiv1/dataprocpb/jobs.pb.go index 8952beb54378..bf4ebe25af0c 100644 --- a/dataproc/apiv1/dataprocpb/jobs.pb.go +++ b/dataproc/apiv1/dataprocpb/jobs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/jobs.proto package dataprocpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1693,7 +1693,7 @@ type JobStatus struct { // description if the state is ERROR. Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` // Output only. The time when this state was entered. - StateStartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` + StateStartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` // Output only. Additional state information, which includes // status reported by the agent. Substate JobStatus_Substate `protobuf:"varint,7,opt,name=substate,proto3,enum=google.cloud.dataproc.v1.JobStatus_Substate" json:"substate,omitempty"` @@ -1745,7 +1745,7 @@ func (x *JobStatus) GetDetails() string { return "" } -func (x *JobStatus) GetStateStartTime() *timestamppb.Timestamp { +func (x *JobStatus) GetStateStartTime() *timestamp.Timestamp { if x != nil { return x.StateStartTime } @@ -2384,7 +2384,7 @@ type JobMetadata struct { // Output only. Operation type. OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // Output only. Job submission time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *JobMetadata) Reset() { @@ -2440,7 +2440,7 @@ func (x *JobMetadata) GetOperationType() string { return "" } -func (x *JobMetadata) GetStartTime() *timestamppb.Timestamp { +func (x *JobMetadata) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -2658,7 +2658,7 @@ type UpdateJobRequest struct { // labels, and the `PATCH` request body would specify the new // value. Note: Currently, labels is the only // field that can be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateJobRequest) Reset() { @@ -2721,7 +2721,7 @@ func (x *UpdateJobRequest) GetJob() *Job { return nil } -func (x *UpdateJobRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3645,10 +3645,10 @@ var file_google_cloud_dataproc_v1_jobs_proto_goTypes = []interface{}{ nil, // 40: google.cloud.dataproc.v1.PrestoJob.PropertiesEntry nil, // 41: google.cloud.dataproc.v1.JobPlacement.ClusterLabelsEntry nil, // 42: google.cloud.dataproc.v1.Job.LabelsEntry - (*timestamppb.Timestamp)(nil), // 43: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 44: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 43: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 44: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 45: google.longrunning.Operation - (*emptypb.Empty)(nil), // 46: google.protobuf.Empty + (*empty.Empty)(nil), // 46: google.protobuf.Empty } var file_google_cloud_dataproc_v1_jobs_proto_depIdxs = []int32{ 29, // 0: google.cloud.dataproc.v1.LoggingConfig.driver_log_levels:type_name -> google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry @@ -4103,7 +4103,7 @@ type JobControllerClient interface { CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*Job, error) // Deletes the job from the project. If the job is active, the delete fails, // and the response returns `FAILED_PRECONDITION`. - DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type jobControllerClient struct { @@ -4168,8 +4168,8 @@ func (c *jobControllerClient) CancelJob(ctx context.Context, in *CancelJobReques return out, nil } -func (c *jobControllerClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *jobControllerClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.JobController/DeleteJob", in, out, opts...) if err != nil { return nil, err @@ -4197,7 +4197,7 @@ type JobControllerServer interface { CancelJob(context.Context, *CancelJobRequest) (*Job, error) // Deletes the job from the project. If the job is active, the delete fails, // and the response returns `FAILED_PRECONDITION`. - DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) + DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) } // UnimplementedJobControllerServer can be embedded to have forward compatible implementations. @@ -4222,7 +4222,7 @@ func (*UnimplementedJobControllerServer) UpdateJob(context.Context, *UpdateJobRe func (*UnimplementedJobControllerServer) CancelJob(context.Context, *CancelJobRequest) (*Job, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelJob not implemented") } -func (*UnimplementedJobControllerServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedJobControllerServer) DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented") } diff --git a/dataproc/apiv1/dataprocpb/operations.pb.go b/dataproc/apiv1/dataprocpb/operations.pb.go index b8bcecd22659..5d74033af218 100644 --- a/dataproc/apiv1/dataprocpb/operations.pb.go +++ b/dataproc/apiv1/dataprocpb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/operations.proto package dataprocpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -154,9 +154,9 @@ type BatchOperationMetadata struct { // Batch UUID for the operation. BatchUuid string `protobuf:"bytes,2,opt,name=batch_uuid,json=batchUuid,proto3" json:"batch_uuid,omitempty"` // The time when the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the operation finished. - DoneTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=done_time,json=doneTime,proto3" json:"done_time,omitempty"` + DoneTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=done_time,json=doneTime,proto3" json:"done_time,omitempty"` // The operation type. OperationType BatchOperationMetadata_BatchOperationType `protobuf:"varint,6,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.dataproc.v1.BatchOperationMetadata_BatchOperationType" json:"operation_type,omitempty"` // Short description of the operation. @@ -213,14 +213,14 @@ func (x *BatchOperationMetadata) GetBatchUuid() string { return "" } -func (x *BatchOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *BatchOperationMetadata) GetDoneTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetDoneTime() *timestamp.Timestamp { if x != nil { return x.DoneTime } @@ -268,7 +268,7 @@ type ClusterOperationStatus struct { // Output only. A message containing any operation metadata details. Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // Output only. The time this state was entered. - StateStartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` + StateStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` } func (x *ClusterOperationStatus) Reset() { @@ -324,7 +324,7 @@ func (x *ClusterOperationStatus) GetDetails() string { return "" } -func (x *ClusterOperationStatus) GetStateStartTime() *timestamppb.Timestamp { +func (x *ClusterOperationStatus) GetStateStartTime() *timestamp.Timestamp { if x != nil { return x.StateStartTime } @@ -577,7 +577,7 @@ var file_google_cloud_dataproc_v1_operations_proto_goTypes = []interface{}{ (*ClusterOperationMetadata)(nil), // 4: google.cloud.dataproc.v1.ClusterOperationMetadata nil, // 5: google.cloud.dataproc.v1.BatchOperationMetadata.LabelsEntry nil, // 6: google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp } var file_google_cloud_dataproc_v1_operations_proto_depIdxs = []int32{ 7, // 0: google.cloud.dataproc.v1.BatchOperationMetadata.create_time:type_name -> google.protobuf.Timestamp diff --git a/dataproc/apiv1/dataprocpb/shared.pb.go b/dataproc/apiv1/dataprocpb/shared.pb.go index 1cb5ab549ed0..0072171de858 100644 --- a/dataproc/apiv1/dataprocpb/shared.pb.go +++ b/dataproc/apiv1/dataprocpb/shared.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/shared.proto package dataprocpb diff --git a/dataproc/apiv1/dataprocpb/workflow_templates.pb.go b/dataproc/apiv1/dataprocpb/workflow_templates.pb.go index 758b452cc578..60a16c7a24a1 100644 --- a/dataproc/apiv1/dataprocpb/workflow_templates.pb.go +++ b/dataproc/apiv1/dataprocpb/workflow_templates.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dataproc/v1/workflow_templates.proto package dataprocpb @@ -25,6 +25,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,9 +35,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -196,9 +196,9 @@ type WorkflowTemplate struct { // then returns it as part of the `UpdateWorkflowTemplate` request. Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // Output only. The time template was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time template was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow // instance. @@ -230,7 +230,7 @@ type WorkflowTemplate struct { // [managed // cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), // the cluster is deleted. - DagTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=dag_timeout,json=dagTimeout,proto3" json:"dag_timeout,omitempty"` + DagTimeout *duration.Duration `protobuf:"bytes,10,opt,name=dag_timeout,json=dagTimeout,proto3" json:"dag_timeout,omitempty"` } func (x *WorkflowTemplate) Reset() { @@ -286,14 +286,14 @@ func (x *WorkflowTemplate) GetVersion() int32 { return 0 } -func (x *WorkflowTemplate) GetCreateTime() *timestamppb.Timestamp { +func (x *WorkflowTemplate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *WorkflowTemplate) GetUpdateTime() *timestamppb.Timestamp { +func (x *WorkflowTemplate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -328,7 +328,7 @@ func (x *WorkflowTemplate) GetParameters() []*TemplateParameter { return nil } -func (x *WorkflowTemplate) GetDagTimeout() *durationpb.Duration { +func (x *WorkflowTemplate) GetDagTimeout() *duration.Duration { if x != nil { return x.DagTimeout } @@ -1156,20 +1156,20 @@ type WorkflowMetadata struct { // Map from parameter names to values that were used for those parameters. Parameters map[string]string `protobuf:"bytes,8,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Workflow start time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Workflow end time. - EndTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The UUID of target cluster. ClusterUuid string `protobuf:"bytes,11,opt,name=cluster_uuid,json=clusterUuid,proto3" json:"cluster_uuid,omitempty"` // Output only. The timeout duration for the DAG of jobs, expressed in seconds (see // [JSON representation of // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - DagTimeout *durationpb.Duration `protobuf:"bytes,12,opt,name=dag_timeout,json=dagTimeout,proto3" json:"dag_timeout,omitempty"` + DagTimeout *duration.Duration `protobuf:"bytes,12,opt,name=dag_timeout,json=dagTimeout,proto3" json:"dag_timeout,omitempty"` // Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG // begins. - DagStartTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=dag_start_time,json=dagStartTime,proto3" json:"dag_start_time,omitempty"` + DagStartTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=dag_start_time,json=dagStartTime,proto3" json:"dag_start_time,omitempty"` // Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends. - DagEndTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=dag_end_time,json=dagEndTime,proto3" json:"dag_end_time,omitempty"` + DagEndTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=dag_end_time,json=dagEndTime,proto3" json:"dag_end_time,omitempty"` } func (x *WorkflowMetadata) Reset() { @@ -1260,14 +1260,14 @@ func (x *WorkflowMetadata) GetParameters() map[string]string { return nil } -func (x *WorkflowMetadata) GetStartTime() *timestamppb.Timestamp { +func (x *WorkflowMetadata) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *WorkflowMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *WorkflowMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1281,21 +1281,21 @@ func (x *WorkflowMetadata) GetClusterUuid() string { return "" } -func (x *WorkflowMetadata) GetDagTimeout() *durationpb.Duration { +func (x *WorkflowMetadata) GetDagTimeout() *duration.Duration { if x != nil { return x.DagTimeout } return nil } -func (x *WorkflowMetadata) GetDagStartTime() *timestamppb.Timestamp { +func (x *WorkflowMetadata) GetDagStartTime() *timestamp.Timestamp { if x != nil { return x.DagStartTime } return nil } -func (x *WorkflowMetadata) GetDagEndTime() *timestamppb.Timestamp { +func (x *WorkflowMetadata) GetDagEndTime() *timestamp.Timestamp { if x != nil { return x.DagEndTime } @@ -2678,8 +2678,8 @@ var file_google_cloud_dataproc_v1_workflow_templates_proto_goTypes = []interface nil, // 26: google.cloud.dataproc.v1.OrderedJob.LabelsEntry nil, // 27: google.cloud.dataproc.v1.WorkflowMetadata.ParametersEntry nil, // 28: google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.ParametersEntry - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 30: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*duration.Duration)(nil), // 30: google.protobuf.Duration (*ClusterConfig)(nil), // 31: google.cloud.dataproc.v1.ClusterConfig (*HadoopJob)(nil), // 32: google.cloud.dataproc.v1.HadoopJob (*SparkJob)(nil), // 33: google.cloud.dataproc.v1.SparkJob @@ -2691,7 +2691,7 @@ var file_google_cloud_dataproc_v1_workflow_templates_proto_goTypes = []interface (*PrestoJob)(nil), // 39: google.cloud.dataproc.v1.PrestoJob (*JobScheduling)(nil), // 40: google.cloud.dataproc.v1.JobScheduling (*longrunning.Operation)(nil), // 41: google.longrunning.Operation - (*emptypb.Empty)(nil), // 42: google.protobuf.Empty + (*empty.Empty)(nil), // 42: google.protobuf.Empty } var file_google_cloud_dataproc_v1_workflow_templates_proto_depIdxs = []int32{ 29, // 0: google.cloud.dataproc.v1.WorkflowTemplate.create_time:type_name -> google.protobuf.Timestamp @@ -3128,7 +3128,7 @@ type WorkflowTemplateServiceClient interface { // Lists workflows that match the specified filter in the request. ListWorkflowTemplates(ctx context.Context, in *ListWorkflowTemplatesRequest, opts ...grpc.CallOption) (*ListWorkflowTemplatesResponse, error) // Deletes a workflow template. It does not cancel in-progress workflows. - DeleteWorkflowTemplate(ctx context.Context, in *DeleteWorkflowTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteWorkflowTemplate(ctx context.Context, in *DeleteWorkflowTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type workflowTemplateServiceClient struct { @@ -3193,8 +3193,8 @@ func (c *workflowTemplateServiceClient) ListWorkflowTemplates(ctx context.Contex return out, nil } -func (c *workflowTemplateServiceClient) DeleteWorkflowTemplate(ctx context.Context, in *DeleteWorkflowTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *workflowTemplateServiceClient) DeleteWorkflowTemplate(ctx context.Context, in *DeleteWorkflowTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.WorkflowTemplateService/DeleteWorkflowTemplate", in, out, opts...) if err != nil { return nil, err @@ -3263,7 +3263,7 @@ type WorkflowTemplateServiceServer interface { // Lists workflows that match the specified filter in the request. ListWorkflowTemplates(context.Context, *ListWorkflowTemplatesRequest) (*ListWorkflowTemplatesResponse, error) // Deletes a workflow template. It does not cancel in-progress workflows. - DeleteWorkflowTemplate(context.Context, *DeleteWorkflowTemplateRequest) (*emptypb.Empty, error) + DeleteWorkflowTemplate(context.Context, *DeleteWorkflowTemplateRequest) (*empty.Empty, error) } // UnimplementedWorkflowTemplateServiceServer can be embedded to have forward compatible implementations. @@ -3288,7 +3288,7 @@ func (*UnimplementedWorkflowTemplateServiceServer) UpdateWorkflowTemplate(contex func (*UnimplementedWorkflowTemplateServiceServer) ListWorkflowTemplates(context.Context, *ListWorkflowTemplatesRequest) (*ListWorkflowTemplatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowTemplates not implemented") } -func (*UnimplementedWorkflowTemplateServiceServer) DeleteWorkflowTemplate(context.Context, *DeleteWorkflowTemplateRequest) (*emptypb.Empty, error) { +func (*UnimplementedWorkflowTemplateServiceServer) DeleteWorkflowTemplate(context.Context, *DeleteWorkflowTemplateRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowTemplate not implemented") } diff --git a/dataproc/go.mod b/dataproc/go.mod index 784260572f2f..688bcbfb0693 100644 --- a/dataproc/go.mod +++ b/dataproc/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/datastream/apiv1/datastreampb/datastream.pb.go b/datastream/apiv1/datastreampb/datastream.pb.go index 378b10b56c6a..be59260ecae7 100644 --- a/datastream/apiv1/datastreampb/datastream.pb.go +++ b/datastream/apiv1/datastreampb/datastream.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datastream/v1/datastream.proto package datastreampb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -811,7 +811,7 @@ type UpdateConnectionProfileRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The connection profile to update. ConnectionProfile *ConnectionProfile `protobuf:"bytes,2,opt,name=connection_profile,json=connectionProfile,proto3" json:"connection_profile,omitempty"` // Optional. A request ID to identify requests. Specify a unique request ID @@ -867,7 +867,7 @@ func (*UpdateConnectionProfileRequest) Descriptor() ([]byte, []int) { return file_google_cloud_datastream_v1_datastream_proto_rawDescGZIP(), []int{8} } -func (x *UpdateConnectionProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateConnectionProfileRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1298,7 +1298,7 @@ type UpdateStreamRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The stream resource to update. Stream *Stream `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"` // Optional. A request ID to identify requests. Specify a unique request ID @@ -1354,7 +1354,7 @@ func (*UpdateStreamRequest) Descriptor() ([]byte, []int) { return file_google_cloud_datastream_v1_datastream_proto_rawDescGZIP(), []int{14} } -func (x *UpdateStreamRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateStreamRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1902,9 +1902,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1954,14 +1954,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_datastream_v1_datastream_proto_rawDescGZIP(), []int{24} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3623,11 +3623,11 @@ var file_google_cloud_datastream_v1_datastream_proto_goTypes = []interface{}{ (*OracleRdbms)(nil), // 36: google.cloud.datastream.v1.OracleRdbms (*MysqlRdbms)(nil), // 37: google.cloud.datastream.v1.MysqlRdbms (*PostgresqlRdbms)(nil), // 38: google.cloud.datastream.v1.PostgresqlRdbms - (*fieldmaskpb.FieldMask)(nil), // 39: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 39: google.protobuf.FieldMask (*Stream)(nil), // 40: google.cloud.datastream.v1.Stream (*SourceObjectIdentifier)(nil), // 41: google.cloud.datastream.v1.SourceObjectIdentifier (*StreamObject)(nil), // 42: google.cloud.datastream.v1.StreamObject - (*timestamppb.Timestamp)(nil), // 43: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 43: google.protobuf.Timestamp (*ValidationResult)(nil), // 44: google.cloud.datastream.v1.ValidationResult (*PrivateConnection)(nil), // 45: google.cloud.datastream.v1.PrivateConnection (*Route)(nil), // 46: google.cloud.datastream.v1.Route diff --git a/datastream/apiv1/datastreampb/datastream_resources.pb.go b/datastream/apiv1/datastreampb/datastream_resources.pb.go index 20b7700d7f17..aa7c84fb3271 100644 --- a/datastream/apiv1/datastreampb/datastream_resources.pb.go +++ b/datastream/apiv1/datastreampb/datastream_resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/datastream/v1/datastream_resources.proto package datastreampb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1112,9 +1112,9 @@ type PrivateConnection struct { // Output only. The resource's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time of the resource. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time of the resource. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Labels. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Display name. @@ -1166,14 +1166,14 @@ func (x *PrivateConnection) GetName() string { return "" } -func (x *PrivateConnection) GetCreateTime() *timestamppb.Timestamp { +func (x *PrivateConnection) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *PrivateConnection) GetUpdateTime() *timestamppb.Timestamp { +func (x *PrivateConnection) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1275,9 +1275,9 @@ type Route struct { // Output only. The resource's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time of the resource. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time of the resource. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Labels. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Display name. @@ -1327,14 +1327,14 @@ func (x *Route) GetName() string { return "" } -func (x *Route) GetCreateTime() *timestamppb.Timestamp { +func (x *Route) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Route) GetUpdateTime() *timestamppb.Timestamp { +func (x *Route) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1478,9 +1478,9 @@ type ConnectionProfile struct { // Output only. The resource's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time of the resource. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time of the resource. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Labels. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Display name. @@ -1544,14 +1544,14 @@ func (x *ConnectionProfile) GetName() string { return "" } -func (x *ConnectionProfile) GetCreateTime() *timestamppb.Timestamp { +func (x *ConnectionProfile) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ConnectionProfile) GetUpdateTime() *timestamppb.Timestamp { +func (x *ConnectionProfile) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3024,7 +3024,7 @@ type GcsDestinationConfig struct { FileRotationMb int32 `protobuf:"varint,2,opt,name=file_rotation_mb,json=fileRotationMb,proto3" json:"file_rotation_mb,omitempty"` // The maximum duration for which new events are added before a file is // closed and a new file is created. - FileRotationInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=file_rotation_interval,json=fileRotationInterval,proto3" json:"file_rotation_interval,omitempty"` + FileRotationInterval *duration.Duration `protobuf:"bytes,3,opt,name=file_rotation_interval,json=fileRotationInterval,proto3" json:"file_rotation_interval,omitempty"` // File Format that the data should be written in. // // Types that are assignable to FileFormat: @@ -3080,7 +3080,7 @@ func (x *GcsDestinationConfig) GetFileRotationMb() int32 { return 0 } -func (x *GcsDestinationConfig) GetFileRotationInterval() *durationpb.Duration { +func (x *GcsDestinationConfig) GetFileRotationInterval() *duration.Duration { if x != nil { return x.FileRotationInterval } @@ -3142,7 +3142,7 @@ type BigQueryDestinationConfig struct { // the stream. Editing this field will only affect new tables created in the // future, but existing tables will not be impacted. Lower values mean that // queries will return fresher data, but may result in higher cost. - DataFreshness *durationpb.Duration `protobuf:"bytes,300,opt,name=data_freshness,json=dataFreshness,proto3" json:"data_freshness,omitempty"` + DataFreshness *duration.Duration `protobuf:"bytes,300,opt,name=data_freshness,json=dataFreshness,proto3" json:"data_freshness,omitempty"` } func (x *BigQueryDestinationConfig) Reset() { @@ -3198,7 +3198,7 @@ func (x *BigQueryDestinationConfig) GetSourceHierarchyDatasets() *BigQueryDestin return nil } -func (x *BigQueryDestinationConfig) GetDataFreshness() *durationpb.Duration { +func (x *BigQueryDestinationConfig) GetDataFreshness() *duration.Duration { if x != nil { return x.DataFreshness } @@ -3329,9 +3329,9 @@ type Stream struct { // Output only. The stream's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time of the stream. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update time of the stream. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Labels. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Display name. @@ -3397,14 +3397,14 @@ func (x *Stream) GetName() string { return "" } -func (x *Stream) GetCreateTime() *timestamppb.Timestamp { +func (x *Stream) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Stream) GetUpdateTime() *timestamppb.Timestamp { +func (x *Stream) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3509,9 +3509,9 @@ type StreamObject struct { // Output only. The object resource's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time of the object. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update time of the object. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. Display name. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Active errors on the object. @@ -3561,14 +3561,14 @@ func (x *StreamObject) GetName() string { return "" } -func (x *StreamObject) GetCreateTime() *timestamppb.Timestamp { +func (x *StreamObject) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *StreamObject) GetUpdateTime() *timestamppb.Timestamp { +func (x *StreamObject) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3715,9 +3715,9 @@ type BackfillJob struct { // Backfill job's triggering reason. Trigger BackfillJob_Trigger `protobuf:"varint,2,opt,name=trigger,proto3,enum=google.cloud.datastream.v1.BackfillJob_Trigger" json:"trigger,omitempty"` // Output only. Backfill job's start time. - LastStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_start_time,json=lastStartTime,proto3" json:"last_start_time,omitempty"` + LastStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_start_time,json=lastStartTime,proto3" json:"last_start_time,omitempty"` // Output only. Backfill job's end time. - LastEndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_end_time,json=lastEndTime,proto3" json:"last_end_time,omitempty"` + LastEndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_end_time,json=lastEndTime,proto3" json:"last_end_time,omitempty"` // Output only. Errors which caused the backfill job to fail. Errors []*Error `protobuf:"bytes,5,rep,name=errors,proto3" json:"errors,omitempty"` } @@ -3768,14 +3768,14 @@ func (x *BackfillJob) GetTrigger() BackfillJob_Trigger { return BackfillJob_TRIGGER_UNSPECIFIED } -func (x *BackfillJob) GetLastStartTime() *timestamppb.Timestamp { +func (x *BackfillJob) GetLastStartTime() *timestamp.Timestamp { if x != nil { return x.LastStartTime } return nil } -func (x *BackfillJob) GetLastEndTime() *timestamppb.Timestamp { +func (x *BackfillJob) GetLastEndTime() *timestamp.Timestamp { if x != nil { return x.LastEndTime } @@ -3803,7 +3803,7 @@ type Error struct { // A message containing more information about the error that occurred. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // The time when the error occurred. - ErrorTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` + ErrorTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` // Additional information about the error. Details map[string]string `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -3861,7 +3861,7 @@ func (x *Error) GetMessage() string { return "" } -func (x *Error) GetErrorTime() *timestamppb.Timestamp { +func (x *Error) GetErrorTime() *timestamp.Timestamp { if x != nil { return x.ErrorTime } @@ -5641,10 +5641,10 @@ var file_google_cloud_datastream_v1_datastream_resources_proto_goTypes = []inter (*SourceObjectIdentifier_OracleObjectIdentifier)(nil), // 62: google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier (*SourceObjectIdentifier_PostgresqlObjectIdentifier)(nil), // 63: google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier (*SourceObjectIdentifier_MysqlObjectIdentifier)(nil), // 64: google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - nil, // 65: google.cloud.datastream.v1.Error.DetailsEntry - nil, // 66: google.cloud.datastream.v1.ValidationMessage.MetadataEntry - (*timestamppb.Timestamp)(nil), // 67: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 68: google.protobuf.Duration + nil, // 65: google.cloud.datastream.v1.Error.DetailsEntry + nil, // 66: google.cloud.datastream.v1.ValidationMessage.MetadataEntry + (*timestamp.Timestamp)(nil), // 67: google.protobuf.Timestamp + (*duration.Duration)(nil), // 68: google.protobuf.Duration } var file_google_cloud_datastream_v1_datastream_resources_proto_depIdxs = []int32{ 50, // 0: google.cloud.datastream.v1.OracleProfile.connection_attributes:type_name -> google.cloud.datastream.v1.OracleProfile.ConnectionAttributesEntry diff --git a/debugger/apiv2/debuggerpb/controller.pb.go b/debugger/apiv2/debuggerpb/controller.pb.go index 369f1717d91c..2213ca1c23c9 100644 --- a/debugger/apiv2/debuggerpb/controller.pb.go +++ b/debugger/apiv2/debuggerpb/controller.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/clouddebugger/v2/controller.proto package debuggerpb diff --git a/debugger/apiv2/debuggerpb/data.pb.go b/debugger/apiv2/debuggerpb/data.pb.go index 0bc3aa2227af..055bac7bdb57 100644 --- a/debugger/apiv2/debuggerpb/data.pb.go +++ b/debugger/apiv2/debuggerpb/data.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/clouddebugger/v2/data.proto package debuggerpb @@ -25,11 +25,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" v1 "google.golang.org/genproto/googleapis/devtools/source/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -548,7 +548,7 @@ type Variable struct { // Reference to a variable in the shared variable table. More than // one variable can reference the same variable in the table. The // `var_table_index` field is an index into `variable_table` in Breakpoint. - VarTableIndex *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=var_table_index,json=varTableIndex,proto3" json:"var_table_index,omitempty"` + VarTableIndex *wrappers.Int32Value `protobuf:"bytes,4,opt,name=var_table_index,json=varTableIndex,proto3" json:"var_table_index,omitempty"` // Status associated with the variable. This field will usually stay // unset. A status of a single variable only applies to that variable or // expression. The rest of breakpoint data still remains valid. Variables @@ -631,7 +631,7 @@ func (x *Variable) GetMembers() []*Variable { return nil } -func (x *Variable) GetVarTableIndex() *wrapperspb.Int32Value { +func (x *Variable) GetVarTableIndex() *wrappers.Int32Value { if x != nil { return x.VarTableIndex } @@ -760,10 +760,10 @@ type Breakpoint struct { // breakpoint state will not change from here on. IsFinalState bool `protobuf:"varint,5,opt,name=is_final_state,json=isFinalState,proto3" json:"is_final_state,omitempty"` // Time this breakpoint was created by the server in seconds resolution. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time this breakpoint was finalized as seen by the server in seconds // resolution. - FinalTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=final_time,json=finalTime,proto3" json:"final_time,omitempty"` + FinalTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=final_time,json=finalTime,proto3" json:"final_time,omitempty"` // E-mail address of the user that created this breakpoint UserEmail string `protobuf:"bytes,16,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"` // Breakpoint status. @@ -899,14 +899,14 @@ func (x *Breakpoint) GetIsFinalState() bool { return false } -func (x *Breakpoint) GetCreateTime() *timestamppb.Timestamp { +func (x *Breakpoint) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Breakpoint) GetFinalTime() *timestamppb.Timestamp { +func (x *Breakpoint) GetFinalTime() *timestamp.Timestamp { if x != nil { return x.FinalTime } @@ -1354,8 +1354,8 @@ var file_google_devtools_clouddebugger_v2_data_proto_goTypes = []interface{}{ (*Debuggee)(nil), // 9: google.devtools.clouddebugger.v2.Debuggee nil, // 10: google.devtools.clouddebugger.v2.Breakpoint.LabelsEntry nil, // 11: google.devtools.clouddebugger.v2.Debuggee.LabelsEntry - (*wrapperspb.Int32Value)(nil), // 12: google.protobuf.Int32Value - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*wrappers.Int32Value)(nil), // 12: google.protobuf.Int32Value + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp (*v1.SourceContext)(nil), // 14: google.devtools.source.v1.SourceContext (*v1.ExtendedSourceContext)(nil), // 15: google.devtools.source.v1.ExtendedSourceContext } diff --git a/debugger/apiv2/debuggerpb/debugger.pb.go b/debugger/apiv2/debuggerpb/debugger.pb.go index 116316fad966..fc8a131ca62d 100644 --- a/debugger/apiv2/debuggerpb/debugger.pb.go +++ b/debugger/apiv2/debuggerpb/debugger.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/clouddebugger/v2/debugger.proto package debuggerpb @@ -26,13 +26,13 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -933,7 +933,7 @@ var file_google_devtools_clouddebugger_v2_debugger_proto_goTypes = []interface{} (*Breakpoint)(nil), // 10: google.devtools.clouddebugger.v2.Breakpoint (*Debuggee)(nil), // 11: google.devtools.clouddebugger.v2.Debuggee (Breakpoint_Action)(0), // 12: google.devtools.clouddebugger.v2.Breakpoint.Action - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + (*empty.Empty)(nil), // 13: google.protobuf.Empty } var file_google_devtools_clouddebugger_v2_debugger_proto_depIdxs = []int32{ 10, // 0: google.devtools.clouddebugger.v2.SetBreakpointRequest.breakpoint:type_name -> google.devtools.clouddebugger.v2.Breakpoint @@ -1125,7 +1125,7 @@ type Debugger2Client interface { // Gets breakpoint information. GetBreakpoint(ctx context.Context, in *GetBreakpointRequest, opts ...grpc.CallOption) (*GetBreakpointResponse, error) // Deletes the breakpoint from the debuggee. - DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists all breakpoints for the debuggee. ListBreakpoints(ctx context.Context, in *ListBreakpointsRequest, opts ...grpc.CallOption) (*ListBreakpointsResponse, error) // Lists all the debuggees that the user has access to. @@ -1158,8 +1158,8 @@ func (c *debugger2Client) GetBreakpoint(ctx context.Context, in *GetBreakpointRe return out, nil } -func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint", in, out, opts...) if err != nil { return nil, err @@ -1192,7 +1192,7 @@ type Debugger2Server interface { // Gets breakpoint information. GetBreakpoint(context.Context, *GetBreakpointRequest) (*GetBreakpointResponse, error) // Deletes the breakpoint from the debuggee. - DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*emptypb.Empty, error) + DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*empty.Empty, error) // Lists all breakpoints for the debuggee. ListBreakpoints(context.Context, *ListBreakpointsRequest) (*ListBreakpointsResponse, error) // Lists all the debuggees that the user has access to. @@ -1209,7 +1209,7 @@ func (*UnimplementedDebugger2Server) SetBreakpoint(context.Context, *SetBreakpoi func (*UnimplementedDebugger2Server) GetBreakpoint(context.Context, *GetBreakpointRequest) (*GetBreakpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBreakpoint not implemented") } -func (*UnimplementedDebugger2Server) DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*emptypb.Empty, error) { +func (*UnimplementedDebugger2Server) DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBreakpoint not implemented") } func (*UnimplementedDebugger2Server) ListBreakpoints(context.Context, *ListBreakpointsRequest) (*ListBreakpointsResponse, error) { diff --git a/deploy/apiv1/deploypb/cloud_deploy.pb.go b/deploy/apiv1/deploypb/cloud_deploy.pb.go index 49da80699502..1f9b0c988ef6 100644 --- a/deploy/apiv1/deploypb/cloud_deploy.pb.go +++ b/deploy/apiv1/deploypb/cloud_deploy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/cloud_deploy.proto package deploypb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" date "google.golang.org/genproto/googleapis/type/date" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -827,9 +827,9 @@ type DeliveryPipeline struct { // Both keys and values are additionally constrained to be <= 128 bytes. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Time at which the pipeline was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Most recent time at which the pipeline was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The ordering configuration of the `DeliveryPipeline`. // // Types that are assignable to Pipeline: @@ -914,14 +914,14 @@ func (x *DeliveryPipeline) GetLabels() map[string]string { return nil } -func (x *DeliveryPipeline) GetCreateTime() *timestamppb.Timestamp { +func (x *DeliveryPipeline) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DeliveryPipeline) GetUpdateTime() *timestamppb.Timestamp { +func (x *DeliveryPipeline) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1232,7 +1232,7 @@ type PipelineReadyCondition struct { // is wrong with the Pipeline. Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // Last time the condition was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *PipelineReadyCondition) Reset() { @@ -1274,7 +1274,7 @@ func (x *PipelineReadyCondition) GetStatus() bool { return false } -func (x *PipelineReadyCondition) GetUpdateTime() *timestamppb.Timestamp { +func (x *PipelineReadyCondition) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1294,7 +1294,7 @@ type TargetsPresentCondition struct { // projects/{project_id}/locations/{location_name}/targets/{target_name}. MissingTargets []string `protobuf:"bytes,2,rep,name=missing_targets,json=missingTargets,proto3" json:"missing_targets,omitempty"` // Last time the condition was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *TargetsPresentCondition) Reset() { @@ -1343,7 +1343,7 @@ func (x *TargetsPresentCondition) GetMissingTargets() []string { return nil } -func (x *TargetsPresentCondition) GetUpdateTime() *timestamppb.Timestamp { +func (x *TargetsPresentCondition) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1730,7 +1730,7 @@ type UpdateDeliveryPipelineRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The `DeliveryPipeline` to update. DeliveryPipeline *DeliveryPipeline `protobuf:"bytes,2,opt,name=delivery_pipeline,json=deliveryPipeline,proto3" json:"delivery_pipeline,omitempty"` // Optional. A request ID to identify requests. Specify a unique request ID @@ -1787,7 +1787,7 @@ func (*UpdateDeliveryPipelineRequest) Descriptor() ([]byte, []int) { return file_google_cloud_deploy_v1_cloud_deploy_proto_rawDescGZIP(), []int{12} } -func (x *UpdateDeliveryPipelineRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDeliveryPipelineRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1974,9 +1974,9 @@ type Target struct { // Optional. Whether or not the `Target` requires approval. RequireApproval bool `protobuf:"varint,13,opt,name=require_approval,json=requireApproval,proto3" json:"require_approval,omitempty"` // Output only. Time at which the `Target` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Most recent time at which the `Target` was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Destination to which the Skaffold configuration is applied during a // rollout. // @@ -2081,14 +2081,14 @@ func (x *Target) GetRequireApproval() bool { return false } -func (x *Target) GetCreateTime() *timestamppb.Timestamp { +func (x *Target) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Target) GetUpdateTime() *timestamppb.Timestamp { +func (x *Target) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2194,7 +2194,7 @@ type ExecutionConfig struct { // Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and // 24h in seconds format. // If unspecified, a default timeout of 1h is used. - ExecutionTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` + ExecutionTimeout *duration.Duration `protobuf:"bytes,7,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` } func (x *ExecutionConfig) Reset() { @@ -2278,7 +2278,7 @@ func (x *ExecutionConfig) GetArtifactStorage() string { return "" } -func (x *ExecutionConfig) GetExecutionTimeout() *durationpb.Duration { +func (x *ExecutionConfig) GetExecutionTimeout() *duration.Duration { if x != nil { return x.ExecutionTimeout } @@ -2928,7 +2928,7 @@ type UpdateTargetRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The `Target` to update. Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // Optional. A request ID to identify requests. Specify a unique request ID @@ -2985,7 +2985,7 @@ func (*UpdateTargetRequest) Descriptor() ([]byte, []int) { return file_google_cloud_deploy_v1_cloud_deploy_proto_rawDescGZIP(), []int{25} } -func (x *UpdateTargetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTargetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3160,11 +3160,11 @@ type Release struct { // Output only. Indicates whether this is an abandoned release. Abandoned bool `protobuf:"varint,23,opt,name=abandoned,proto3" json:"abandoned,omitempty"` // Output only. Time at which the `Release` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time at which the render began. - RenderStartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=render_start_time,json=renderStartTime,proto3" json:"render_start_time,omitempty"` + RenderStartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=render_start_time,json=renderStartTime,proto3" json:"render_start_time,omitempty"` // Output only. Time at which the render completed. - RenderEndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=render_end_time,json=renderEndTime,proto3" json:"render_end_time,omitempty"` + RenderEndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=render_end_time,json=renderEndTime,proto3" json:"render_end_time,omitempty"` // Cloud Storage URI of tar.gz archive containing Skaffold configuration. SkaffoldConfigUri string `protobuf:"bytes,17,opt,name=skaffold_config_uri,json=skaffoldConfigUri,proto3" json:"skaffold_config_uri,omitempty"` // Filepath of the Skaffold config inside of the config URI. @@ -3268,21 +3268,21 @@ func (x *Release) GetAbandoned() bool { return false } -func (x *Release) GetCreateTime() *timestamppb.Timestamp { +func (x *Release) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Release) GetRenderStartTime() *timestamppb.Timestamp { +func (x *Release) GetRenderStartTime() *timestamp.Timestamp { if x != nil { return x.RenderStartTime } return nil } -func (x *Release) GetRenderEndTime() *timestamppb.Timestamp { +func (x *Release) GetRenderEndTime() *timestamp.Timestamp { if x != nil { return x.RenderEndTime } @@ -3854,15 +3854,15 @@ type Rollout struct { // Both keys and values are additionally constrained to be <= 128 bytes. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Time at which the `Rollout` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time at which the `Rollout` was approved. - ApproveTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"` + ApproveTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"` // Output only. Time at which the `Rollout` was enqueued. - EnqueueTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=enqueue_time,json=enqueueTime,proto3" json:"enqueue_time,omitempty"` + EnqueueTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=enqueue_time,json=enqueueTime,proto3" json:"enqueue_time,omitempty"` // Output only. Time at which the `Rollout` started deploying. - DeployStartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=deploy_start_time,json=deployStartTime,proto3" json:"deploy_start_time,omitempty"` + DeployStartTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=deploy_start_time,json=deployStartTime,proto3" json:"deploy_start_time,omitempty"` // Output only. Time at which the `Rollout` finished deploying. - DeployEndTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=deploy_end_time,json=deployEndTime,proto3" json:"deploy_end_time,omitempty"` + DeployEndTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=deploy_end_time,json=deployEndTime,proto3" json:"deploy_end_time,omitempty"` // Required. The ID of Target to which this `Rollout` is deploying. TargetId string `protobuf:"bytes,18,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // Output only. Approval state of the `Rollout`. @@ -3955,35 +3955,35 @@ func (x *Rollout) GetLabels() map[string]string { return nil } -func (x *Rollout) GetCreateTime() *timestamppb.Timestamp { +func (x *Rollout) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Rollout) GetApproveTime() *timestamppb.Timestamp { +func (x *Rollout) GetApproveTime() *timestamp.Timestamp { if x != nil { return x.ApproveTime } return nil } -func (x *Rollout) GetEnqueueTime() *timestamppb.Timestamp { +func (x *Rollout) GetEnqueueTime() *timestamp.Timestamp { if x != nil { return x.EnqueueTime } return nil } -func (x *Rollout) GetDeployStartTime() *timestamppb.Timestamp { +func (x *Rollout) GetDeployStartTime() *timestamp.Timestamp { if x != nil { return x.DeployStartTime } return nil } -func (x *Rollout) GetDeployEndTime() *timestamppb.Timestamp { +func (x *Rollout) GetDeployEndTime() *timestamp.Timestamp { if x != nil { return x.DeployEndTime } @@ -4877,9 +4877,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -4927,14 +4927,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_deploy_v1_cloud_deploy_proto_rawDescGZIP(), []int{47} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -5292,11 +5292,11 @@ type JobRun struct { // Output only. ID of the `Rollout` job this `JobRun` corresponds to. JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // Output only. Time at which the `JobRun` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time at which the `JobRun` was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Time at which the `JobRun` ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The current state of the `JobRun`. State JobRun_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.deploy.v1.JobRun_State" json:"state,omitempty"` // The `JobRun` type and the information for that type. @@ -5372,21 +5372,21 @@ func (x *JobRun) GetJobId() string { return "" } -func (x *JobRun) GetCreateTime() *timestamppb.Timestamp { +func (x *JobRun) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *JobRun) GetStartTime() *timestamppb.Timestamp { +func (x *JobRun) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *JobRun) GetEndTime() *timestamppb.Timestamp { +func (x *JobRun) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -7616,9 +7616,9 @@ var file_google_cloud_deploy_v1_cloud_deploy_proto_goTypes = []interface{}{ nil, // 83: google.cloud.deploy.v1.Release.TargetRendersEntry nil, // 84: google.cloud.deploy.v1.Rollout.AnnotationsEntry nil, // 85: google.cloud.deploy.v1.Rollout.LabelsEntry - (*timestamppb.Timestamp)(nil), // 86: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 87: google.protobuf.FieldMask - (*durationpb.Duration)(nil), // 88: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 86: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 87: google.protobuf.FieldMask + (*duration.Duration)(nil), // 88: google.protobuf.Duration (*date.Date)(nil), // 89: google.type.Date (*longrunning.Operation)(nil), // 90: google.longrunning.Operation } diff --git a/deploy/apiv1/deploypb/deliverypipeline_notification_payload.pb.go b/deploy/apiv1/deploypb/deliverypipeline_notification_payload.pb.go index ded605faff27..062630d61ae5 100644 --- a/deploy/apiv1/deploypb/deliverypipeline_notification_payload.pb.go +++ b/deploy/apiv1/deploypb/deliverypipeline_notification_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto package deploypb diff --git a/deploy/apiv1/deploypb/jobrun_notification_payload.pb.go b/deploy/apiv1/deploypb/jobrun_notification_payload.pb.go index 006651d3a59f..69b3c75d9252 100644 --- a/deploy/apiv1/deploypb/jobrun_notification_payload.pb.go +++ b/deploy/apiv1/deploypb/jobrun_notification_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/jobrun_notification_payload.proto package deploypb diff --git a/deploy/apiv1/deploypb/log_enums.pb.go b/deploy/apiv1/deploypb/log_enums.pb.go index be51f9c2c615..bea9db79e1a8 100644 --- a/deploy/apiv1/deploypb/log_enums.pb.go +++ b/deploy/apiv1/deploypb/log_enums.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/log_enums.proto package deploypb diff --git a/deploy/apiv1/deploypb/release_notification_payload.pb.go b/deploy/apiv1/deploypb/release_notification_payload.pb.go index 3dc156bff9d6..c550c71bb385 100644 --- a/deploy/apiv1/deploypb/release_notification_payload.pb.go +++ b/deploy/apiv1/deploypb/release_notification_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/release_notification_payload.proto package deploypb diff --git a/deploy/apiv1/deploypb/release_render_payload.pb.go b/deploy/apiv1/deploypb/release_render_payload.pb.go index d0fb10ade46b..2c5044c21a7e 100644 --- a/deploy/apiv1/deploypb/release_render_payload.pb.go +++ b/deploy/apiv1/deploypb/release_render_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/release_render_payload.proto package deploypb diff --git a/deploy/apiv1/deploypb/rollout_notification_payload.pb.go b/deploy/apiv1/deploypb/rollout_notification_payload.pb.go index 5028c5c45fed..046db524d51b 100644 --- a/deploy/apiv1/deploypb/rollout_notification_payload.pb.go +++ b/deploy/apiv1/deploypb/rollout_notification_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/rollout_notification_payload.proto package deploypb diff --git a/deploy/apiv1/deploypb/target_notification_payload.pb.go b/deploy/apiv1/deploypb/target_notification_payload.pb.go index 2bd2ebbec954..9f65c73f4d75 100644 --- a/deploy/apiv1/deploypb/target_notification_payload.pb.go +++ b/deploy/apiv1/deploypb/target_notification_payload.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/deploy/v1/target_notification_payload.proto package deploypb diff --git a/deploy/go.mod b/deploy/go.mod index c82f435e7de7..6b366102dee7 100644 --- a/deploy/go.mod +++ b/deploy/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/dialogflow/apiv2/dialogflowpb/agent.pb.go b/dialogflow/apiv2/dialogflowpb/agent.pb.go index 0a88a73582d8..8826f0f072b7 100644 --- a/dialogflow/apiv2/dialogflowpb/agent.pb.go +++ b/dialogflow/apiv2/dialogflowpb/agent.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/agent.proto package dialogflowpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -455,7 +455,7 @@ type SetAgentRequest struct { // Required. The agent to update. Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *SetAgentRequest) Reset() { @@ -497,7 +497,7 @@ func (x *SetAgentRequest) GetAgent() *Agent { return nil } -func (x *SetAgentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *SetAgentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1518,8 +1518,8 @@ var file_google_cloud_dialogflow_v2_agent_proto_goTypes = []interface{}{ (*ImportAgentRequest)(nil), // 12: google.cloud.dialogflow.v2.ImportAgentRequest (*RestoreAgentRequest)(nil), // 13: google.cloud.dialogflow.v2.RestoreAgentRequest (*GetValidationResultRequest)(nil), // 14: google.cloud.dialogflow.v2.GetValidationResultRequest - (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 16: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask + (*empty.Empty)(nil), // 16: google.protobuf.Empty (*longrunning.Operation)(nil), // 17: google.longrunning.Operation (*ValidationResult)(nil), // 18: google.cloud.dialogflow.v2.ValidationResult } @@ -1761,7 +1761,7 @@ type AgentsClient interface { // documentation](https://cloud.google.com/dialogflow/es/docs/training). SetAgent(ctx context.Context, in *SetAgentRequest, opts ...grpc.CallOption) (*Agent, error) // Deletes the specified agent. - DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Returns the list of agents. // // Since there is at most one conversational agent per project, this method is @@ -1877,8 +1877,8 @@ func (c *agentsClient) SetAgent(ctx context.Context, in *SetAgentRequest, opts . return out, nil } -func (c *agentsClient) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *agentsClient) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/DeleteAgent", in, out, opts...) if err != nil { return nil, err @@ -1951,7 +1951,7 @@ type AgentsServer interface { // documentation](https://cloud.google.com/dialogflow/es/docs/training). SetAgent(context.Context, *SetAgentRequest) (*Agent, error) // Deletes the specified agent. - DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error) + DeleteAgent(context.Context, *DeleteAgentRequest) (*empty.Empty, error) // Returns the list of agents. // // Since there is at most one conversational agent per project, this method is @@ -2051,7 +2051,7 @@ func (*UnimplementedAgentsServer) GetAgent(context.Context, *GetAgentRequest) (* func (*UnimplementedAgentsServer) SetAgent(context.Context, *SetAgentRequest) (*Agent, error) { return nil, status.Errorf(codes.Unimplemented, "method SetAgent not implemented") } -func (*UnimplementedAgentsServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error) { +func (*UnimplementedAgentsServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAgent not implemented") } func (*UnimplementedAgentsServer) SearchAgents(context.Context, *SearchAgentsRequest) (*SearchAgentsResponse, error) { diff --git a/dialogflow/apiv2/dialogflowpb/answer_record.pb.go b/dialogflow/apiv2/dialogflowpb/answer_record.pb.go index 0ffdfd25b522..16525e5ce952 100644 --- a/dialogflow/apiv2/dialogflowpb/answer_record.pb.go +++ b/dialogflow/apiv2/dialogflowpb/answer_record.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/answer_record.proto package dialogflowpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -539,7 +539,7 @@ type UpdateAnswerRecordRequest struct { // Required. Answer record to update. AnswerRecord *AnswerRecord `protobuf:"bytes,1,opt,name=answer_record,json=answerRecord,proto3" json:"answer_record,omitempty"` // Required. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAnswerRecordRequest) Reset() { @@ -581,7 +581,7 @@ func (x *UpdateAnswerRecordRequest) GetAnswerRecord() *AnswerRecord { return nil } -func (x *UpdateAnswerRecordRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAnswerRecordRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -607,12 +607,12 @@ type AnswerFeedback struct { // or not. Default to false. Clicked bool `protobuf:"varint,3,opt,name=clicked,proto3" json:"clicked,omitempty"` // Time when the answer/item was clicked. - ClickTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=click_time,json=clickTime,proto3" json:"click_time,omitempty"` + ClickTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=click_time,json=clickTime,proto3" json:"click_time,omitempty"` // Indicates whether the answer/item was displayed to the human // agent in the agent desktop UI. Default to false. Displayed bool `protobuf:"varint,4,opt,name=displayed,proto3" json:"displayed,omitempty"` // Time when the answer/item was displayed. - DisplayTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty"` + DisplayTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty"` } func (x *AnswerFeedback) Reset() { @@ -675,7 +675,7 @@ func (x *AnswerFeedback) GetClicked() bool { return false } -func (x *AnswerFeedback) GetClickTime() *timestamppb.Timestamp { +func (x *AnswerFeedback) GetClickTime() *timestamp.Timestamp { if x != nil { return x.ClickTime } @@ -689,7 +689,7 @@ func (x *AnswerFeedback) GetDisplayed() bool { return false } -func (x *AnswerFeedback) GetDisplayTime() *timestamppb.Timestamp { +func (x *AnswerFeedback) GetDisplayTime() *timestamp.Timestamp { if x != nil { return x.DisplayTime } @@ -1132,8 +1132,8 @@ var file_google_cloud_dialogflow_v2_answer_record_proto_goTypes = []interface{}{ (*AnswerFeedback)(nil), // 8: google.cloud.dialogflow.v2.AnswerFeedback (*AgentAssistantFeedback)(nil), // 9: google.cloud.dialogflow.v2.AgentAssistantFeedback (*AgentAssistantRecord)(nil), // 10: google.cloud.dialogflow.v2.AgentAssistantRecord - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 12: google.protobuf.Timestamp (*ArticleAnswer)(nil), // 13: google.cloud.dialogflow.v2.ArticleAnswer (*FaqAnswer)(nil), // 14: google.cloud.dialogflow.v2.FaqAnswer } diff --git a/dialogflow/apiv2/dialogflowpb/audio_config.pb.go b/dialogflow/apiv2/dialogflowpb/audio_config.pb.go index 3d1f391464c2..50a4eaa90640 100644 --- a/dialogflow/apiv2/dialogflowpb/audio_config.pb.go +++ b/dialogflow/apiv2/dialogflowpb/audio_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/audio_config.proto package dialogflowpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -435,11 +435,11 @@ type SpeechWordInfo struct { // Time offset relative to the beginning of the audio that corresponds to the // start of the spoken word. This is an experimental feature and the accuracy // of the time offset can vary. - StartOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` + StartOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` // Time offset relative to the beginning of the audio that corresponds to the // end of the spoken word. This is an experimental feature and the accuracy of // the time offset can vary. - EndOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` + EndOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` // The Speech confidence between 0.0 and 1.0 for this word. A higher number // indicates an estimated greater likelihood that the recognized word is // correct. The default of 0.0 is a sentinel value indicating that confidence @@ -489,14 +489,14 @@ func (x *SpeechWordInfo) GetWord() string { return "" } -func (x *SpeechWordInfo) GetStartOffset() *durationpb.Duration { +func (x *SpeechWordInfo) GetStartOffset() *duration.Duration { if x != nil { return x.StartOffset } return nil } -func (x *SpeechWordInfo) GetEndOffset() *durationpb.Duration { +func (x *SpeechWordInfo) GetEndOffset() *duration.Duration { if x != nil { return x.EndOffset } @@ -1191,7 +1191,7 @@ var file_google_cloud_dialogflow_v2_audio_config_proto_goTypes = []interface{}{ (*SynthesizeSpeechConfig)(nil), // 8: google.cloud.dialogflow.v2.SynthesizeSpeechConfig (*OutputAudioConfig)(nil), // 9: google.cloud.dialogflow.v2.OutputAudioConfig (*SpeechToTextConfig)(nil), // 10: google.cloud.dialogflow.v2.SpeechToTextConfig - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*duration.Duration)(nil), // 11: google.protobuf.Duration } var file_google_cloud_dialogflow_v2_audio_config_proto_depIdxs = []int32{ 11, // 0: google.cloud.dialogflow.v2.SpeechWordInfo.start_offset:type_name -> google.protobuf.Duration diff --git a/dialogflow/apiv2/dialogflowpb/context.pb.go b/dialogflow/apiv2/dialogflowpb/context.pb.go index 4453626f9b28..0d31a7173150 100644 --- a/dialogflow/apiv2/dialogflowpb/context.pb.go +++ b/dialogflow/apiv2/dialogflowpb/context.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/context.proto package dialogflowpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -103,7 +103,7 @@ type Context struct { // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value - Parameters *structpb.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"` } func (x *Context) Reset() { @@ -152,7 +152,7 @@ func (x *Context) GetLifespanCount() int32 { return 0 } -func (x *Context) GetParameters() *structpb.Struct { +func (x *Context) GetParameters() *_struct.Struct { if x != nil { return x.Parameters } @@ -418,7 +418,7 @@ type UpdateContextRequest struct { // Required. The context to update. Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateContextRequest) Reset() { @@ -460,7 +460,7 @@ func (x *UpdateContextRequest) GetContext() *Context { return nil } -func (x *UpdateContextRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -887,9 +887,9 @@ var file_google_cloud_dialogflow_v2_context_proto_goTypes = []interface{}{ (*UpdateContextRequest)(nil), // 5: google.cloud.dialogflow.v2.UpdateContextRequest (*DeleteContextRequest)(nil), // 6: google.cloud.dialogflow.v2.DeleteContextRequest (*DeleteAllContextsRequest)(nil), // 7: google.cloud.dialogflow.v2.DeleteAllContextsRequest - (*structpb.Struct)(nil), // 8: google.protobuf.Struct - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 10: google.protobuf.Empty + (*_struct.Struct)(nil), // 8: google.protobuf.Struct + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*empty.Empty)(nil), // 10: google.protobuf.Empty } var file_google_cloud_dialogflow_v2_context_proto_depIdxs = []int32{ 8, // 0: google.cloud.dialogflow.v2.Context.parameters:type_name -> google.protobuf.Struct @@ -1062,9 +1062,9 @@ type ContextsClient interface { // Updates the specified context. UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) // Deletes the specified context. - DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Deletes all active contexts in the specified session. - DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type contextsClient struct { @@ -1111,8 +1111,8 @@ func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextReq return out, nil } -func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteContext", in, out, opts...) if err != nil { return nil, err @@ -1120,8 +1120,8 @@ func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextReq return out, nil } -func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts", in, out, opts...) if err != nil { return nil, err @@ -1142,9 +1142,9 @@ type ContextsServer interface { // Updates the specified context. UpdateContext(context.Context, *UpdateContextRequest) (*Context, error) // Deletes the specified context. - DeleteContext(context.Context, *DeleteContextRequest) (*emptypb.Empty, error) + DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error) // Deletes all active contexts in the specified session. - DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*emptypb.Empty, error) + DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error) } // UnimplementedContextsServer can be embedded to have forward compatible implementations. @@ -1163,10 +1163,10 @@ func (*UnimplementedContextsServer) CreateContext(context.Context, *CreateContex func (*UnimplementedContextsServer) UpdateContext(context.Context, *UpdateContextRequest) (*Context, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateContext not implemented") } -func (*UnimplementedContextsServer) DeleteContext(context.Context, *DeleteContextRequest) (*emptypb.Empty, error) { +func (*UnimplementedContextsServer) DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteContext not implemented") } -func (*UnimplementedContextsServer) DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*emptypb.Empty, error) { +func (*UnimplementedContextsServer) DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAllContexts not implemented") } diff --git a/dialogflow/apiv2/dialogflowpb/conversation.pb.go b/dialogflow/apiv2/dialogflowpb/conversation.pb.go index 50d5b6c3e04e..db1786e1e3e6 100644 --- a/dialogflow/apiv2/dialogflowpb/conversation.pb.go +++ b/dialogflow/apiv2/dialogflowpb/conversation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/conversation.proto package dialogflowpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -176,9 +176,9 @@ type Conversation struct { // telephony. PhoneNumber *ConversationPhoneNumber `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // Output only. The time the conversation was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time the conversation was finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The stage of a conversation. It indicates whether the virtual agent or a // human agent is handling the conversation. // @@ -255,14 +255,14 @@ func (x *Conversation) GetPhoneNumber() *ConversationPhoneNumber { return nil } -func (x *Conversation) GetStartTime() *timestamppb.Timestamp { +func (x *Conversation) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Conversation) GetEndTime() *timestamppb.Timestamp { +func (x *Conversation) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1083,7 +1083,7 @@ var file_google_cloud_dialogflow_v2_conversation_proto_goTypes = []interface{}{ (*ListMessagesRequest)(nil), // 8: google.cloud.dialogflow.v2.ListMessagesRequest (*ListMessagesResponse)(nil), // 9: google.cloud.dialogflow.v2.ListMessagesResponse (*ConversationPhoneNumber)(nil), // 10: google.cloud.dialogflow.v2.ConversationPhoneNumber - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp (*Message)(nil), // 12: google.cloud.dialogflow.v2.Message } var file_google_cloud_dialogflow_v2_conversation_proto_depIdxs = []int32{ diff --git a/dialogflow/apiv2/dialogflowpb/conversation_dataset.pb.go b/dialogflow/apiv2/dialogflowpb/conversation_dataset.pb.go index 056d8308b9b8..2b9dbe555ccb 100644 --- a/dialogflow/apiv2/dialogflowpb/conversation_dataset.pb.go +++ b/dialogflow/apiv2/dialogflowpb/conversation_dataset.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/conversation_dataset.proto package dialogflowpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" @@ -33,7 +34,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -186,7 +186,7 @@ type ConversationDataset struct { // Optional. The description of the dataset. Maximum of 10000 bytes. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. Creation time of this dataset. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Input configurations set during conversation data import. InputConfig *InputConfig `protobuf:"bytes,5,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` // Output only. Metadata set during conversation data import. @@ -248,7 +248,7 @@ func (x *ConversationDataset) GetDescription() string { return "" } -func (x *ConversationDataset) GetCreateTime() *timestamppb.Timestamp { +func (x *ConversationDataset) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -645,7 +645,7 @@ type ImportConversationDataOperationMetadata struct { PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"` // Timestamp when import conversation data request was created. The time is // measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *ImportConversationDataOperationMetadata) Reset() { @@ -694,7 +694,7 @@ func (x *ImportConversationDataOperationMetadata) GetPartialFailures() []*status return nil } -func (x *ImportConversationDataOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ImportConversationDataOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1164,7 +1164,7 @@ var file_google_cloud_dialogflow_v2_conversation_dataset_proto_goTypes = []inter (*CreateConversationDatasetOperationMetadata)(nil), // 11: google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata (*DeleteConversationDatasetOperationMetadata)(nil), // 12: google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata (*GcsSources)(nil), // 13: google.cloud.dialogflow.v2.GcsSources - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp (*status.Status)(nil), // 15: google.rpc.Status (*longrunning.Operation)(nil), // 16: google.longrunning.Operation } diff --git a/dialogflow/apiv2/dialogflowpb/conversation_event.pb.go b/dialogflow/apiv2/dialogflowpb/conversation_event.pb.go index 9da8c5aca305..8db43259c6ac 100644 --- a/dialogflow/apiv2/dialogflowpb/conversation_event.pb.go +++ b/dialogflow/apiv2/dialogflowpb/conversation_event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/conversation_event.proto package dialogflowpb diff --git a/dialogflow/apiv2/dialogflowpb/conversation_model.pb.go b/dialogflow/apiv2/dialogflowpb/conversation_model.pb.go index 2a52135a7fe7..f5b69b883640 100644 --- a/dialogflow/apiv2/dialogflowpb/conversation_model.pb.go +++ b/dialogflow/apiv2/dialogflowpb/conversation_model.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/conversation_model.proto package dialogflowpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -322,7 +322,7 @@ type ConversationModel struct { // Required. The display name of the model. At most 64 bytes long. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Creation time of this model. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Required. Datasets used to create model. Datasets []*InputDataset `protobuf:"bytes,4,rep,name=datasets,proto3" json:"datasets,omitempty"` // Output only. State of the model. A model can only serve prediction requests @@ -391,7 +391,7 @@ func (x *ConversationModel) GetDisplayName() string { return "" } -func (x *ConversationModel) GetCreateTime() *timestamppb.Timestamp { +func (x *ConversationModel) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -473,7 +473,7 @@ type ConversationModelEvaluation struct { // Optional. The configuration of the evaluation task. EvaluationConfig *EvaluationConfig `protobuf:"bytes,6,opt,name=evaluation_config,json=evaluationConfig,proto3" json:"evaluation_config,omitempty"` // Output only. Creation time of this model. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Metrics details. // // Types that are assignable to Metrics: @@ -535,7 +535,7 @@ func (x *ConversationModelEvaluation) GetEvaluationConfig() *EvaluationConfig { return nil } -func (x *ConversationModelEvaluation) GetCreateTime() *timestamppb.Timestamp { +func (x *ConversationModelEvaluation) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1531,7 +1531,7 @@ type CreateConversationModelOperationMetadata struct { State CreateConversationModelOperationMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata_State" json:"state,omitempty"` // Timestamp when the request to create conversation model is submitted. The // time is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *CreateConversationModelOperationMetadata) Reset() { @@ -1580,7 +1580,7 @@ func (x *CreateConversationModelOperationMetadata) GetState() CreateConversation return CreateConversationModelOperationMetadata_STATE_UNSPECIFIED } -func (x *CreateConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateConversationModelOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1598,7 +1598,7 @@ type DeployConversationModelOperationMetadata struct { ConversationModel string `protobuf:"bytes,1,opt,name=conversation_model,json=conversationModel,proto3" json:"conversation_model,omitempty"` // Timestamp when request to deploy conversation model was submitted. The time // is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *DeployConversationModelOperationMetadata) Reset() { @@ -1640,7 +1640,7 @@ func (x *DeployConversationModelOperationMetadata) GetConversationModel() string return "" } -func (x *DeployConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *DeployConversationModelOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1658,7 +1658,7 @@ type UndeployConversationModelOperationMetadata struct { ConversationModel string `protobuf:"bytes,1,opt,name=conversation_model,json=conversationModel,proto3" json:"conversation_model,omitempty"` // Timestamp when the request to undeploy conversation model was submitted. // The time is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *UndeployConversationModelOperationMetadata) Reset() { @@ -1700,7 +1700,7 @@ func (x *UndeployConversationModelOperationMetadata) GetConversationModel() stri return "" } -func (x *UndeployConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *UndeployConversationModelOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1718,7 +1718,7 @@ type DeleteConversationModelOperationMetadata struct { ConversationModel string `protobuf:"bytes,1,opt,name=conversation_model,json=conversationModel,proto3" json:"conversation_model,omitempty"` // Timestamp when delete conversation model request was created. The time is // measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *DeleteConversationModelOperationMetadata) Reset() { @@ -1760,7 +1760,7 @@ func (x *DeleteConversationModelOperationMetadata) GetConversationModel() string return "" } -func (x *DeleteConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *DeleteConversationModelOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1787,7 +1787,7 @@ type CreateConversationModelEvaluationOperationMetadata struct { State CreateConversationModelEvaluationOperationMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata_State" json:"state,omitempty"` // Timestamp when the request to create conversation model was submitted. The // time is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *CreateConversationModelEvaluationOperationMetadata) Reset() { @@ -1843,7 +1843,7 @@ func (x *CreateConversationModelEvaluationOperationMetadata) GetState() CreateCo return CreateConversationModelEvaluationOperationMetadata_STATE_UNSPECIFIED } -func (x *CreateConversationModelEvaluationOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateConversationModelEvaluationOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -2654,7 +2654,7 @@ var file_google_cloud_dialogflow_v2_conversation_model_proto_goTypes = []interfa (*EvaluationConfig_SmartReplyConfig)(nil), // 27: google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig (*EvaluationConfig_SmartComposeConfig)(nil), // 28: google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig (*SmartReplyMetrics_TopNMetrics)(nil), // 29: google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics - (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 30: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 31: google.longrunning.Operation } var file_google_cloud_dialogflow_v2_conversation_model_proto_depIdxs = []int32{ diff --git a/dialogflow/apiv2/dialogflowpb/conversation_profile.pb.go b/dialogflow/apiv2/dialogflowpb/conversation_profile.pb.go index 728a5a792e35..fbcc45921f10 100644 --- a/dialogflow/apiv2/dialogflowpb/conversation_profile.pb.go +++ b/dialogflow/apiv2/dialogflowpb/conversation_profile.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/conversation_profile.proto package dialogflowpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -167,9 +167,9 @@ type ConversationProfile struct { // Required. Human readable name for this profile. Max length 1024 bytes. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Create time of the conversation profile. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Update time of the conversation profile. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Configuration for an automated agent to use with this profile. AutomatedAgentConfig *AutomatedAgentConfig `protobuf:"bytes,3,opt,name=automated_agent_config,json=automatedAgentConfig,proto3" json:"automated_agent_config,omitempty"` // Configuration for agent assistance to use with this profile. @@ -250,14 +250,14 @@ func (x *ConversationProfile) GetDisplayName() string { return "" } -func (x *ConversationProfile) GetCreateTime() *timestamppb.Timestamp { +func (x *ConversationProfile) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ConversationProfile) GetUpdateTime() *timestamppb.Timestamp { +func (x *ConversationProfile) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -582,7 +582,7 @@ type UpdateConversationProfileRequest struct { // Required. The conversation profile to update. ConversationProfile *ConversationProfile `protobuf:"bytes,1,opt,name=conversation_profile,json=conversationProfile,proto3" json:"conversation_profile,omitempty"` // Required. The mask to control which fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateConversationProfileRequest) Reset() { @@ -624,7 +624,7 @@ func (x *UpdateConversationProfileRequest) GetConversationProfile() *Conversatio return nil } -func (x *UpdateConversationProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateConversationProfileRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1252,7 +1252,7 @@ type SetSuggestionFeatureConfigOperationMetadata struct { // Required. The type of the suggestion feature to add or update. SuggestionFeatureType SuggestionFeature_Type `protobuf:"varint,3,opt,name=suggestion_feature_type,json=suggestionFeatureType,proto3,enum=google.cloud.dialogflow.v2.SuggestionFeature_Type" json:"suggestion_feature_type,omitempty"` // Timestamp whe the request was created. The time is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *SetSuggestionFeatureConfigOperationMetadata) Reset() { @@ -1308,7 +1308,7 @@ func (x *SetSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType() return SuggestionFeature_TYPE_UNSPECIFIED } -func (x *SetSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *SetSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1332,7 +1332,7 @@ type ClearSuggestionFeatureConfigOperationMetadata struct { // Required. The type of the suggestion feature to remove. SuggestionFeatureType SuggestionFeature_Type `protobuf:"varint,3,opt,name=suggestion_feature_type,json=suggestionFeatureType,proto3,enum=google.cloud.dialogflow.v2.SuggestionFeature_Type" json:"suggestion_feature_type,omitempty"` // Timestamp whe the request was created. The time is measured on server side. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *ClearSuggestionFeatureConfigOperationMetadata) Reset() { @@ -1388,7 +1388,7 @@ func (x *ClearSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType return SuggestionFeature_TYPE_UNSPECIFIED } -func (x *ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -3063,11 +3063,11 @@ var file_google_cloud_dialogflow_v2_conversation_profile_proto_goTypes = []inter (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings)(nil), // 29: google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings (*HumanAgentHandoffConfig_LivePersonConfig)(nil), // 30: google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig)(nil), // 31: google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 32: google.protobuf.Timestamp (*SpeechToTextConfig)(nil), // 33: google.cloud.dialogflow.v2.SpeechToTextConfig - (*fieldmaskpb.FieldMask)(nil), // 34: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 34: google.protobuf.FieldMask (Participant_Role)(0), // 35: google.cloud.dialogflow.v2.Participant.Role - (*emptypb.Empty)(nil), // 36: google.protobuf.Empty + (*empty.Empty)(nil), // 36: google.protobuf.Empty (*longrunning.Operation)(nil), // 37: google.longrunning.Operation } var file_google_cloud_dialogflow_v2_conversation_profile_proto_depIdxs = []int32{ @@ -3561,7 +3561,7 @@ type ConversationProfilesClient interface { // [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. UpdateConversationProfile(ctx context.Context, in *UpdateConversationProfileRequest, opts ...grpc.CallOption) (*ConversationProfile, error) // Deletes the specified conversation profile. - DeleteConversationProfile(ctx context.Context, in *DeleteConversationProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteConversationProfile(ctx context.Context, in *DeleteConversationProfileRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Adds or updates a suggestion feature in a conversation profile. // If the conversation profile contains the type of suggestion feature for // the participant role, it will update it. Otherwise it will insert the @@ -3635,8 +3635,8 @@ func (c *conversationProfilesClient) UpdateConversationProfile(ctx context.Conte return out, nil } -func (c *conversationProfilesClient) DeleteConversationProfile(ctx context.Context, in *DeleteConversationProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *conversationProfilesClient) DeleteConversationProfile(ctx context.Context, in *DeleteConversationProfileRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.ConversationProfiles/DeleteConversationProfile", in, out, opts...) if err != nil { return nil, err @@ -3681,7 +3681,7 @@ type ConversationProfilesServer interface { // [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. UpdateConversationProfile(context.Context, *UpdateConversationProfileRequest) (*ConversationProfile, error) // Deletes the specified conversation profile. - DeleteConversationProfile(context.Context, *DeleteConversationProfileRequest) (*emptypb.Empty, error) + DeleteConversationProfile(context.Context, *DeleteConversationProfileRequest) (*empty.Empty, error) // Adds or updates a suggestion feature in a conversation profile. // If the conversation profile contains the type of suggestion feature for // the participant role, it will update it. Otherwise it will insert the @@ -3727,7 +3727,7 @@ func (*UnimplementedConversationProfilesServer) CreateConversationProfile(contex func (*UnimplementedConversationProfilesServer) UpdateConversationProfile(context.Context, *UpdateConversationProfileRequest) (*ConversationProfile, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateConversationProfile not implemented") } -func (*UnimplementedConversationProfilesServer) DeleteConversationProfile(context.Context, *DeleteConversationProfileRequest) (*emptypb.Empty, error) { +func (*UnimplementedConversationProfilesServer) DeleteConversationProfile(context.Context, *DeleteConversationProfileRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteConversationProfile not implemented") } func (*UnimplementedConversationProfilesServer) SetSuggestionFeatureConfig(context.Context, *SetSuggestionFeatureConfigRequest) (*longrunning.Operation, error) { diff --git a/dialogflow/apiv2/dialogflowpb/document.pb.go b/dialogflow/apiv2/dialogflowpb/document.pb.go index 9954f8e49644..8002a7093865 100644 --- a/dialogflow/apiv2/dialogflowpb/document.pb.go +++ b/dialogflow/apiv2/dialogflowpb/document.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/document.proto package dialogflowpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -995,7 +995,7 @@ type UpdateDocumentRequest struct { // Optional. Not specified means `update all`. // Currently, only `display_name` can be updated, an InvalidArgument will be // returned for attempting to update other fields. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDocumentRequest) Reset() { @@ -1037,7 +1037,7 @@ func (x *UpdateDocumentRequest) GetDocument() *Document { return nil } -func (x *UpdateDocumentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDocumentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1402,7 +1402,7 @@ type Document_ReloadStatus struct { // The time of a reload attempt. // This reload may have been triggered automatically or manually and may // not have succeeded. - Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // The status of a reload attempt or the initial load. Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` } @@ -1439,7 +1439,7 @@ func (*Document_ReloadStatus) Descriptor() ([]byte, []int) { return file_google_cloud_dialogflow_v2_document_proto_rawDescGZIP(), []int{0, 0} } -func (x *Document_ReloadStatus) GetTime() *timestamppb.Timestamp { +func (x *Document_ReloadStatus) GetTime() *timestamp.Timestamp { if x != nil { return x.Time } @@ -1947,9 +1947,9 @@ var file_google_cloud_dialogflow_v2_document_proto_goTypes = []interface{}{ nil, // 19: google.cloud.dialogflow.v2.ImportDocumentTemplate.MetadataEntry (*GcsSources)(nil), // 20: google.cloud.dialogflow.v2.GcsSources (*status.Status)(nil), // 21: google.rpc.Status - (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 22: google.protobuf.FieldMask (*GcsDestination)(nil), // 23: google.cloud.dialogflow.v2.GcsDestination - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 25: google.longrunning.Operation } var file_google_cloud_dialogflow_v2_document_proto_depIdxs = []int32{ diff --git a/dialogflow/apiv2/dialogflowpb/entity_type.pb.go b/dialogflow/apiv2/dialogflowpb/entity_type.pb.go index 3870502be9ea..5d7f4a99a054 100644 --- a/dialogflow/apiv2/dialogflowpb/entity_type.pb.go +++ b/dialogflow/apiv2/dialogflowpb/entity_type.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/entity_type.proto package dialogflowpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -557,7 +557,7 @@ type UpdateEntityTypeRequest struct { // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEntityTypeRequest) Reset() { @@ -606,7 +606,7 @@ func (x *UpdateEntityTypeRequest) GetLanguageCode() string { return "" } -func (x *UpdateEntityTypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -691,7 +691,7 @@ type BatchUpdateEntityTypesRequest struct { // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *BatchUpdateEntityTypesRequest) Reset() { @@ -761,7 +761,7 @@ func (x *BatchUpdateEntityTypesRequest) GetLanguageCode() string { return "" } -func (x *BatchUpdateEntityTypesRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *BatchUpdateEntityTypesRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -990,7 +990,7 @@ type BatchUpdateEntitiesRequest struct { // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *BatchUpdateEntitiesRequest) Reset() { @@ -1046,7 +1046,7 @@ func (x *BatchUpdateEntitiesRequest) GetLanguageCode() string { return "" } -func (x *BatchUpdateEntitiesRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *BatchUpdateEntitiesRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1726,8 +1726,8 @@ var file_google_cloud_dialogflow_v2_entity_type_proto_goTypes = []interface{}{ (*BatchDeleteEntitiesRequest)(nil), // 14: google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest (*EntityTypeBatch)(nil), // 15: google.cloud.dialogflow.v2.EntityTypeBatch (*EntityType_Entity)(nil), // 16: google.cloud.dialogflow.v2.EntityType.Entity - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 18: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*empty.Empty)(nil), // 18: google.protobuf.Empty (*longrunning.Operation)(nil), // 19: google.longrunning.Operation } var file_google_cloud_dialogflow_v2_entity_type_proto_depIdxs = []int32{ @@ -2017,7 +2017,7 @@ type EntityTypesClient interface { // Note: You should always train an agent prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/es/docs/training). - DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates/Creates multiple entity types in the specified agent. // // This method is a [long-running @@ -2140,8 +2140,8 @@ func (c *entityTypesClient) UpdateEntityType(ctx context.Context, in *UpdateEnti return out, nil } -func (c *entityTypesClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *entityTypesClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/DeleteEntityType", in, out, opts...) if err != nil { return nil, err @@ -2217,7 +2217,7 @@ type EntityTypesServer interface { // Note: You should always train an agent prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/es/docs/training). - DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*emptypb.Empty, error) + DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*empty.Empty, error) // Updates/Creates multiple entity types in the specified agent. // // This method is a [long-running @@ -2312,7 +2312,7 @@ func (*UnimplementedEntityTypesServer) CreateEntityType(context.Context, *Create func (*UnimplementedEntityTypesServer) UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEntityType not implemented") } -func (*UnimplementedEntityTypesServer) DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*emptypb.Empty, error) { +func (*UnimplementedEntityTypesServer) DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEntityType not implemented") } func (*UnimplementedEntityTypesServer) BatchUpdateEntityTypes(context.Context, *BatchUpdateEntityTypesRequest) (*longrunning.Operation, error) { diff --git a/dialogflow/apiv2/dialogflowpb/environment.pb.go b/dialogflow/apiv2/dialogflowpb/environment.pb.go index 4f82346820cf..655626adccba 100644 --- a/dialogflow/apiv2/dialogflowpb/environment.pb.go +++ b/dialogflow/apiv2/dialogflowpb/environment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/environment.proto package dialogflowpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -151,7 +151,7 @@ type Environment struct { State Environment_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.Environment_State" json:"state,omitempty"` // Output only. The last update time of this environment. This field is read-only, i.e., it // cannot be set by create and update methods. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Text to speech settings for this environment. TextToSpeechSettings *TextToSpeechSettings `protobuf:"bytes,7,opt,name=text_to_speech_settings,json=textToSpeechSettings,proto3" json:"text_to_speech_settings,omitempty"` // Optional. The fulfillment settings to use for this environment. @@ -218,7 +218,7 @@ func (x *Environment) GetState() Environment_State { return Environment_STATE_UNSPECIFIED } -func (x *Environment) GetUpdateTime() *timestamppb.Timestamp { +func (x *Environment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -590,7 +590,7 @@ type UpdateEnvironmentRequest struct { // Required. The environment to update. Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"` // Required. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. This field is used to prevent accidental overwrite of the default // environment, which is an operation that cannot be undone. To confirm that // the caller desires this overwrite, this field must be explicitly set to @@ -637,7 +637,7 @@ func (x *UpdateEnvironmentRequest) GetEnvironment() *Environment { return nil } -func (x *UpdateEnvironmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEnvironmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -869,7 +869,7 @@ type EnvironmentHistory_Entry struct { // The developer-provided description for this environment history entry. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The creation time of this environment history entry. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *EnvironmentHistory_Entry) Reset() { @@ -918,7 +918,7 @@ func (x *EnvironmentHistory_Entry) GetDescription() string { return "" } -func (x *EnvironmentHistory_Entry) GetCreateTime() *timestamppb.Timestamp { +func (x *EnvironmentHistory_Entry) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1264,12 +1264,12 @@ var file_google_cloud_dialogflow_v2_environment_proto_goTypes = []interface{}{ (*EnvironmentHistory)(nil), // 10: google.cloud.dialogflow.v2.EnvironmentHistory nil, // 11: google.cloud.dialogflow.v2.TextToSpeechSettings.SynthesizeSpeechConfigsEntry (*EnvironmentHistory_Entry)(nil), // 12: google.cloud.dialogflow.v2.EnvironmentHistory.Entry - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp (*Fulfillment)(nil), // 14: google.cloud.dialogflow.v2.Fulfillment (OutputAudioEncoding)(0), // 15: google.cloud.dialogflow.v2.OutputAudioEncoding - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (*SynthesizeSpeechConfig)(nil), // 17: google.cloud.dialogflow.v2.SynthesizeSpeechConfig - (*emptypb.Empty)(nil), // 18: google.protobuf.Empty + (*empty.Empty)(nil), // 18: google.protobuf.Empty } var file_google_cloud_dialogflow_v2_environment_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.v2.Environment.state:type_name -> google.cloud.dialogflow.v2.Environment.State @@ -1498,7 +1498,7 @@ type EnvironmentsClient interface { // draft agent to a version before calling this method. UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error) // Deletes the specified agent environment. - DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the history of the specified environment. GetEnvironmentHistory(ctx context.Context, in *GetEnvironmentHistoryRequest, opts ...grpc.CallOption) (*EnvironmentHistory, error) } @@ -1547,8 +1547,8 @@ func (c *environmentsClient) UpdateEnvironment(ctx context.Context, in *UpdateEn return out, nil } -func (c *environmentsClient) DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *environmentsClient) DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Environments/DeleteEnvironment", in, out, opts...) if err != nil { return nil, err @@ -1587,7 +1587,7 @@ type EnvironmentsServer interface { // draft agent to a version before calling this method. UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*Environment, error) // Deletes the specified agent environment. - DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error) + DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*empty.Empty, error) // Gets the history of the specified environment. GetEnvironmentHistory(context.Context, *GetEnvironmentHistoryRequest) (*EnvironmentHistory, error) } @@ -1608,7 +1608,7 @@ func (*UnimplementedEnvironmentsServer) CreateEnvironment(context.Context, *Crea func (*UnimplementedEnvironmentsServer) UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*Environment, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEnvironment not implemented") } -func (*UnimplementedEnvironmentsServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error) { +func (*UnimplementedEnvironmentsServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEnvironment not implemented") } func (*UnimplementedEnvironmentsServer) GetEnvironmentHistory(context.Context, *GetEnvironmentHistoryRequest) (*EnvironmentHistory, error) { diff --git a/dialogflow/apiv2/dialogflowpb/fulfillment.pb.go b/dialogflow/apiv2/dialogflowpb/fulfillment.pb.go index 3aa025f33e0a..e95a7e4e92a3 100644 --- a/dialogflow/apiv2/dialogflowpb/fulfillment.pb.go +++ b/dialogflow/apiv2/dialogflowpb/fulfillment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/fulfillment.proto package dialogflowpb @@ -26,12 +26,12 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -274,7 +274,7 @@ type UpdateFulfillmentRequest struct { Fulfillment *Fulfillment `protobuf:"bytes,1,opt,name=fulfillment,proto3" json:"fulfillment,omitempty"` // Required. The mask to control which fields get updated. If the mask is not // present, all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFulfillmentRequest) Reset() { @@ -316,7 +316,7 @@ func (x *UpdateFulfillmentRequest) GetFulfillment() *Fulfillment { return nil } -func (x *UpdateFulfillmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFulfillmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -641,7 +641,7 @@ var file_google_cloud_dialogflow_v2_fulfillment_proto_goTypes = []interface{}{ (*Fulfillment_GenericWebService)(nil), // 4: google.cloud.dialogflow.v2.Fulfillment.GenericWebService (*Fulfillment_Feature)(nil), // 5: google.cloud.dialogflow.v2.Fulfillment.Feature nil, // 6: google.cloud.dialogflow.v2.Fulfillment.GenericWebService.RequestHeadersEntry - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask } var file_google_cloud_dialogflow_v2_fulfillment_proto_depIdxs = []int32{ 4, // 0: google.cloud.dialogflow.v2.Fulfillment.generic_web_service:type_name -> google.cloud.dialogflow.v2.Fulfillment.GenericWebService diff --git a/dialogflow/apiv2/dialogflowpb/gcs.pb.go b/dialogflow/apiv2/dialogflowpb/gcs.pb.go index 3a828c505bce..5032278615ec 100644 --- a/dialogflow/apiv2/dialogflowpb/gcs.pb.go +++ b/dialogflow/apiv2/dialogflowpb/gcs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/gcs.proto package dialogflowpb diff --git a/dialogflow/apiv2/dialogflowpb/human_agent_assistant_event.pb.go b/dialogflow/apiv2/dialogflowpb/human_agent_assistant_event.pb.go index 118505745949..477b70514c95 100644 --- a/dialogflow/apiv2/dialogflowpb/human_agent_assistant_event.pb.go +++ b/dialogflow/apiv2/dialogflowpb/human_agent_assistant_event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto package dialogflowpb diff --git a/dialogflow/apiv2/dialogflowpb/intent.pb.go b/dialogflow/apiv2/dialogflowpb/intent.pb.go index e1d6e45d2174..63e2d63a131d 100644 --- a/dialogflow/apiv2/dialogflowpb/intent.pb.go +++ b/dialogflow/apiv2/dialogflowpb/intent.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/intent.proto package dialogflowpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -1126,7 +1126,7 @@ type UpdateIntentRequest struct { // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. The resource view to apply to the returned intent. IntentView IntentView `protobuf:"varint,4,opt,name=intent_view,json=intentView,proto3,enum=google.cloud.dialogflow.v2.IntentView" json:"intent_view,omitempty"` } @@ -1177,7 +1177,7 @@ func (x *UpdateIntentRequest) GetLanguageCode() string { return "" } -func (x *UpdateIntentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIntentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1264,7 +1264,7 @@ type BatchUpdateIntentsRequest struct { // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. The resource view to apply to the returned intent. IntentView IntentView `protobuf:"varint,6,opt,name=intent_view,json=intentView,proto3,enum=google.cloud.dialogflow.v2.IntentView" json:"intent_view,omitempty"` } @@ -1336,7 +1336,7 @@ func (x *BatchUpdateIntentsRequest) GetLanguageCode() string { return "" } -func (x *BatchUpdateIntentsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *BatchUpdateIntentsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1850,7 +1850,7 @@ func (x *Intent_Message) GetCard() *Intent_Message_Card { return nil } -func (x *Intent_Message) GetPayload() *structpb.Struct { +func (x *Intent_Message) GetPayload() *_struct.Struct { if x, ok := x.GetMessage().(*Intent_Message_Payload); ok { return x.Payload } @@ -1953,7 +1953,7 @@ type Intent_Message_Card_ struct { type Intent_Message_Payload struct { // A custom platform-specific response. - Payload *structpb.Struct `protobuf:"bytes,5,opt,name=payload,proto3,oneof"` + Payload *_struct.Struct `protobuf:"bytes,5,opt,name=payload,proto3,oneof"` } type Intent_Message_SimpleResponses_ struct { @@ -4822,9 +4822,9 @@ var file_google_cloud_dialogflow_v2_intent_proto_goTypes = []interface{}{ (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem)(nil), // 49: google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction)(nil), // 50: google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction (*Context)(nil), // 51: google.cloud.dialogflow.v2.Context - (*fieldmaskpb.FieldMask)(nil), // 52: google.protobuf.FieldMask - (*structpb.Struct)(nil), // 53: google.protobuf.Struct - (*emptypb.Empty)(nil), // 54: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 52: google.protobuf.FieldMask + (*_struct.Struct)(nil), // 53: google.protobuf.Struct + (*empty.Empty)(nil), // 54: google.protobuf.Empty (*longrunning.Operation)(nil), // 55: google.longrunning.Operation } var file_google_cloud_dialogflow_v2_intent_proto_depIdxs = []int32{ @@ -5516,7 +5516,7 @@ type IntentsClient interface { // Note: You should always train an agent prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/es/docs/training). - DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates/Creates multiple intents in the specified agent. // // This method is a [long-running @@ -5592,8 +5592,8 @@ func (c *intentsClient) UpdateIntent(ctx context.Context, in *UpdateIntentReques return out, nil } -func (c *intentsClient) DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *intentsClient) DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Intents/DeleteIntent", in, out, opts...) if err != nil { return nil, err @@ -5642,7 +5642,7 @@ type IntentsServer interface { // Note: You should always train an agent prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/es/docs/training). - DeleteIntent(context.Context, *DeleteIntentRequest) (*emptypb.Empty, error) + DeleteIntent(context.Context, *DeleteIntentRequest) (*empty.Empty, error) // Updates/Creates multiple intents in the specified agent. // // This method is a [long-running @@ -5690,7 +5690,7 @@ func (*UnimplementedIntentsServer) CreateIntent(context.Context, *CreateIntentRe func (*UnimplementedIntentsServer) UpdateIntent(context.Context, *UpdateIntentRequest) (*Intent, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateIntent not implemented") } -func (*UnimplementedIntentsServer) DeleteIntent(context.Context, *DeleteIntentRequest) (*emptypb.Empty, error) { +func (*UnimplementedIntentsServer) DeleteIntent(context.Context, *DeleteIntentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteIntent not implemented") } func (*UnimplementedIntentsServer) BatchUpdateIntents(context.Context, *BatchUpdateIntentsRequest) (*longrunning.Operation, error) { diff --git a/dialogflow/apiv2/dialogflowpb/knowledge_base.pb.go b/dialogflow/apiv2/dialogflowpb/knowledge_base.pb.go index 38a1484086f0..eae509fd9cec 100644 --- a/dialogflow/apiv2/dialogflowpb/knowledge_base.pb.go +++ b/dialogflow/apiv2/dialogflowpb/knowledge_base.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/knowledge_base.proto package dialogflowpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -468,7 +468,7 @@ type UpdateKnowledgeBaseRequest struct { // Optional. Not specified means `update all`. // Currently, only `display_name` can be updated, an InvalidArgument will be // returned for attempting to update other fields. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateKnowledgeBaseRequest) Reset() { @@ -510,7 +510,7 @@ func (x *UpdateKnowledgeBaseRequest) GetKnowledgeBase() *KnowledgeBase { return nil } -func (x *UpdateKnowledgeBaseRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateKnowledgeBaseRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -754,8 +754,8 @@ var file_google_cloud_dialogflow_v2_knowledge_base_proto_goTypes = []interface{} (*CreateKnowledgeBaseRequest)(nil), // 4: google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest (*DeleteKnowledgeBaseRequest)(nil), // 5: google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest (*UpdateKnowledgeBaseRequest)(nil), // 6: google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*empty.Empty)(nil), // 8: google.protobuf.Empty } var file_google_cloud_dialogflow_v2_knowledge_base_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.v2.ListKnowledgeBasesResponse.knowledge_bases:type_name -> google.cloud.dialogflow.v2.KnowledgeBase @@ -909,7 +909,7 @@ type KnowledgeBasesClient interface { // Creates a knowledge base. CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) // Deletes the specified knowledge base. - DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the specified knowledge base. UpdateKnowledgeBase(ctx context.Context, in *UpdateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) } @@ -949,8 +949,8 @@ func (c *knowledgeBasesClient) CreateKnowledgeBase(ctx context.Context, in *Crea return out, nil } -func (c *knowledgeBasesClient) DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *knowledgeBasesClient) DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.KnowledgeBases/DeleteKnowledgeBase", in, out, opts...) if err != nil { return nil, err @@ -976,7 +976,7 @@ type KnowledgeBasesServer interface { // Creates a knowledge base. CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*KnowledgeBase, error) // Deletes the specified knowledge base. - DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*emptypb.Empty, error) + DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*empty.Empty, error) // Updates the specified knowledge base. UpdateKnowledgeBase(context.Context, *UpdateKnowledgeBaseRequest) (*KnowledgeBase, error) } @@ -994,7 +994,7 @@ func (*UnimplementedKnowledgeBasesServer) GetKnowledgeBase(context.Context, *Get func (*UnimplementedKnowledgeBasesServer) CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*KnowledgeBase, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateKnowledgeBase not implemented") } -func (*UnimplementedKnowledgeBasesServer) DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*emptypb.Empty, error) { +func (*UnimplementedKnowledgeBasesServer) DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteKnowledgeBase not implemented") } func (*UnimplementedKnowledgeBasesServer) UpdateKnowledgeBase(context.Context, *UpdateKnowledgeBaseRequest) (*KnowledgeBase, error) { diff --git a/dialogflow/apiv2/dialogflowpb/participant.pb.go b/dialogflow/apiv2/dialogflowpb/participant.pb.go index 672aac2edc7f..9737eb91d43f 100644 --- a/dialogflow/apiv2/dialogflowpb/participant.pb.go +++ b/dialogflow/apiv2/dialogflowpb/participant.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/participant.proto package dialogflowpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -277,9 +277,9 @@ type Message struct { // Output only. The role of the participant. ParticipantRole Participant_Role `protobuf:"varint,5,opt,name=participant_role,json=participantRole,proto3,enum=google.cloud.dialogflow.v2.Participant_Role" json:"participant_role,omitempty"` // Output only. The time when the message was created in Contact Center AI. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Optional. The time when the message was sent. - SendTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` + SendTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // Output only. The annotation for the message. MessageAnnotation *MessageAnnotation `protobuf:"bytes,7,opt,name=message_annotation,json=messageAnnotation,proto3" json:"message_annotation,omitempty"` // Output only. The sentiment analysis result for the message. @@ -353,14 +353,14 @@ func (x *Message) GetParticipantRole() Participant_Role { return Participant_ROLE_UNSPECIFIED } -func (x *Message) GetCreateTime() *timestamppb.Timestamp { +func (x *Message) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Message) GetSendTime() *timestamppb.Timestamp { +func (x *Message) GetSendTime() *timestamp.Timestamp { if x != nil { return x.SendTime } @@ -631,7 +631,7 @@ type UpdateParticipantRequest struct { // Required. The participant to update. Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` // Required. The mask to specify which fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateParticipantRequest) Reset() { @@ -673,7 +673,7 @@ func (x *UpdateParticipantRequest) GetParticipant() *Participant { return nil } -func (x *UpdateParticipantRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateParticipantRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -713,7 +713,7 @@ type AnalyzeContentRequest struct { // // Note: this field should only be used if you are connecting to a Dialogflow // CX agent. - CxParameters *structpb.Struct `protobuf:"bytes,18,opt,name=cx_parameters,json=cxParameters,proto3" json:"cx_parameters,omitempty"` + CxParameters *_struct.Struct `protobuf:"bytes,18,opt,name=cx_parameters,json=cxParameters,proto3" json:"cx_parameters,omitempty"` // A unique identifier for this request. Restricted to 36 ASCII characters. // A random UUID is recommended. // This request is only idempotent if a `request_id` is provided. @@ -801,7 +801,7 @@ func (x *AnalyzeContentRequest) GetAssistQueryParams() *AssistQueryParameters { return nil } -func (x *AnalyzeContentRequest) GetCxParameters() *structpb.Struct { +func (x *AnalyzeContentRequest) GetCxParameters() *_struct.Struct { if x != nil { return x.CxParameters } @@ -2042,7 +2042,7 @@ type AnnotatedMessagePart struct { // } // // - FormattedValue *structpb.Value `protobuf:"bytes,3,opt,name=formatted_value,json=formattedValue,proto3" json:"formatted_value,omitempty"` + FormattedValue *_struct.Value `protobuf:"bytes,3,opt,name=formatted_value,json=formattedValue,proto3" json:"formatted_value,omitempty"` } func (x *AnnotatedMessagePart) Reset() { @@ -2091,7 +2091,7 @@ func (x *AnnotatedMessagePart) GetEntityType() string { return "" } -func (x *AnnotatedMessagePart) GetFormattedValue() *structpb.Value { +func (x *AnnotatedMessagePart) GetFormattedValue() *_struct.Value { if x != nil { return x.FormattedValue } @@ -2936,17 +2936,17 @@ var file_google_cloud_dialogflow_v2_participant_proto_goTypes = []interface{}{ nil, // 28: google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry nil, // 29: google.cloud.dialogflow.v2.FaqAnswer.MetadataEntry nil, // 30: google.cloud.dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry - (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 31: google.protobuf.Timestamp (*SentimentAnalysisResult)(nil), // 32: google.cloud.dialogflow.v2.SentimentAnalysisResult - (*fieldmaskpb.FieldMask)(nil), // 33: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 33: google.protobuf.FieldMask (*TextInput)(nil), // 34: google.cloud.dialogflow.v2.TextInput (*EventInput)(nil), // 35: google.cloud.dialogflow.v2.EventInput (*OutputAudioConfig)(nil), // 36: google.cloud.dialogflow.v2.OutputAudioConfig (*QueryParameters)(nil), // 37: google.cloud.dialogflow.v2.QueryParameters - (*structpb.Struct)(nil), // 38: google.protobuf.Struct + (*_struct.Struct)(nil), // 38: google.protobuf.Struct (*DetectIntentResponse)(nil), // 39: google.cloud.dialogflow.v2.DetectIntentResponse (*status.Status)(nil), // 40: google.rpc.Status - (*structpb.Value)(nil), // 41: google.protobuf.Value + (*_struct.Value)(nil), // 41: google.protobuf.Value } var file_google_cloud_dialogflow_v2_participant_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.v2.Participant.role:type_name -> google.cloud.dialogflow.v2.Participant.Role diff --git a/dialogflow/apiv2/dialogflowpb/session.pb.go b/dialogflow/apiv2/dialogflowpb/session.pb.go index b0f758136ff9..eb2929b2fccf 100644 --- a/dialogflow/apiv2/dialogflowpb/session.pb.go +++ b/dialogflow/apiv2/dialogflowpb/session.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/session.proto package dialogflowpb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" latlng "google.golang.org/genproto/googleapis/type/latlng" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -149,7 +149,7 @@ type DetectIntentRequest struct { // // If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level // config in its entirety. - OutputAudioConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"` + OutputAudioConfigMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"` // The natural language speech audio to be processed. This field // should be populated iff `query_input` is set to an input audio config. // A single request can contain up to 1 minute of speech audio data. @@ -216,7 +216,7 @@ func (x *DetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig { return nil } -func (x *DetectIntentRequest) GetOutputAudioConfigMask() *fieldmaskpb.FieldMask { +func (x *DetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask { if x != nil { return x.OutputAudioConfigMask } @@ -354,7 +354,7 @@ type QueryParameters struct { // If supplied, the value is used to populate the // `WebhookRequest.original_detect_intent_request.payload` // field sent to your webhook. - Payload *structpb.Struct `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` // Configures the type of sentiment analysis to perform. If not // provided, sentiment analysis is not performed. SentimentAnalysisRequestConfig *SentimentAnalysisRequestConfig `protobuf:"bytes,10,opt,name=sentiment_analysis_request_config,json=sentimentAnalysisRequestConfig,proto3" json:"sentiment_analysis_request_config,omitempty"` @@ -437,7 +437,7 @@ func (x *QueryParameters) GetSessionEntityTypes() []*SessionEntityType { return nil } -func (x *QueryParameters) GetPayload() *structpb.Struct { +func (x *QueryParameters) GetPayload() *_struct.Struct { if x != nil { return x.Payload } @@ -617,7 +617,7 @@ type QueryResult struct { // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value - Parameters *structpb.Struct `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *_struct.Struct `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // This field is set to: // // - `false` if the matched intent has required parameters and not all of @@ -639,7 +639,7 @@ type QueryResult struct { WebhookSource string `protobuf:"bytes,8,opt,name=webhook_source,json=webhookSource,proto3" json:"webhook_source,omitempty"` // If the query was fulfilled by a webhook call, this field is set to the // value of the `payload` field returned in the webhook response. - WebhookPayload *structpb.Struct `protobuf:"bytes,9,opt,name=webhook_payload,json=webhookPayload,proto3" json:"webhook_payload,omitempty"` + WebhookPayload *_struct.Struct `protobuf:"bytes,9,opt,name=webhook_payload,json=webhookPayload,proto3" json:"webhook_payload,omitempty"` // The collection of output contexts. If applicable, // `output_contexts.parameters` contains entries with name // `.original` containing the original parameter values @@ -665,7 +665,7 @@ type QueryResult struct { // // - webhook call latency // - webhook errors - DiagnosticInfo *structpb.Struct `protobuf:"bytes,14,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"` + DiagnosticInfo *_struct.Struct `protobuf:"bytes,14,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"` // The sentiment analysis result, which depends on the // `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *SentimentAnalysisResult `protobuf:"bytes,17,opt,name=sentiment_analysis_result,json=sentimentAnalysisResult,proto3" json:"sentiment_analysis_result,omitempty"` @@ -731,7 +731,7 @@ func (x *QueryResult) GetAction() string { return "" } -func (x *QueryResult) GetParameters() *structpb.Struct { +func (x *QueryResult) GetParameters() *_struct.Struct { if x != nil { return x.Parameters } @@ -773,7 +773,7 @@ func (x *QueryResult) GetWebhookSource() string { return "" } -func (x *QueryResult) GetWebhookPayload() *structpb.Struct { +func (x *QueryResult) GetWebhookPayload() *_struct.Struct { if x != nil { return x.WebhookPayload } @@ -801,7 +801,7 @@ func (x *QueryResult) GetIntentDetectionConfidence() float32 { return 0 } -func (x *QueryResult) GetDiagnosticInfo() *structpb.Struct { +func (x *QueryResult) GetDiagnosticInfo() *_struct.Struct { if x != nil { return x.DiagnosticInfo } @@ -902,7 +902,7 @@ type StreamingDetectIntentRequest struct { // // If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level // config in its entirety. - OutputAudioConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"` + OutputAudioConfigMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"` // The input audio content to be recognized. Must be sent if // `query_input` was set to a streaming input audio config. The complete audio // over all streaming messages must not exceed 1 minute. @@ -977,7 +977,7 @@ func (x *StreamingDetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig return nil } -func (x *StreamingDetectIntentRequest) GetOutputAudioConfigMask() *fieldmaskpb.FieldMask { +func (x *StreamingDetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask { if x != nil { return x.OutputAudioConfigMask } @@ -1173,7 +1173,7 @@ type StreamingRecognitionResult struct { SpeechWordInfo []*SpeechWordInfo `protobuf:"bytes,7,rep,name=speech_word_info,json=speechWordInfo,proto3" json:"speech_word_info,omitempty"` // Time offset of the end of this Speech recognition result relative to the // beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. - SpeechEndOffset *durationpb.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"` + SpeechEndOffset *duration.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"` // Detected language code for the transcript. LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` } @@ -1245,7 +1245,7 @@ func (x *StreamingRecognitionResult) GetSpeechWordInfo() []*SpeechWordInfo { return nil } -func (x *StreamingRecognitionResult) GetSpeechEndOffset() *durationpb.Duration { +func (x *StreamingRecognitionResult) GetSpeechEndOffset() *duration.Duration { if x != nil { return x.SpeechEndOffset } @@ -1353,7 +1353,7 @@ type EventInput struct { // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value - Parameters *structpb.Struct `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *_struct.Struct `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"` // Required. The language of this query. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that queries in @@ -1405,7 +1405,7 @@ func (x *EventInput) GetName() string { return "" } -func (x *EventInput) GetParameters() *structpb.Struct { +func (x *EventInput) GetParameters() *_struct.Struct { if x != nil { return x.Parameters } @@ -2025,17 +2025,17 @@ var file_google_cloud_dialogflow_v2_session_proto_goTypes = []interface{}{ (*Sentiment)(nil), // 13: google.cloud.dialogflow.v2.Sentiment nil, // 14: google.cloud.dialogflow.v2.QueryParameters.WebhookHeadersEntry (*OutputAudioConfig)(nil), // 15: google.cloud.dialogflow.v2.OutputAudioConfig - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (*status.Status)(nil), // 17: google.rpc.Status (*latlng.LatLng)(nil), // 18: google.type.LatLng (*Context)(nil), // 19: google.cloud.dialogflow.v2.Context (*SessionEntityType)(nil), // 20: google.cloud.dialogflow.v2.SessionEntityType - (*structpb.Struct)(nil), // 21: google.protobuf.Struct + (*_struct.Struct)(nil), // 21: google.protobuf.Struct (*InputAudioConfig)(nil), // 22: google.cloud.dialogflow.v2.InputAudioConfig (*Intent_Message)(nil), // 23: google.cloud.dialogflow.v2.Intent.Message (*Intent)(nil), // 24: google.cloud.dialogflow.v2.Intent (*SpeechWordInfo)(nil), // 25: google.cloud.dialogflow.v2.SpeechWordInfo - (*durationpb.Duration)(nil), // 26: google.protobuf.Duration + (*duration.Duration)(nil), // 26: google.protobuf.Duration } var file_google_cloud_dialogflow_v2_session_proto_depIdxs = []int32{ 3, // 0: google.cloud.dialogflow.v2.DetectIntentRequest.query_params:type_name -> google.cloud.dialogflow.v2.QueryParameters diff --git a/dialogflow/apiv2/dialogflowpb/session_entity_type.pb.go b/dialogflow/apiv2/dialogflowpb/session_entity_type.pb.go index f8e9f67df3c8..244ccb43b5e4 100644 --- a/dialogflow/apiv2/dialogflowpb/session_entity_type.pb.go +++ b/dialogflow/apiv2/dialogflowpb/session_entity_type.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/session_entity_type.proto package dialogflowpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -449,7 +449,7 @@ type UpdateSessionEntityTypeRequest struct { // Required. The session entity type to update. SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"` // Optional. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSessionEntityTypeRequest) Reset() { @@ -491,7 +491,7 @@ func (x *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTy return nil } -func (x *UpdateSessionEntityTypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -893,8 +893,8 @@ var file_google_cloud_dialogflow_v2_session_entity_type_proto_goTypes = []interf (*UpdateSessionEntityTypeRequest)(nil), // 6: google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest (*DeleteSessionEntityTypeRequest)(nil), // 7: google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest (*EntityType_Entity)(nil), // 8: google.cloud.dialogflow.v2.EntityType.Entity - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 10: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*empty.Empty)(nil), // 10: google.protobuf.Empty } var file_google_cloud_dialogflow_v2_session_entity_type_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.v2.SessionEntityType.entity_override_mode:type_name -> google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode @@ -1077,7 +1077,7 @@ type SessionEntityTypesClient interface { // This method doesn't work with Google Assistant integration. // Contact Dialogflow support if you need to use session entities // with Google Assistant integration. - DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type sessionEntityTypesClient struct { @@ -1124,8 +1124,8 @@ func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, return out, nil } -func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...) if err != nil { return nil, err @@ -1167,7 +1167,7 @@ type SessionEntityTypesServer interface { // This method doesn't work with Google Assistant integration. // Contact Dialogflow support if you need to use session entities // with Google Assistant integration. - DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*emptypb.Empty, error) + DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error) } // UnimplementedSessionEntityTypesServer can be embedded to have forward compatible implementations. @@ -1186,7 +1186,7 @@ func (*UnimplementedSessionEntityTypesServer) CreateSessionEntityType(context.Co func (*UnimplementedSessionEntityTypesServer) UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSessionEntityType not implemented") } -func (*UnimplementedSessionEntityTypesServer) DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*emptypb.Empty, error) { +func (*UnimplementedSessionEntityTypesServer) DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSessionEntityType not implemented") } diff --git a/dialogflow/apiv2/dialogflowpb/validation_result.pb.go b/dialogflow/apiv2/dialogflowpb/validation_result.pb.go index cc378d70a844..097ec48fdec0 100644 --- a/dialogflow/apiv2/dialogflowpb/validation_result.pb.go +++ b/dialogflow/apiv2/dialogflowpb/validation_result.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/validation_result.proto package dialogflowpb diff --git a/dialogflow/apiv2/dialogflowpb/version.pb.go b/dialogflow/apiv2/dialogflowpb/version.pb.go index 36f51397afc6..89b0de80ab0d 100644 --- a/dialogflow/apiv2/dialogflowpb/version.pb.go +++ b/dialogflow/apiv2/dialogflowpb/version.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/version.proto package dialogflowpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -137,7 +137,7 @@ type Version struct { VersionNumber int32 `protobuf:"varint,3,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"` // Output only. The creation time of this version. This field is read-only, i.e., it cannot // be set by create and update methods. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The status of this version. This field is read-only and cannot be set by // create and update methods. Status Version_VersionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=google.cloud.dialogflow.v2.Version_VersionStatus" json:"status,omitempty"` @@ -196,7 +196,7 @@ func (x *Version) GetVersionNumber() int32 { return 0 } -func (x *Version) GetCreateTime() *timestamppb.Timestamp { +func (x *Version) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -472,7 +472,7 @@ type UpdateVersionRequest struct { // ID>` Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Required. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateVersionRequest) Reset() { @@ -514,7 +514,7 @@ func (x *UpdateVersionRequest) GetVersion() *Version { return nil } -func (x *UpdateVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateVersionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -784,17 +784,17 @@ func file_google_cloud_dialogflow_v2_version_proto_rawDescGZIP() []byte { var file_google_cloud_dialogflow_v2_version_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_dialogflow_v2_version_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_google_cloud_dialogflow_v2_version_proto_goTypes = []interface{}{ - (Version_VersionStatus)(0), // 0: google.cloud.dialogflow.v2.Version.VersionStatus - (*Version)(nil), // 1: google.cloud.dialogflow.v2.Version - (*ListVersionsRequest)(nil), // 2: google.cloud.dialogflow.v2.ListVersionsRequest - (*ListVersionsResponse)(nil), // 3: google.cloud.dialogflow.v2.ListVersionsResponse - (*GetVersionRequest)(nil), // 4: google.cloud.dialogflow.v2.GetVersionRequest - (*CreateVersionRequest)(nil), // 5: google.cloud.dialogflow.v2.CreateVersionRequest - (*UpdateVersionRequest)(nil), // 6: google.cloud.dialogflow.v2.UpdateVersionRequest - (*DeleteVersionRequest)(nil), // 7: google.cloud.dialogflow.v2.DeleteVersionRequest - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 10: google.protobuf.Empty + (Version_VersionStatus)(0), // 0: google.cloud.dialogflow.v2.Version.VersionStatus + (*Version)(nil), // 1: google.cloud.dialogflow.v2.Version + (*ListVersionsRequest)(nil), // 2: google.cloud.dialogflow.v2.ListVersionsRequest + (*ListVersionsResponse)(nil), // 3: google.cloud.dialogflow.v2.ListVersionsResponse + (*GetVersionRequest)(nil), // 4: google.cloud.dialogflow.v2.GetVersionRequest + (*CreateVersionRequest)(nil), // 5: google.cloud.dialogflow.v2.CreateVersionRequest + (*UpdateVersionRequest)(nil), // 6: google.cloud.dialogflow.v2.UpdateVersionRequest + (*DeleteVersionRequest)(nil), // 7: google.cloud.dialogflow.v2.DeleteVersionRequest + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*empty.Empty)(nil), // 10: google.protobuf.Empty } var file_google_cloud_dialogflow_v2_version_proto_depIdxs = []int32{ 8, // 0: google.cloud.dialogflow.v2.Version.create_time:type_name -> google.protobuf.Timestamp @@ -959,7 +959,7 @@ type VersionsClient interface { // properties of the version resource. UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*Version, error) // Delete the specified agent version. - DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type versionsClient struct { @@ -1006,8 +1006,8 @@ func (c *versionsClient) UpdateVersion(ctx context.Context, in *UpdateVersionReq return out, nil } -func (c *versionsClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *versionsClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Versions/DeleteVersion", in, out, opts...) if err != nil { return nil, err @@ -1032,7 +1032,7 @@ type VersionsServer interface { // properties of the version resource. UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error) // Delete the specified agent version. - DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error) + DeleteVersion(context.Context, *DeleteVersionRequest) (*empty.Empty, error) } // UnimplementedVersionsServer can be embedded to have forward compatible implementations. @@ -1051,7 +1051,7 @@ func (*UnimplementedVersionsServer) CreateVersion(context.Context, *CreateVersio func (*UnimplementedVersionsServer) UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateVersion not implemented") } -func (*UnimplementedVersionsServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error) { +func (*UnimplementedVersionsServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteVersion not implemented") } diff --git a/dialogflow/apiv2/dialogflowpb/webhook.pb.go b/dialogflow/apiv2/dialogflowpb/webhook.pb.go index 0691cc845de1..ba1e6c46ea68 100644 --- a/dialogflow/apiv2/dialogflowpb/webhook.pb.go +++ b/dialogflow/apiv2/dialogflowpb/webhook.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/v2/webhook.proto package dialogflowpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -162,7 +162,7 @@ type WebhookResponse struct { // for rich response messages. // See the format definition at [Google Assistant Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) - Payload *structpb.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // Optional. The collection of output contexts that will overwrite currently // active contexts for the session and reset their lifespans. // When provided, Dialogflow uses this field to populate @@ -233,7 +233,7 @@ func (x *WebhookResponse) GetSource() string { return "" } -func (x *WebhookResponse) GetPayload() *structpb.Struct { +func (x *WebhookResponse) GetPayload() *_struct.Struct { if x != nil { return x.Payload } @@ -290,7 +290,7 @@ type OriginalDetectIntentRequest struct { // Note: The caller ID field (`caller_id`) will be redacted for Trial // Edition agents and populated with the caller ID in [E.164 // format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents. - Payload *structpb.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` } func (x *OriginalDetectIntentRequest) Reset() { @@ -339,7 +339,7 @@ func (x *OriginalDetectIntentRequest) GetVersion() string { return "" } -func (x *OriginalDetectIntentRequest) GetPayload() *structpb.Struct { +func (x *OriginalDetectIntentRequest) GetPayload() *_struct.Struct { if x != nil { return x.Payload } @@ -455,7 +455,7 @@ var file_google_cloud_dialogflow_v2_webhook_proto_goTypes = []interface{}{ (*OriginalDetectIntentRequest)(nil), // 2: google.cloud.dialogflow.v2.OriginalDetectIntentRequest (*QueryResult)(nil), // 3: google.cloud.dialogflow.v2.QueryResult (*Intent_Message)(nil), // 4: google.cloud.dialogflow.v2.Intent.Message - (*structpb.Struct)(nil), // 5: google.protobuf.Struct + (*_struct.Struct)(nil), // 5: google.protobuf.Struct (*Context)(nil), // 6: google.cloud.dialogflow.v2.Context (*EventInput)(nil), // 7: google.cloud.dialogflow.v2.EventInput (*SessionEntityType)(nil), // 8: google.cloud.dialogflow.v2.SessionEntityType diff --git a/dialogflow/cx/apiv3/cxpb/advanced_settings.pb.go b/dialogflow/cx/apiv3/cxpb/advanced_settings.pb.go index b0af7ace2dba..f473a5c68c6f 100644 --- a/dialogflow/cx/apiv3/cxpb/advanced_settings.pb.go +++ b/dialogflow/cx/apiv3/cxpb/advanced_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/advanced_settings.proto package cxpb diff --git a/dialogflow/cx/apiv3/cxpb/agent.pb.go b/dialogflow/cx/apiv3/cxpb/agent.pb.go index 6b68fef1c3d0..0c6176264503 100644 --- a/dialogflow/cx/apiv3/cxpb/agent.pb.go +++ b/dialogflow/cx/apiv3/cxpb/agent.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/agent.proto package cxpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -646,7 +646,7 @@ type UpdateAgentRequest struct { Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAgentRequest) Reset() { @@ -688,7 +688,7 @@ func (x *UpdateAgentRequest) GetAgent() *Agent { return nil } -func (x *UpdateAgentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAgentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1591,9 +1591,9 @@ var file_google_cloud_dialogflow_cx_v3_agent_proto_goTypes = []interface{}{ (*GetAgentValidationResultRequest)(nil), // 14: google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest (*AgentValidationResult)(nil), // 15: google.cloud.dialogflow.cx.v3.AgentValidationResult (*AdvancedSettings)(nil), // 16: google.cloud.dialogflow.cx.v3.AdvancedSettings - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask (*FlowValidationResult)(nil), // 18: google.cloud.dialogflow.cx.v3.FlowValidationResult - (*emptypb.Empty)(nil), // 19: google.protobuf.Empty + (*empty.Empty)(nil), // 19: google.protobuf.Empty (*longrunning.Operation)(nil), // 20: google.longrunning.Operation } var file_google_cloud_dialogflow_cx_v3_agent_proto_depIdxs = []int32{ @@ -1866,7 +1866,7 @@ type AgentsClient interface { // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). UpdateAgent(ctx context.Context, in *UpdateAgentRequest, opts ...grpc.CallOption) (*Agent, error) // Deletes the specified agent. - DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Exports the specified agent to a binary file. // // This method is a [long-running @@ -1948,8 +1948,8 @@ func (c *agentsClient) UpdateAgent(ctx context.Context, in *UpdateAgentRequest, return out, nil } -func (c *agentsClient) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *agentsClient) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Agents/DeleteAgent", in, out, opts...) if err != nil { return nil, err @@ -2012,7 +2012,7 @@ type AgentsServer interface { // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). UpdateAgent(context.Context, *UpdateAgentRequest) (*Agent, error) // Deletes the specified agent. - DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error) + DeleteAgent(context.Context, *DeleteAgentRequest) (*empty.Empty, error) // Exports the specified agent to a binary file. // // This method is a [long-running @@ -2066,7 +2066,7 @@ func (*UnimplementedAgentsServer) CreateAgent(context.Context, *CreateAgentReque func (*UnimplementedAgentsServer) UpdateAgent(context.Context, *UpdateAgentRequest) (*Agent, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAgent not implemented") } -func (*UnimplementedAgentsServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error) { +func (*UnimplementedAgentsServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAgent not implemented") } func (*UnimplementedAgentsServer) ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error) { diff --git a/dialogflow/cx/apiv3/cxpb/audio_config.pb.go b/dialogflow/cx/apiv3/cxpb/audio_config.pb.go index 272bf4b4a313..814b5ae1fd4c 100644 --- a/dialogflow/cx/apiv3/cxpb/audio_config.pb.go +++ b/dialogflow/cx/apiv3/cxpb/audio_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/audio_config.proto package cxpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -356,11 +356,11 @@ type SpeechWordInfo struct { // Time offset relative to the beginning of the audio that corresponds to the // start of the spoken word. This is an experimental feature and the accuracy // of the time offset can vary. - StartOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` + StartOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` // Time offset relative to the beginning of the audio that corresponds to the // end of the spoken word. This is an experimental feature and the accuracy of // the time offset can vary. - EndOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` + EndOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` // The Speech confidence between 0.0 and 1.0 for this word. A higher number // indicates an estimated greater likelihood that the recognized word is // correct. The default of 0.0 is a sentinel value indicating that confidence @@ -410,14 +410,14 @@ func (x *SpeechWordInfo) GetWord() string { return "" } -func (x *SpeechWordInfo) GetStartOffset() *durationpb.Duration { +func (x *SpeechWordInfo) GetStartOffset() *duration.Duration { if x != nil { return x.StartOffset } return nil } -func (x *SpeechWordInfo) GetEndOffset() *durationpb.Duration { +func (x *SpeechWordInfo) GetEndOffset() *duration.Duration { if x != nil { return x.EndOffset } @@ -983,7 +983,7 @@ var file_google_cloud_dialogflow_cx_v3_audio_config_proto_goTypes = []interface{ (*VoiceSelectionParams)(nil), // 6: google.cloud.dialogflow.cx.v3.VoiceSelectionParams (*SynthesizeSpeechConfig)(nil), // 7: google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig (*OutputAudioConfig)(nil), // 8: google.cloud.dialogflow.cx.v3.OutputAudioConfig - (*durationpb.Duration)(nil), // 9: google.protobuf.Duration + (*duration.Duration)(nil), // 9: google.protobuf.Duration } var file_google_cloud_dialogflow_cx_v3_audio_config_proto_depIdxs = []int32{ 9, // 0: google.cloud.dialogflow.cx.v3.SpeechWordInfo.start_offset:type_name -> google.protobuf.Duration diff --git a/dialogflow/cx/apiv3/cxpb/changelog.pb.go b/dialogflow/cx/apiv3/cxpb/changelog.pb.go index 50914874d025..510a0601f08d 100644 --- a/dialogflow/cx/apiv3/cxpb/changelog.pb.go +++ b/dialogflow/cx/apiv3/cxpb/changelog.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/changelog.proto package cxpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -271,7 +271,7 @@ type Changelog struct { // The affected resource name of the change. Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` // The timestamp of the change. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *Changelog) Reset() { @@ -348,7 +348,7 @@ func (x *Changelog) GetResource() string { return "" } -func (x *Changelog) GetCreateTime() *timestamppb.Timestamp { +func (x *Changelog) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -486,7 +486,7 @@ var file_google_cloud_dialogflow_cx_v3_changelog_proto_goTypes = []interface{}{ (*ListChangelogsResponse)(nil), // 1: google.cloud.dialogflow.cx.v3.ListChangelogsResponse (*GetChangelogRequest)(nil), // 2: google.cloud.dialogflow.cx.v3.GetChangelogRequest (*Changelog)(nil), // 3: google.cloud.dialogflow.cx.v3.Changelog - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp } var file_google_cloud_dialogflow_cx_v3_changelog_proto_depIdxs = []int32{ 3, // 0: google.cloud.dialogflow.cx.v3.ListChangelogsResponse.changelogs:type_name -> google.cloud.dialogflow.cx.v3.Changelog diff --git a/dialogflow/cx/apiv3/cxpb/deployment.pb.go b/dialogflow/cx/apiv3/cxpb/deployment.pb.go index c57a634a02f2..414b0be73d2c 100644 --- a/dialogflow/cx/apiv3/cxpb/deployment.pb.go +++ b/dialogflow/cx/apiv3/cxpb/deployment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/deployment.proto package cxpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -120,9 +120,9 @@ type Deployment struct { // Result of the deployment. Result *Deployment_Result `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` // Start time of this deployment. - StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of this deployment. - EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *Deployment) Reset() { @@ -185,14 +185,14 @@ func (x *Deployment) GetResult() *Deployment_Result { return nil } -func (x *Deployment) GetStartTime() *timestamppb.Timestamp { +func (x *Deployment) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Deployment) GetEndTime() *timestamppb.Timestamp { +func (x *Deployment) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -606,7 +606,7 @@ var file_google_cloud_dialogflow_cx_v3_deployment_proto_goTypes = []interface{}{ (*ListDeploymentsResponse)(nil), // 3: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse (*GetDeploymentRequest)(nil), // 4: google.cloud.dialogflow.cx.v3.GetDeploymentRequest (*Deployment_Result)(nil), // 5: google.cloud.dialogflow.cx.v3.Deployment.Result - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_google_cloud_dialogflow_cx_v3_deployment_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.cx.v3.Deployment.state:type_name -> google.cloud.dialogflow.cx.v3.Deployment.State diff --git a/dialogflow/cx/apiv3/cxpb/entity_type.pb.go b/dialogflow/cx/apiv3/cxpb/entity_type.pb.go index 37493b6dbb99..122c785adb5d 100644 --- a/dialogflow/cx/apiv3/cxpb/entity_type.pb.go +++ b/dialogflow/cx/apiv3/cxpb/entity_type.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/entity_type.proto package cxpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -621,7 +621,7 @@ type UpdateEntityTypeRequest struct { // Note: languages must be enabled in the agent before they can be used. LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEntityTypeRequest) Reset() { @@ -670,7 +670,7 @@ func (x *UpdateEntityTypeRequest) GetLanguageCode() string { return "" } -func (x *UpdateEntityTypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1124,8 +1124,8 @@ var file_google_cloud_dialogflow_cx_v3_entity_type_proto_goTypes = []interface{} (*DeleteEntityTypeRequest)(nil), // 8: google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest (*EntityType_Entity)(nil), // 9: google.cloud.dialogflow.cx.v3.EntityType.Entity (*EntityType_ExcludedPhrase)(nil), // 10: google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*empty.Empty)(nil), // 12: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_entity_type_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.cx.v3.EntityType.kind:type_name -> google.cloud.dialogflow.cx.v3.EntityType.Kind @@ -1322,7 +1322,7 @@ type EntityTypesClient interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type entityTypesClient struct { @@ -1369,8 +1369,8 @@ func (c *entityTypesClient) UpdateEntityType(ctx context.Context, in *UpdateEnti return out, nil } -func (c *entityTypesClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *entityTypesClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.EntityTypes/DeleteEntityType", in, out, opts...) if err != nil { return nil, err @@ -1401,7 +1401,7 @@ type EntityTypesServer interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*emptypb.Empty, error) + DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*empty.Empty, error) } // UnimplementedEntityTypesServer can be embedded to have forward compatible implementations. @@ -1420,7 +1420,7 @@ func (*UnimplementedEntityTypesServer) CreateEntityType(context.Context, *Create func (*UnimplementedEntityTypesServer) UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEntityType not implemented") } -func (*UnimplementedEntityTypesServer) DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*emptypb.Empty, error) { +func (*UnimplementedEntityTypesServer) DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEntityType not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/environment.pb.go b/dialogflow/cx/apiv3/cxpb/environment.pb.go index 67e91c8cc28f..2139f0b345ea 100644 --- a/dialogflow/cx/apiv3/cxpb/environment.pb.go +++ b/dialogflow/cx/apiv3/cxpb/environment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/environment.proto package cxpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -126,7 +126,7 @@ type Environment struct { // returned. VersionConfigs []*Environment_VersionConfig `protobuf:"bytes,6,rep,name=version_configs,json=versionConfigs,proto3" json:"version_configs,omitempty"` // Output only. Update time of this environment. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The test cases config for continuous tests of this environment. TestCasesConfig *Environment_TestCasesConfig `protobuf:"bytes,7,opt,name=test_cases_config,json=testCasesConfig,proto3" json:"test_cases_config,omitempty"` // The webhook configuration for this environment. @@ -193,7 +193,7 @@ func (x *Environment) GetVersionConfigs() []*Environment_VersionConfig { return nil } -func (x *Environment) GetUpdateTime() *timestamppb.Timestamp { +func (x *Environment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -464,7 +464,7 @@ type UpdateEnvironmentRequest struct { // Required. The environment to update. Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"` // Required. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEnvironmentRequest) Reset() { @@ -506,7 +506,7 @@ func (x *UpdateEnvironmentRequest) GetEnvironment() *Environment { return nil } -func (x *UpdateEnvironmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEnvironmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -711,7 +711,7 @@ type ContinuousTestResult struct { // A list of individual test case results names in this continuous test run. TestCaseResults []string `protobuf:"bytes,3,rep,name=test_case_results,json=testCaseResults,proto3" json:"test_case_results,omitempty"` // Time when the continuous testing run starts. - RunTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"` + RunTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"` } func (x *ContinuousTestResult) Reset() { @@ -767,7 +767,7 @@ func (x *ContinuousTestResult) GetTestCaseResults() []string { return nil } -func (x *ContinuousTestResult) GetRunTime() *timestamppb.Timestamp { +func (x *ContinuousTestResult) GetRunTime() *timestamp.Timestamp { if x != nil { return x.RunTime } @@ -1860,12 +1860,12 @@ var file_google_cloud_dialogflow_cx_v3_environment_proto_goTypes = []interface{} (*Environment_VersionConfig)(nil), // 19: google.cloud.dialogflow.cx.v3.Environment.VersionConfig (*Environment_TestCasesConfig)(nil), // 20: google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig (*Environment_WebhookConfig)(nil), // 21: google.cloud.dialogflow.cx.v3.Environment.WebhookConfig - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 23: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask (*TestError)(nil), // 24: google.cloud.dialogflow.cx.v3.TestError (*Webhook)(nil), // 25: google.cloud.dialogflow.cx.v3.Webhook (*longrunning.Operation)(nil), // 26: google.longrunning.Operation - (*emptypb.Empty)(nil), // 27: google.protobuf.Empty + (*empty.Empty)(nil), // 27: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_environment_proto_depIdxs = []int32{ 19, // 0: google.cloud.dialogflow.cx.v3.Environment.version_configs:type_name -> google.cloud.dialogflow.cx.v3.Environment.VersionConfig @@ -2229,7 +2229,7 @@ type EnvironmentsClient interface { // - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. - DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. LookupEnvironmentHistory(ctx context.Context, in *LookupEnvironmentHistoryRequest, opts ...grpc.CallOption) (*LookupEnvironmentHistoryResponse, error) // Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. @@ -2298,8 +2298,8 @@ func (c *environmentsClient) UpdateEnvironment(ctx context.Context, in *UpdateEn return out, nil } -func (c *environmentsClient) DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *environmentsClient) DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Environments/DeleteEnvironment", in, out, opts...) if err != nil { return nil, err @@ -2370,7 +2370,7 @@ type EnvironmentsServer interface { // - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*longrunning.Operation, error) // Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. - DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error) + DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*empty.Empty, error) // Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. LookupEnvironmentHistory(context.Context, *LookupEnvironmentHistoryRequest) (*LookupEnvironmentHistoryResponse, error) // Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. @@ -2411,7 +2411,7 @@ func (*UnimplementedEnvironmentsServer) CreateEnvironment(context.Context, *Crea func (*UnimplementedEnvironmentsServer) UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*longrunning.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEnvironment not implemented") } -func (*UnimplementedEnvironmentsServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error) { +func (*UnimplementedEnvironmentsServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEnvironment not implemented") } func (*UnimplementedEnvironmentsServer) LookupEnvironmentHistory(context.Context, *LookupEnvironmentHistoryRequest) (*LookupEnvironmentHistoryResponse, error) { diff --git a/dialogflow/cx/apiv3/cxpb/experiment.pb.go b/dialogflow/cx/apiv3/cxpb/experiment.pb.go index 6c7ad900f9bb..3e8d2afb379c 100644 --- a/dialogflow/cx/apiv3/cxpb/experiment.pb.go +++ b/dialogflow/cx/apiv3/cxpb/experiment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/experiment.proto package cxpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -264,17 +264,17 @@ type Experiment struct { // Inference result of the experiment. Result *Experiment_Result `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` // Creation time of this experiment. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Start time of this experiment. - StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of this experiment. - EndTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Last update time of this experiment. - LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` + LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` // Maximum number of days to run the experiment/rollout. If auto-rollout is // not enabled, default value and maximum will be 30 days. If auto-rollout is // enabled, default value and maximum will be 6 days. - ExperimentLength *durationpb.Duration `protobuf:"bytes,11,opt,name=experiment_length,json=experimentLength,proto3" json:"experiment_length,omitempty"` + ExperimentLength *duration.Duration `protobuf:"bytes,11,opt,name=experiment_length,json=experimentLength,proto3" json:"experiment_length,omitempty"` // The history of updates to the experiment variants. VariantsHistory []*VariantsHistory `protobuf:"bytes,12,rep,name=variants_history,json=variantsHistory,proto3" json:"variants_history,omitempty"` } @@ -374,35 +374,35 @@ func (x *Experiment) GetResult() *Experiment_Result { return nil } -func (x *Experiment) GetCreateTime() *timestamppb.Timestamp { +func (x *Experiment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Experiment) GetStartTime() *timestamppb.Timestamp { +func (x *Experiment) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Experiment) GetEndTime() *timestamppb.Timestamp { +func (x *Experiment) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } return nil } -func (x *Experiment) GetLastUpdateTime() *timestamppb.Timestamp { +func (x *Experiment) GetLastUpdateTime() *timestamp.Timestamp { if x != nil { return x.LastUpdateTime } return nil } -func (x *Experiment) GetExperimentLength() *durationpb.Duration { +func (x *Experiment) GetExperimentLength() *duration.Duration { if x != nil { return x.ExperimentLength } @@ -479,7 +479,7 @@ type VariantsHistory struct { // *VariantsHistory_VersionVariants Variants isVariantsHistory_Variants `protobuf_oneof:"variants"` // Update time of the variants. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *VariantsHistory) Reset() { @@ -528,7 +528,7 @@ func (x *VariantsHistory) GetVersionVariants() *VersionVariants { return nil } -func (x *VariantsHistory) GetUpdateTime() *timestamppb.Timestamp { +func (x *VariantsHistory) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -632,7 +632,7 @@ type RolloutState struct { // Index of the current step in the auto rollout steps list. StepIndex int32 `protobuf:"varint,3,opt,name=step_index,json=stepIndex,proto3" json:"step_index,omitempty"` // Start time of the current step. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *RolloutState) Reset() { @@ -681,7 +681,7 @@ func (x *RolloutState) GetStepIndex() int32 { return 0 } -func (x *RolloutState) GetStartTime() *timestamppb.Timestamp { +func (x *RolloutState) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -940,7 +940,7 @@ type UpdateExperimentRequest struct { // Required. The experiment to update. Experiment *Experiment `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"` // Required. The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateExperimentRequest) Reset() { @@ -982,7 +982,7 @@ func (x *UpdateExperimentRequest) GetExperiment() *Experiment { return nil } -func (x *UpdateExperimentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateExperimentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1237,7 +1237,7 @@ type Experiment_Result struct { VersionMetrics []*Experiment_Result_VersionMetrics `protobuf:"bytes,1,rep,name=version_metrics,json=versionMetrics,proto3" json:"version_metrics,omitempty"` // The last time the experiment's stats data was updated. Will have default // value if stats have never been computed for this experiment. - LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` + LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` } func (x *Experiment_Result) Reset() { @@ -1279,7 +1279,7 @@ func (x *Experiment_Result) GetVersionMetrics() []*Experiment_Result_VersionMetr return nil } -func (x *Experiment_Result) GetLastUpdateTime() *timestamppb.Timestamp { +func (x *Experiment_Result) GetLastUpdateTime() *timestamp.Timestamp { if x != nil { return x.LastUpdateTime } @@ -1635,7 +1635,7 @@ type RolloutConfig_RolloutStep struct { // The minimum time that this step should last. Should be longer than 1 // hour. If not set, the default minimum duration for each step will be 1 // hour. - MinDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` + MinDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` } func (x *RolloutConfig_RolloutStep) Reset() { @@ -1684,7 +1684,7 @@ func (x *RolloutConfig_RolloutStep) GetTrafficPercent() int32 { return 0 } -func (x *RolloutConfig_RolloutStep) GetMinDuration() *durationpb.Duration { +func (x *RolloutConfig_RolloutStep) GetMinDuration() *duration.Duration { if x != nil { return x.MinDuration } @@ -2151,10 +2151,10 @@ var file_google_cloud_dialogflow_cx_v3_experiment_proto_goTypes = []interface{}{ (*Experiment_Result_VersionMetrics)(nil), // 20: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics (*VersionVariants_Variant)(nil), // 21: google.cloud.dialogflow.cx.v3.VersionVariants.Variant (*RolloutConfig_RolloutStep)(nil), // 22: google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 26: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 23: google.protobuf.Timestamp + (*duration.Duration)(nil), // 24: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 25: google.protobuf.FieldMask + (*empty.Empty)(nil), // 26: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_experiment_proto_depIdxs = []int32{ 0, // 0: google.cloud.dialogflow.cx.v3.Experiment.state:type_name -> google.cloud.dialogflow.cx.v3.Experiment.State @@ -2505,7 +2505,7 @@ type ExperimentsClient interface { // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. UpdateExperiment(ctx context.Context, in *UpdateExperimentRequest, opts ...grpc.CallOption) (*Experiment, error) // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. - DeleteExperiment(ctx context.Context, in *DeleteExperimentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteExperiment(ctx context.Context, in *DeleteExperimentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of // experiment from PENDING to RUNNING. StartExperiment(ctx context.Context, in *StartExperimentRequest, opts ...grpc.CallOption) (*Experiment, error) @@ -2558,8 +2558,8 @@ func (c *experimentsClient) UpdateExperiment(ctx context.Context, in *UpdateExpe return out, nil } -func (c *experimentsClient) DeleteExperiment(ctx context.Context, in *DeleteExperimentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *experimentsClient) DeleteExperiment(ctx context.Context, in *DeleteExperimentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Experiments/DeleteExperiment", in, out, opts...) if err != nil { return nil, err @@ -2596,7 +2596,7 @@ type ExperimentsServer interface { // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. UpdateExperiment(context.Context, *UpdateExperimentRequest) (*Experiment, error) // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. - DeleteExperiment(context.Context, *DeleteExperimentRequest) (*emptypb.Empty, error) + DeleteExperiment(context.Context, *DeleteExperimentRequest) (*empty.Empty, error) // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of // experiment from PENDING to RUNNING. StartExperiment(context.Context, *StartExperimentRequest) (*Experiment, error) @@ -2621,7 +2621,7 @@ func (*UnimplementedExperimentsServer) CreateExperiment(context.Context, *Create func (*UnimplementedExperimentsServer) UpdateExperiment(context.Context, *UpdateExperimentRequest) (*Experiment, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateExperiment not implemented") } -func (*UnimplementedExperimentsServer) DeleteExperiment(context.Context, *DeleteExperimentRequest) (*emptypb.Empty, error) { +func (*UnimplementedExperimentsServer) DeleteExperiment(context.Context, *DeleteExperimentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteExperiment not implemented") } func (*UnimplementedExperimentsServer) StartExperiment(context.Context, *StartExperimentRequest) (*Experiment, error) { diff --git a/dialogflow/cx/apiv3/cxpb/flow.pb.go b/dialogflow/cx/apiv3/cxpb/flow.pb.go index f8bbe6ce1069..4317a19f3962 100644 --- a/dialogflow/cx/apiv3/cxpb/flow.pb.go +++ b/dialogflow/cx/apiv3/cxpb/flow.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/flow.proto package cxpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -815,7 +815,7 @@ type UpdateFlowRequest struct { Flow *Flow `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"` // The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The language of the following fields in `flow`: // // * `Flow.event_handlers.trigger_fulfillment.messages` @@ -870,7 +870,7 @@ func (x *UpdateFlowRequest) GetFlow() *Flow { return nil } -func (x *UpdateFlowRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFlowRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1068,7 +1068,7 @@ type FlowValidationResult struct { // Contains all validation messages. ValidationMessages []*ValidationMessage `protobuf:"bytes,2,rep,name=validation_messages,json=validationMessages,proto3" json:"validation_messages,omitempty"` // Last time the flow was validated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *FlowValidationResult) Reset() { @@ -1117,7 +1117,7 @@ func (x *FlowValidationResult) GetValidationMessages() []*ValidationMessage { return nil } -func (x *FlowValidationResult) GetUpdateTime() *timestamppb.Timestamp { +func (x *FlowValidationResult) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1871,10 +1871,10 @@ var file_google_cloud_dialogflow_cx_v3_flow_proto_goTypes = []interface{}{ (*ExportFlowResponse)(nil), // 18: google.cloud.dialogflow.cx.v3.ExportFlowResponse (*TransitionRoute)(nil), // 19: google.cloud.dialogflow.cx.v3.TransitionRoute (*EventHandler)(nil), // 20: google.cloud.dialogflow.cx.v3.EventHandler - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 21: google.protobuf.FieldMask (*ValidationMessage)(nil), // 22: google.cloud.dialogflow.cx.v3.ValidationMessage - (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 24: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 23: google.protobuf.Timestamp + (*empty.Empty)(nil), // 24: google.protobuf.Empty (*longrunning.Operation)(nil), // 25: google.longrunning.Operation } var file_google_cloud_dialogflow_cx_v3_flow_proto_depIdxs = []int32{ @@ -2166,7 +2166,7 @@ type FlowsClient interface { // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). CreateFlow(ctx context.Context, in *CreateFlowRequest, opts ...grpc.CallOption) (*Flow, error) // Deletes a specified flow. - DeleteFlow(ctx context.Context, in *DeleteFlowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteFlow(ctx context.Context, in *DeleteFlowRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Returns the list of all flows in the specified agent. ListFlows(ctx context.Context, in *ListFlowsRequest, opts ...grpc.CallOption) (*ListFlowsResponse, error) // Retrieves the specified flow. @@ -2246,8 +2246,8 @@ func (c *flowsClient) CreateFlow(ctx context.Context, in *CreateFlowRequest, opt return out, nil } -func (c *flowsClient) DeleteFlow(ctx context.Context, in *DeleteFlowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *flowsClient) DeleteFlow(ctx context.Context, in *DeleteFlowRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Flows/DeleteFlow", in, out, opts...) if err != nil { return nil, err @@ -2336,7 +2336,7 @@ type FlowsServer interface { // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). CreateFlow(context.Context, *CreateFlowRequest) (*Flow, error) // Deletes a specified flow. - DeleteFlow(context.Context, *DeleteFlowRequest) (*emptypb.Empty, error) + DeleteFlow(context.Context, *DeleteFlowRequest) (*empty.Empty, error) // Returns the list of all flows in the specified agent. ListFlows(context.Context, *ListFlowsRequest) (*ListFlowsResponse, error) // Retrieves the specified flow. @@ -2406,7 +2406,7 @@ type UnimplementedFlowsServer struct { func (*UnimplementedFlowsServer) CreateFlow(context.Context, *CreateFlowRequest) (*Flow, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateFlow not implemented") } -func (*UnimplementedFlowsServer) DeleteFlow(context.Context, *DeleteFlowRequest) (*emptypb.Empty, error) { +func (*UnimplementedFlowsServer) DeleteFlow(context.Context, *DeleteFlowRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteFlow not implemented") } func (*UnimplementedFlowsServer) ListFlows(context.Context, *ListFlowsRequest) (*ListFlowsResponse, error) { diff --git a/dialogflow/cx/apiv3/cxpb/fulfillment.pb.go b/dialogflow/cx/apiv3/cxpb/fulfillment.pb.go index f9c7845edc4b..7820a37ec5f8 100644 --- a/dialogflow/cx/apiv3/cxpb/fulfillment.pb.go +++ b/dialogflow/cx/apiv3/cxpb/fulfillment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/fulfillment.proto package cxpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -165,7 +165,7 @@ type Fulfillment_SetParameterAction struct { // Display name of the parameter. Parameter string `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"` // The new value of the parameter. A null value clears the parameter. - Value *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Value *_struct.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *Fulfillment_SetParameterAction) Reset() { @@ -207,7 +207,7 @@ func (x *Fulfillment_SetParameterAction) GetParameter() string { return "" } -func (x *Fulfillment_SetParameterAction) GetValue() *structpb.Value { +func (x *Fulfillment_SetParameterAction) GetValue() *_struct.Value { if x != nil { return x.Value } @@ -532,7 +532,7 @@ var file_google_cloud_dialogflow_cx_v3_fulfillment_proto_goTypes = []interface{} (*Fulfillment_ConditionalCases_Case)(nil), // 3: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case (*Fulfillment_ConditionalCases_Case_CaseContent)(nil), // 4: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent (*ResponseMessage)(nil), // 5: google.cloud.dialogflow.cx.v3.ResponseMessage - (*structpb.Value)(nil), // 6: google.protobuf.Value + (*_struct.Value)(nil), // 6: google.protobuf.Value } var file_google_cloud_dialogflow_cx_v3_fulfillment_proto_depIdxs = []int32{ 5, // 0: google.cloud.dialogflow.cx.v3.Fulfillment.messages:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage diff --git a/dialogflow/cx/apiv3/cxpb/intent.pb.go b/dialogflow/cx/apiv3/cxpb/intent.pb.go index 682c5d2dc701..182db63c4073 100644 --- a/dialogflow/cx/apiv3/cxpb/intent.pb.go +++ b/dialogflow/cx/apiv3/cxpb/intent.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/intent.proto package cxpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -563,7 +563,7 @@ type UpdateIntentRequest struct { LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateIntentRequest) Reset() { @@ -612,7 +612,7 @@ func (x *UpdateIntentRequest) GetLanguageCode() string { return "" } -func (x *UpdateIntentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIntentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1157,8 +1157,8 @@ var file_google_cloud_dialogflow_cx_v3_intent_proto_goTypes = []interface{}{ (*Intent_Parameter)(nil), // 9: google.cloud.dialogflow.cx.v3.Intent.Parameter nil, // 10: google.cloud.dialogflow.cx.v3.Intent.LabelsEntry (*Intent_TrainingPhrase_Part)(nil), // 11: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - (*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 12: google.protobuf.FieldMask + (*empty.Empty)(nil), // 13: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_intent_proto_depIdxs = []int32{ 8, // 0: google.cloud.dialogflow.cx.v3.Intent.training_phrases:type_name -> google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase @@ -1368,7 +1368,7 @@ type IntentsClient interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type intentsClient struct { @@ -1415,8 +1415,8 @@ func (c *intentsClient) UpdateIntent(ctx context.Context, in *UpdateIntentReques return out, nil } -func (c *intentsClient) DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *intentsClient) DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Intents/DeleteIntent", in, out, opts...) if err != nil { return nil, err @@ -1447,7 +1447,7 @@ type IntentsServer interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteIntent(context.Context, *DeleteIntentRequest) (*emptypb.Empty, error) + DeleteIntent(context.Context, *DeleteIntentRequest) (*empty.Empty, error) } // UnimplementedIntentsServer can be embedded to have forward compatible implementations. @@ -1466,7 +1466,7 @@ func (*UnimplementedIntentsServer) CreateIntent(context.Context, *CreateIntentRe func (*UnimplementedIntentsServer) UpdateIntent(context.Context, *UpdateIntentRequest) (*Intent, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateIntent not implemented") } -func (*UnimplementedIntentsServer) DeleteIntent(context.Context, *DeleteIntentRequest) (*emptypb.Empty, error) { +func (*UnimplementedIntentsServer) DeleteIntent(context.Context, *DeleteIntentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteIntent not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/page.pb.go b/dialogflow/cx/apiv3/cxpb/page.pb.go index 74a6e8232a4d..e13a1549f106 100644 --- a/dialogflow/cx/apiv3/cxpb/page.pb.go +++ b/dialogflow/cx/apiv3/cxpb/page.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/page.proto package cxpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -891,7 +891,7 @@ type UpdatePageRequest struct { LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdatePageRequest) Reset() { @@ -940,7 +940,7 @@ func (x *UpdatePageRequest) GetLanguageCode() string { return "" } -func (x *UpdatePageRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatePageRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1042,7 +1042,7 @@ type Form_Parameter struct { FillBehavior *Form_Parameter_FillBehavior `protobuf:"bytes,7,opt,name=fill_behavior,json=fillBehavior,proto3" json:"fill_behavior,omitempty"` // The default value of an optional parameter. If the parameter is required, // the default value will be ignored. - DefaultValue *structpb.Value `protobuf:"bytes,9,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + DefaultValue *_struct.Value `protobuf:"bytes,9,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` // Indicates whether the parameter content should be redacted in log. If // redaction is enabled, the parameter content will be replaced by parameter // name during logging. @@ -1119,7 +1119,7 @@ func (x *Form_Parameter) GetFillBehavior() *Form_Parameter_FillBehavior { return nil } -func (x *Form_Parameter) GetDefaultValue() *structpb.Value { +func (x *Form_Parameter) GetDefaultValue() *_struct.Value { if x != nil { return x.DefaultValue } @@ -1535,9 +1535,9 @@ var file_google_cloud_dialogflow_cx_v3_page_proto_goTypes = []interface{}{ (*Form_Parameter)(nil), // 10: google.cloud.dialogflow.cx.v3.Form.Parameter (*Form_Parameter_FillBehavior)(nil), // 11: google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior (*Fulfillment)(nil), // 12: google.cloud.dialogflow.cx.v3.Fulfillment - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask - (*structpb.Value)(nil), // 14: google.protobuf.Value - (*emptypb.Empty)(nil), // 15: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*_struct.Value)(nil), // 14: google.protobuf.Value + (*empty.Empty)(nil), // 15: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_page_proto_depIdxs = []int32{ 12, // 0: google.cloud.dialogflow.cx.v3.Page.entry_fulfillment:type_name -> google.cloud.dialogflow.cx.v3.Fulfillment @@ -1785,7 +1785,7 @@ type PagesClient interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type pagesClient struct { @@ -1832,8 +1832,8 @@ func (c *pagesClient) UpdatePage(ctx context.Context, in *UpdatePageRequest, opt return out, nil } -func (c *pagesClient) DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *pagesClient) DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Pages/DeletePage", in, out, opts...) if err != nil { return nil, err @@ -1864,7 +1864,7 @@ type PagesServer interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeletePage(context.Context, *DeletePageRequest) (*emptypb.Empty, error) + DeletePage(context.Context, *DeletePageRequest) (*empty.Empty, error) } // UnimplementedPagesServer can be embedded to have forward compatible implementations. @@ -1883,7 +1883,7 @@ func (*UnimplementedPagesServer) CreatePage(context.Context, *CreatePageRequest) func (*UnimplementedPagesServer) UpdatePage(context.Context, *UpdatePageRequest) (*Page, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePage not implemented") } -func (*UnimplementedPagesServer) DeletePage(context.Context, *DeletePageRequest) (*emptypb.Empty, error) { +func (*UnimplementedPagesServer) DeletePage(context.Context, *DeletePageRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePage not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/response_message.pb.go b/dialogflow/cx/apiv3/cxpb/response_message.pb.go index 0e4b3bd7fde9..4db416bfd7d4 100644 --- a/dialogflow/cx/apiv3/cxpb/response_message.pb.go +++ b/dialogflow/cx/apiv3/cxpb/response_message.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/response_message.proto package cxpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -121,7 +121,7 @@ func (x *ResponseMessage) GetText() *ResponseMessage_Text { return nil } -func (x *ResponseMessage) GetPayload() *structpb.Struct { +func (x *ResponseMessage) GetPayload() *_struct.Struct { if x, ok := x.GetMessage().(*ResponseMessage_Payload); ok { return x.Payload } @@ -188,7 +188,7 @@ type ResponseMessage_Text_ struct { type ResponseMessage_Payload struct { // Returns a response containing a custom, platform-specific payload. - Payload *structpb.Struct `protobuf:"bytes,2,opt,name=payload,proto3,oneof"` + Payload *_struct.Struct `protobuf:"bytes,2,opt,name=payload,proto3,oneof"` } type ResponseMessage_ConversationSuccess_ struct { @@ -337,7 +337,7 @@ type ResponseMessage_LiveAgentHandoff struct { // Custom metadata for your handoff procedure. Dialogflow doesn't impose // any structure on this. - Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata *_struct.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *ResponseMessage_LiveAgentHandoff) Reset() { @@ -372,7 +372,7 @@ func (*ResponseMessage_LiveAgentHandoff) Descriptor() ([]byte, []int) { return file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescGZIP(), []int{0, 1} } -func (x *ResponseMessage_LiveAgentHandoff) GetMetadata() *structpb.Struct { +func (x *ResponseMessage_LiveAgentHandoff) GetMetadata() *_struct.Struct { if x != nil { return x.Metadata } @@ -399,7 +399,7 @@ type ResponseMessage_ConversationSuccess struct { unknownFields protoimpl.UnknownFields // Custom metadata. Dialogflow doesn't impose any structure on this. - Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata *_struct.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *ResponseMessage_ConversationSuccess) Reset() { @@ -434,7 +434,7 @@ func (*ResponseMessage_ConversationSuccess) Descriptor() ([]byte, []int) { return file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescGZIP(), []int{0, 2} } -func (x *ResponseMessage_ConversationSuccess) GetMetadata() *structpb.Struct { +func (x *ResponseMessage_ConversationSuccess) GetMetadata() *_struct.Struct { if x != nil { return x.Metadata } @@ -1033,7 +1033,7 @@ var file_google_cloud_dialogflow_cx_v3_response_message_proto_goTypes = []interf (*ResponseMessage_MixedAudio)(nil), // 7: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio (*ResponseMessage_TelephonyTransferCall)(nil), // 8: google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall (*ResponseMessage_MixedAudio_Segment)(nil), // 9: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment - (*structpb.Struct)(nil), // 10: google.protobuf.Struct + (*_struct.Struct)(nil), // 10: google.protobuf.Struct } var file_google_cloud_dialogflow_cx_v3_response_message_proto_depIdxs = []int32{ 1, // 0: google.cloud.dialogflow.cx.v3.ResponseMessage.text:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.Text diff --git a/dialogflow/cx/apiv3/cxpb/security_settings.pb.go b/dialogflow/cx/apiv3/cxpb/security_settings.pb.go index f3993429b634..ce2e80182521 100644 --- a/dialogflow/cx/apiv3/cxpb/security_settings.pb.go +++ b/dialogflow/cx/apiv3/cxpb/security_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/security_settings.proto package cxpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -312,7 +312,7 @@ type UpdateSecuritySettingsRequest struct { SecuritySettings *SecuritySettings `protobuf:"bytes,1,opt,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"` // Required. The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSecuritySettingsRequest) Reset() { @@ -354,7 +354,7 @@ func (x *UpdateSecuritySettingsRequest) GetSecuritySettings() *SecuritySettings return nil } -func (x *UpdateSecuritySettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSecuritySettingsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1282,8 +1282,8 @@ var file_google_cloud_dialogflow_cx_v3_security_settings_proto_goTypes = []inter (*SecuritySettings)(nil), // 10: google.cloud.dialogflow.cx.v3.SecuritySettings (*SecuritySettings_AudioExportSettings)(nil), // 11: google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings (*SecuritySettings_InsightsExportSettings)(nil), // 12: google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 14: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*empty.Empty)(nil), // 14: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_security_settings_proto_depIdxs = []int32{ 10, // 0: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.security_settings:type_name -> google.cloud.dialogflow.cx.v3.SecuritySettings @@ -1474,7 +1474,7 @@ type SecuritySettingsServiceClient interface { // Returns the list of all security settings in the specified location. ListSecuritySettings(ctx context.Context, in *ListSecuritySettingsRequest, opts ...grpc.CallOption) (*ListSecuritySettingsResponse, error) // Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. - DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type securitySettingsServiceClient struct { @@ -1521,8 +1521,8 @@ func (c *securitySettingsServiceClient) ListSecuritySettings(ctx context.Context return out, nil } -func (c *securitySettingsServiceClient) DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *securitySettingsServiceClient) DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.SecuritySettingsService/DeleteSecuritySettings", in, out, opts...) if err != nil { return nil, err @@ -1542,7 +1542,7 @@ type SecuritySettingsServiceServer interface { // Returns the list of all security settings in the specified location. ListSecuritySettings(context.Context, *ListSecuritySettingsRequest) (*ListSecuritySettingsResponse, error) // Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. - DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*emptypb.Empty, error) + DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*empty.Empty, error) } // UnimplementedSecuritySettingsServiceServer can be embedded to have forward compatible implementations. @@ -1561,7 +1561,7 @@ func (*UnimplementedSecuritySettingsServiceServer) UpdateSecuritySettings(contex func (*UnimplementedSecuritySettingsServiceServer) ListSecuritySettings(context.Context, *ListSecuritySettingsRequest) (*ListSecuritySettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSecuritySettings not implemented") } -func (*UnimplementedSecuritySettingsServiceServer) DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*emptypb.Empty, error) { +func (*UnimplementedSecuritySettingsServiceServer) DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSecuritySettings not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/session.pb.go b/dialogflow/cx/apiv3/cxpb/session.pb.go index 430651f85ca8..570c44417fc7 100644 --- a/dialogflow/cx/apiv3/cxpb/session.pb.go +++ b/dialogflow/cx/apiv3/cxpb/session.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/session.proto package cxpb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" latlng "google.golang.org/genproto/googleapis/type/latlng" @@ -33,8 +35,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -741,7 +741,7 @@ type StreamingRecognitionResult struct { // Time offset of the end of this Speech recognition result relative to the // beginning of the audio. Only populated for `message_type` = // `TRANSCRIPT`. - SpeechEndOffset *durationpb.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"` + SpeechEndOffset *duration.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"` // Detected language code for the transcript. LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` } @@ -820,7 +820,7 @@ func (x *StreamingRecognitionResult) GetSpeechWordInfo() []*SpeechWordInfo { return nil } -func (x *StreamingRecognitionResult) GetSpeechEndOffset() *durationpb.Duration { +func (x *StreamingRecognitionResult) GetSpeechEndOffset() *duration.Duration { if x != nil { return x.SpeechEndOffset } @@ -866,7 +866,7 @@ type QueryParameters struct { // } // // ``` - Payload *structpb.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // Additional parameters to be put into [session // parameters][SessionInfo.parameters]. To remove a // parameter from the session, clients should explicitly set the parameter @@ -887,7 +887,7 @@ type QueryParameters struct { // * MapValue value: If parameter's entity type is a composite entity then use // map from composite entity property names to property values, otherwise, // use parameter value. - Parameters *structpb.Struct `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *_struct.Struct `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters,omitempty"` // The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current // page][QueryResult.current_page] in the session. // Format: `projects//locations//agents/ google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode @@ -1003,7 +1003,7 @@ type SessionEntityTypesClient interface { // Updates the specified session entity type. UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) // Deletes the specified session entity type. - DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type sessionEntityTypesClient struct { @@ -1050,8 +1050,8 @@ func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, return out, nil } -func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...) if err != nil { return nil, err @@ -1070,7 +1070,7 @@ type SessionEntityTypesServer interface { // Updates the specified session entity type. UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error) // Deletes the specified session entity type. - DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*emptypb.Empty, error) + DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error) } // UnimplementedSessionEntityTypesServer can be embedded to have forward compatible implementations. @@ -1089,7 +1089,7 @@ func (*UnimplementedSessionEntityTypesServer) CreateSessionEntityType(context.Co func (*UnimplementedSessionEntityTypesServer) UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSessionEntityType not implemented") } -func (*UnimplementedSessionEntityTypesServer) DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*emptypb.Empty, error) { +func (*UnimplementedSessionEntityTypesServer) DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSessionEntityType not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/test_case.pb.go b/dialogflow/cx/apiv3/cxpb/test_case.pb.go index b7e28961f2a4..ffb066b038d7 100644 --- a/dialogflow/cx/apiv3/cxpb/test_case.pb.go +++ b/dialogflow/cx/apiv3/cxpb/test_case.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/test_case.proto package cxpb @@ -25,18 +25,18 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -352,7 +352,7 @@ type TestCase struct { // that should occur when the agent is working properly. TestCaseConversationTurns []*ConversationTurn `protobuf:"bytes,5,rep,name=test_case_conversation_turns,json=testCaseConversationTurns,proto3" json:"test_case_conversation_turns,omitempty"` // Output only. When the test was created. - CreationTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + CreationTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // The latest test result. LastTestResult *TestCaseResult `protobuf:"bytes,12,opt,name=last_test_result,json=lastTestResult,proto3" json:"last_test_result,omitempty"` } @@ -431,7 +431,7 @@ func (x *TestCase) GetTestCaseConversationTurns() []*ConversationTurn { return nil } -func (x *TestCase) GetCreationTime() *timestamppb.Timestamp { +func (x *TestCase) GetCreationTime() *timestamp.Timestamp { if x != nil { return x.CreationTime } @@ -464,7 +464,7 @@ type TestCaseResult struct { // Whether the test case passed in the agent environment. TestResult TestResult `protobuf:"varint,4,opt,name=test_result,json=testResult,proto3,enum=google.cloud.dialogflow.cx.v3.TestResult" json:"test_result,omitempty"` // The time that the test was run. - TestTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"` + TestTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"` } func (x *TestCaseResult) Reset() { @@ -527,7 +527,7 @@ func (x *TestCaseResult) GetTestResult() TestResult { return TestResult_TEST_RESULT_UNSPECIFIED } -func (x *TestCaseResult) GetTestTime() *timestamppb.Timestamp { +func (x *TestCaseResult) GetTestTime() *timestamp.Timestamp { if x != nil { return x.TestTime } @@ -1351,7 +1351,7 @@ type UpdateTestCaseRequest struct { // Required. The mask to specify which fields should be updated. The // [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and // [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTestCaseRequest) Reset() { @@ -1393,7 +1393,7 @@ func (x *UpdateTestCaseRequest) GetTestCase() *TestCase { return nil } -func (x *UpdateTestCaseRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTestCaseRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1784,7 +1784,7 @@ type TestError struct { // The status associated with the test. Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // The timestamp when the test was completed. - TestTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"` + TestTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"` } func (x *TestError) Reset() { @@ -1833,7 +1833,7 @@ func (x *TestError) GetStatus() *status.Status { return nil } -func (x *TestError) GetTestTime() *timestamppb.Timestamp { +func (x *TestError) GetTestTime() *timestamp.Timestamp { if x != nil { return x.TestTime } @@ -2574,7 +2574,7 @@ type ConversationTurn_UserInput struct { Input *QueryInput `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` // Parameters that need to be injected into the conversation during intent // detection. - InjectedParameters *structpb.Struct `protobuf:"bytes,2,opt,name=injected_parameters,json=injectedParameters,proto3" json:"injected_parameters,omitempty"` + InjectedParameters *_struct.Struct `protobuf:"bytes,2,opt,name=injected_parameters,json=injectedParameters,proto3" json:"injected_parameters,omitempty"` // If webhooks should be allowed to trigger in response to the user // utterance. Often if parameters are injected, webhooks should not be // enabled. @@ -2622,7 +2622,7 @@ func (x *ConversationTurn_UserInput) GetInput() *QueryInput { return nil } -func (x *ConversationTurn_UserInput) GetInjectedParameters() *structpb.Struct { +func (x *ConversationTurn_UserInput) GetInjectedParameters() *_struct.Struct { if x != nil { return x.InjectedParameters } @@ -2650,7 +2650,7 @@ type ConversationTurn_VirtualAgentOutput struct { unknownFields protoimpl.UnknownFields // The session parameters available to the bot at this point. - SessionParameters *structpb.Struct `protobuf:"bytes,4,opt,name=session_parameters,json=sessionParameters,proto3" json:"session_parameters,omitempty"` + SessionParameters *_struct.Struct `protobuf:"bytes,4,opt,name=session_parameters,json=sessionParameters,proto3" json:"session_parameters,omitempty"` // Output only. If this is part of a [result conversation // turn][TestCaseResult.conversation_turns], the list of differences // between the original run and the replay for this output, if any. @@ -2658,7 +2658,7 @@ type ConversationTurn_VirtualAgentOutput struct { // Required. Input only. The diagnostic // [info][Session.DetectIntentResponse.QueryResult.diagnostic_info] // output for the turn. Required to calculate the testing coverage. - DiagnosticInfo *structpb.Struct `protobuf:"bytes,6,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"` + DiagnosticInfo *_struct.Struct `protobuf:"bytes,6,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"` // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName // will be set. TriggeredIntent *Intent `protobuf:"bytes,7,opt,name=triggered_intent,json=triggeredIntent,proto3" json:"triggered_intent,omitempty"` @@ -2704,7 +2704,7 @@ func (*ConversationTurn_VirtualAgentOutput) Descriptor() ([]byte, []int) { return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{3, 1} } -func (x *ConversationTurn_VirtualAgentOutput) GetSessionParameters() *structpb.Struct { +func (x *ConversationTurn_VirtualAgentOutput) GetSessionParameters() *_struct.Struct { if x != nil { return x.SessionParameters } @@ -2718,7 +2718,7 @@ func (x *ConversationTurn_VirtualAgentOutput) GetDifferences() []*TestRunDiffere return nil } -func (x *ConversationTurn_VirtualAgentOutput) GetDiagnosticInfo() *structpb.Struct { +func (x *ConversationTurn_VirtualAgentOutput) GetDiagnosticInfo() *_struct.Struct { if x != nil { return x.DiagnosticInfo } @@ -3949,11 +3949,11 @@ var file_google_cloud_dialogflow_cx_v3_test_case_proto_goTypes = []interface{}{ (*TransitionRouteGroupCoverage_Coverage)(nil), // 42: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage (*TransitionRouteGroupCoverage_Coverage_Transition)(nil), // 43: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition (*IntentCoverage_Intent)(nil), // 44: google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 45: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 46: google.protobuf.FieldMask (*status.Status)(nil), // 47: google.rpc.Status (*QueryInput)(nil), // 48: google.cloud.dialogflow.cx.v3.QueryInput - (*structpb.Struct)(nil), // 49: google.protobuf.Struct + (*_struct.Struct)(nil), // 49: google.protobuf.Struct (*Intent)(nil), // 50: google.cloud.dialogflow.cx.v3.Intent (*Page)(nil), // 51: google.cloud.dialogflow.cx.v3.Page (*ResponseMessage_Text)(nil), // 52: google.cloud.dialogflow.cx.v3.ResponseMessage.Text @@ -3961,7 +3961,7 @@ var file_google_cloud_dialogflow_cx_v3_test_case_proto_goTypes = []interface{}{ (*TransitionRoute)(nil), // 54: google.cloud.dialogflow.cx.v3.TransitionRoute (*EventHandler)(nil), // 55: google.cloud.dialogflow.cx.v3.EventHandler (*TransitionRouteGroup)(nil), // 56: google.cloud.dialogflow.cx.v3.TransitionRouteGroup - (*emptypb.Empty)(nil), // 57: google.protobuf.Empty + (*empty.Empty)(nil), // 57: google.protobuf.Empty (*longrunning.Operation)(nil), // 58: google.longrunning.Operation } var file_google_cloud_dialogflow_cx_v3_test_case_proto_depIdxs = []int32{ @@ -4599,7 +4599,7 @@ type TestCasesClient interface { // Fetches a list of test cases for a given agent. ListTestCases(ctx context.Context, in *ListTestCasesRequest, opts ...grpc.CallOption) (*ListTestCasesResponse, error) // Batch deletes test cases. - BatchDeleteTestCases(ctx context.Context, in *BatchDeleteTestCasesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + BatchDeleteTestCases(ctx context.Context, in *BatchDeleteTestCasesRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets a test case. GetTestCase(ctx context.Context, in *GetTestCaseRequest, opts ...grpc.CallOption) (*TestCase, error) // Creates a test case for the given agent. @@ -4670,8 +4670,8 @@ func (c *testCasesClient) ListTestCases(ctx context.Context, in *ListTestCasesRe return out, nil } -func (c *testCasesClient) BatchDeleteTestCases(ctx context.Context, in *BatchDeleteTestCasesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *testCasesClient) BatchDeleteTestCases(ctx context.Context, in *BatchDeleteTestCasesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.TestCases/BatchDeleteTestCases", in, out, opts...) if err != nil { return nil, err @@ -4774,7 +4774,7 @@ type TestCasesServer interface { // Fetches a list of test cases for a given agent. ListTestCases(context.Context, *ListTestCasesRequest) (*ListTestCasesResponse, error) // Batch deletes test cases. - BatchDeleteTestCases(context.Context, *BatchDeleteTestCasesRequest) (*emptypb.Empty, error) + BatchDeleteTestCases(context.Context, *BatchDeleteTestCasesRequest) (*empty.Empty, error) // Gets a test case. GetTestCase(context.Context, *GetTestCaseRequest) (*TestCase, error) // Creates a test case for the given agent. @@ -4835,7 +4835,7 @@ type UnimplementedTestCasesServer struct { func (*UnimplementedTestCasesServer) ListTestCases(context.Context, *ListTestCasesRequest) (*ListTestCasesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListTestCases not implemented") } -func (*UnimplementedTestCasesServer) BatchDeleteTestCases(context.Context, *BatchDeleteTestCasesRequest) (*emptypb.Empty, error) { +func (*UnimplementedTestCasesServer) BatchDeleteTestCases(context.Context, *BatchDeleteTestCasesRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method BatchDeleteTestCases not implemented") } func (*UnimplementedTestCasesServer) GetTestCase(context.Context, *GetTestCaseRequest) (*TestCase, error) { diff --git a/dialogflow/cx/apiv3/cxpb/transition_route_group.pb.go b/dialogflow/cx/apiv3/cxpb/transition_route_group.pb.go index 75ff8ba9e9ed..fd1c48bd32d6 100644 --- a/dialogflow/cx/apiv3/cxpb/transition_route_group.pb.go +++ b/dialogflow/cx/apiv3/cxpb/transition_route_group.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/transition_route_group.proto package cxpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -426,7 +426,7 @@ type UpdateTransitionRouteGroupRequest struct { // Required. The transition route group to update. TransitionRouteGroup *TransitionRouteGroup `protobuf:"bytes,1,opt,name=transition_route_group,json=transitionRouteGroup,proto3" json:"transition_route_group,omitempty"` // The mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The language of the following fields in `TransitionRouteGroup`: // // * `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` @@ -480,7 +480,7 @@ func (x *UpdateTransitionRouteGroupRequest) GetTransitionRouteGroup() *Transitio return nil } -func (x *UpdateTransitionRouteGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTransitionRouteGroupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -808,8 +808,8 @@ var file_google_cloud_dialogflow_cx_v3_transition_route_group_proto_goTypes = [] (*UpdateTransitionRouteGroupRequest)(nil), // 5: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest (*DeleteTransitionRouteGroupRequest)(nil), // 6: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest (*TransitionRoute)(nil), // 7: google.cloud.dialogflow.cx.v3.TransitionRoute - (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 9: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 8: google.protobuf.FieldMask + (*empty.Empty)(nil), // 9: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_transition_route_group_proto_depIdxs = []int32{ 7, // 0: google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transition_routes:type_name -> google.cloud.dialogflow.cx.v3.TransitionRoute @@ -979,7 +979,7 @@ type TransitionRouteGroupsClient interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteTransitionRouteGroup(ctx context.Context, in *DeleteTransitionRouteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTransitionRouteGroup(ctx context.Context, in *DeleteTransitionRouteGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type transitionRouteGroupsClient struct { @@ -1026,8 +1026,8 @@ func (c *transitionRouteGroupsClient) UpdateTransitionRouteGroup(ctx context.Con return out, nil } -func (c *transitionRouteGroupsClient) DeleteTransitionRouteGroup(ctx context.Context, in *DeleteTransitionRouteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *transitionRouteGroupsClient) DeleteTransitionRouteGroup(ctx context.Context, in *DeleteTransitionRouteGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.TransitionRouteGroups/DeleteTransitionRouteGroup", in, out, opts...) if err != nil { return nil, err @@ -1058,7 +1058,7 @@ type TransitionRouteGroupsServer interface { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - DeleteTransitionRouteGroup(context.Context, *DeleteTransitionRouteGroupRequest) (*emptypb.Empty, error) + DeleteTransitionRouteGroup(context.Context, *DeleteTransitionRouteGroupRequest) (*empty.Empty, error) } // UnimplementedTransitionRouteGroupsServer can be embedded to have forward compatible implementations. @@ -1077,7 +1077,7 @@ func (*UnimplementedTransitionRouteGroupsServer) CreateTransitionRouteGroup(cont func (*UnimplementedTransitionRouteGroupsServer) UpdateTransitionRouteGroup(context.Context, *UpdateTransitionRouteGroupRequest) (*TransitionRouteGroup, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTransitionRouteGroup not implemented") } -func (*UnimplementedTransitionRouteGroupsServer) DeleteTransitionRouteGroup(context.Context, *DeleteTransitionRouteGroupRequest) (*emptypb.Empty, error) { +func (*UnimplementedTransitionRouteGroupsServer) DeleteTransitionRouteGroup(context.Context, *DeleteTransitionRouteGroupRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTransitionRouteGroup not implemented") } diff --git a/dialogflow/cx/apiv3/cxpb/validation_message.pb.go b/dialogflow/cx/apiv3/cxpb/validation_message.pb.go index 96c7caf2abe7..0012c44134e2 100644 --- a/dialogflow/cx/apiv3/cxpb/validation_message.pb.go +++ b/dialogflow/cx/apiv3/cxpb/validation_message.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/validation_message.proto package cxpb diff --git a/dialogflow/cx/apiv3/cxpb/version.pb.go b/dialogflow/cx/apiv3/cxpb/version.pb.go index 0b307d2a66eb..a700e3030349 100644 --- a/dialogflow/cx/apiv3/cxpb/version.pb.go +++ b/dialogflow/cx/apiv3/cxpb/version.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/version.proto package cxpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -171,7 +171,7 @@ type Version struct { // Output only. The NLU settings of the flow at version creation. NluSettings *NluSettings `protobuf:"bytes,4,opt,name=nlu_settings,json=nluSettings,proto3" json:"nlu_settings,omitempty"` // Output only. Create time of the version. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The state of this version. This field is read-only and cannot be set by // create and update methods. State Version_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.dialogflow.cx.v3.Version_State" json:"state,omitempty"` @@ -237,7 +237,7 @@ func (x *Version) GetNluSettings() *NluSettings { return nil } -func (x *Version) GetCreateTime() *timestamppb.Timestamp { +func (x *Version) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -503,7 +503,7 @@ type UpdateVersionRequest struct { Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Required. The mask to control which fields get updated. Currently only `description` // and `display_name` can be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateVersionRequest) Reset() { @@ -545,7 +545,7 @@ func (x *UpdateVersionRequest) GetVersion() *Version { return nil } -func (x *UpdateVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateVersionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -757,7 +757,7 @@ type CompareVersionsResponse struct { // JSON representation of the target version content. TargetVersionContentJson string `protobuf:"bytes,2,opt,name=target_version_content_json,json=targetVersionContentJson,proto3" json:"target_version_content_json,omitempty"` // The timestamp when the two version compares. - CompareTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=compare_time,json=compareTime,proto3" json:"compare_time,omitempty"` + CompareTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=compare_time,json=compareTime,proto3" json:"compare_time,omitempty"` } func (x *CompareVersionsResponse) Reset() { @@ -806,7 +806,7 @@ func (x *CompareVersionsResponse) GetTargetVersionContentJson() string { return "" } -func (x *CompareVersionsResponse) GetCompareTime() *timestamppb.Timestamp { +func (x *CompareVersionsResponse) GetCompareTime() *timestamp.Timestamp { if x != nil { return x.CompareTime } @@ -1109,10 +1109,10 @@ var file_google_cloud_dialogflow_cx_v3_version_proto_goTypes = []interface{}{ (*CompareVersionsRequest)(nil), // 10: google.cloud.dialogflow.cx.v3.CompareVersionsRequest (*CompareVersionsResponse)(nil), // 11: google.cloud.dialogflow.cx.v3.CompareVersionsResponse (*NluSettings)(nil), // 12: google.cloud.dialogflow.cx.v3.NluSettings - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 14: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 15: google.longrunning.Operation - (*emptypb.Empty)(nil), // 16: google.protobuf.Empty + (*empty.Empty)(nil), // 16: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_version_proto_depIdxs = []int32{ 12, // 0: google.cloud.dialogflow.cx.v3.Version.nlu_settings:type_name -> google.cloud.dialogflow.cx.v3.NluSettings @@ -1333,7 +1333,7 @@ type VersionsClient interface { // Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version]. UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*Version, error) // Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version]. - DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Loads resources in the specified version to the draft flow. // // This method is a [long-running @@ -1393,8 +1393,8 @@ func (c *versionsClient) UpdateVersion(ctx context.Context, in *UpdateVersionReq return out, nil } -func (c *versionsClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *versionsClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Versions/DeleteVersion", in, out, opts...) if err != nil { return nil, err @@ -1438,7 +1438,7 @@ type VersionsServer interface { // Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version]. UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error) // Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version]. - DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error) + DeleteVersion(context.Context, *DeleteVersionRequest) (*empty.Empty, error) // Loads resources in the specified version to the draft flow. // // This method is a [long-running @@ -1470,7 +1470,7 @@ func (*UnimplementedVersionsServer) CreateVersion(context.Context, *CreateVersio func (*UnimplementedVersionsServer) UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateVersion not implemented") } -func (*UnimplementedVersionsServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error) { +func (*UnimplementedVersionsServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteVersion not implemented") } func (*UnimplementedVersionsServer) LoadVersion(context.Context, *LoadVersionRequest) (*longrunning.Operation, error) { diff --git a/dialogflow/cx/apiv3/cxpb/webhook.pb.go b/dialogflow/cx/apiv3/cxpb/webhook.pb.go index 635194483371..66f0f242c5e5 100644 --- a/dialogflow/cx/apiv3/cxpb/webhook.pb.go +++ b/dialogflow/cx/apiv3/cxpb/webhook.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/dialogflow/cx/v3/webhook.proto package cxpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -185,7 +185,7 @@ type Webhook struct { // Webhook execution timeout. Execution is considered failed if Dialogflow // doesn't receive a response from webhook at the end of the timeout period. // Defaults to 5 seconds, maximum allowed timeout is 30 seconds. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` // Indicates whether the webhook is disabled. Disabled bool `protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"` } @@ -257,7 +257,7 @@ func (x *Webhook) GetServiceDirectory() *Webhook_ServiceDirectoryConfig { return nil } -func (x *Webhook) GetTimeout() *durationpb.Duration { +func (x *Webhook) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -539,7 +539,7 @@ type UpdateWebhookRequest struct { Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"` // The mask to control which fields get updated. If the mask is not present, // all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateWebhookRequest) Reset() { @@ -581,7 +581,7 @@ func (x *UpdateWebhookRequest) GetWebhook() *Webhook { return nil } -func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateWebhookRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -695,7 +695,7 @@ type WebhookRequest struct { // [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response]; Messages []*ResponseMessage `protobuf:"bytes,7,rep,name=messages,proto3" json:"messages,omitempty"` // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. - Payload *structpb.Struct `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` // The sentiment analysis result of the current user request. The field is // filled when sentiment analysis is configured to be enabled for the request. SentimentAnalysisResult *WebhookRequest_SentimentAnalysisResult `protobuf:"bytes,9,opt,name=sentiment_analysis_result,json=sentimentAnalysisResult,proto3" json:"sentiment_analysis_result,omitempty"` @@ -817,7 +817,7 @@ func (x *WebhookRequest) GetMessages() []*ResponseMessage { return nil } -func (x *WebhookRequest) GetPayload() *structpb.Struct { +func (x *WebhookRequest) GetPayload() *_struct.Struct { if x != nil { return x.Payload } @@ -885,7 +885,7 @@ type WebhookResponse struct { // if it does not intend to modify session status. SessionInfo *SessionInfo `protobuf:"bytes,3,opt,name=session_info,json=sessionInfo,proto3" json:"session_info,omitempty"` // Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. - Payload *structpb.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // The target to transition to. This can be set optionally to indicate an // immediate transition to a different page in the same host flow, or a // different flow in the same agent. @@ -950,7 +950,7 @@ func (x *WebhookResponse) GetSessionInfo() *SessionInfo { return nil } -func (x *WebhookResponse) GetPayload() *structpb.Struct { +func (x *WebhookResponse) GetPayload() *_struct.Struct { if x != nil { return x.Payload } @@ -1092,7 +1092,7 @@ type SessionInfo struct { // parameter from the session, the webhook should explicitly set the parameter // value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters' // display names. - Parameters map[string]*structpb.Value `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Parameters map[string]*_struct.Value `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *SessionInfo) Reset() { @@ -1134,7 +1134,7 @@ func (x *SessionInfo) GetSession() string { return "" } -func (x *SessionInfo) GetParameters() map[string]*structpb.Value { +func (x *SessionInfo) GetParameters() map[string]*_struct.Value { if x != nil { return x.Parameters } @@ -1518,7 +1518,7 @@ type WebhookRequest_IntentInfo_IntentParameterValue struct { OriginalValue string `protobuf:"bytes,1,opt,name=original_value,json=originalValue,proto3" json:"original_value,omitempty"` // Always present. Structured value for the parameter extracted from user // utterance. - ResolvedValue *structpb.Value `protobuf:"bytes,2,opt,name=resolved_value,json=resolvedValue,proto3" json:"resolved_value,omitempty"` + ResolvedValue *_struct.Value `protobuf:"bytes,2,opt,name=resolved_value,json=resolvedValue,proto3" json:"resolved_value,omitempty"` } func (x *WebhookRequest_IntentInfo_IntentParameterValue) Reset() { @@ -1560,7 +1560,7 @@ func (x *WebhookRequest_IntentInfo_IntentParameterValue) GetOriginalValue() stri return "" } -func (x *WebhookRequest_IntentInfo_IntentParameterValue) GetResolvedValue() *structpb.Value { +func (x *WebhookRequest_IntentInfo_IntentParameterValue) GetResolvedValue() *_struct.Value { if x != nil { return x.ResolvedValue } @@ -1701,7 +1701,7 @@ type PageInfo_FormInfo_ParameterInfo struct { // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // The value of the parameter. This field can be set by the webhook to // change the parameter value. - Value *structpb.Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + Value *_struct.Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Indicates if the parameter value was just collected on the last // conversation turn. @@ -1761,7 +1761,7 @@ func (x *PageInfo_FormInfo_ParameterInfo) GetState() PageInfo_FormInfo_Parameter return PageInfo_FormInfo_ParameterInfo_PARAMETER_STATE_UNSPECIFIED } -func (x *PageInfo_FormInfo_ParameterInfo) GetValue() *structpb.Value { +func (x *PageInfo_FormInfo_ParameterInfo) GetValue() *_struct.Value { if x != nil { return x.Value } @@ -2252,12 +2252,12 @@ var file_google_cloud_dialogflow_cx_v3_webhook_proto_goTypes = []interface{}{ (*PageInfo_FormInfo)(nil), // 22: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo (*PageInfo_FormInfo_ParameterInfo)(nil), // 23: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo nil, // 24: google.cloud.dialogflow.cx.v3.SessionInfo.ParametersEntry - (*durationpb.Duration)(nil), // 25: google.protobuf.Duration - (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask + (*duration.Duration)(nil), // 25: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 26: google.protobuf.FieldMask (*ResponseMessage)(nil), // 27: google.cloud.dialogflow.cx.v3.ResponseMessage - (*structpb.Struct)(nil), // 28: google.protobuf.Struct - (*structpb.Value)(nil), // 29: google.protobuf.Value - (*emptypb.Empty)(nil), // 30: google.protobuf.Empty + (*_struct.Struct)(nil), // 28: google.protobuf.Struct + (*_struct.Value)(nil), // 29: google.protobuf.Value + (*empty.Empty)(nil), // 30: google.protobuf.Empty } var file_google_cloud_dialogflow_cx_v3_webhook_proto_depIdxs = []int32{ 13, // 0: google.cloud.dialogflow.cx.v3.Webhook.generic_web_service:type_name -> google.cloud.dialogflow.cx.v3.Webhook.GenericWebService @@ -2612,7 +2612,7 @@ type WebhooksClient interface { // Updates the specified webhook. UpdateWebhook(ctx context.Context, in *UpdateWebhookRequest, opts ...grpc.CallOption) (*Webhook, error) // Deletes the specified webhook. - DeleteWebhook(ctx context.Context, in *DeleteWebhookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteWebhook(ctx context.Context, in *DeleteWebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type webhooksClient struct { @@ -2659,8 +2659,8 @@ func (c *webhooksClient) UpdateWebhook(ctx context.Context, in *UpdateWebhookReq return out, nil } -func (c *webhooksClient) DeleteWebhook(ctx context.Context, in *DeleteWebhookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *webhooksClient) DeleteWebhook(ctx context.Context, in *DeleteWebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.cx.v3.Webhooks/DeleteWebhook", in, out, opts...) if err != nil { return nil, err @@ -2679,7 +2679,7 @@ type WebhooksServer interface { // Updates the specified webhook. UpdateWebhook(context.Context, *UpdateWebhookRequest) (*Webhook, error) // Deletes the specified webhook. - DeleteWebhook(context.Context, *DeleteWebhookRequest) (*emptypb.Empty, error) + DeleteWebhook(context.Context, *DeleteWebhookRequest) (*empty.Empty, error) } // UnimplementedWebhooksServer can be embedded to have forward compatible implementations. @@ -2698,7 +2698,7 @@ func (*UnimplementedWebhooksServer) CreateWebhook(context.Context, *CreateWebhoo func (*UnimplementedWebhooksServer) UpdateWebhook(context.Context, *UpdateWebhookRequest) (*Webhook, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateWebhook not implemented") } -func (*UnimplementedWebhooksServer) DeleteWebhook(context.Context, *DeleteWebhookRequest) (*emptypb.Empty, error) { +func (*UnimplementedWebhooksServer) DeleteWebhook(context.Context, *DeleteWebhookRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteWebhook not implemented") } diff --git a/dlp/apiv2/dlppb/dlp.pb.go b/dlp/apiv2/dlppb/dlp.pb.go index 143b790d71a4..538f25ba24fe 100644 --- a/dlp/apiv2/dlppb/dlp.pb.go +++ b/dlp/apiv2/dlppb/dlp.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/privacy/dlp/v2/dlp.proto package dlppb @@ -25,20 +25,20 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" date "google.golang.org/genproto/googleapis/type/date" dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -2840,7 +2840,7 @@ type Finding struct { // Where the content was found. Location *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` // Timestamp when finding was detected. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Contains data parsed from quotes. Only populated if include_quote was set // to true and a supported infoType was requested. Currently supported // infoTypes: DATE, DATE_OF_BIRTH and TIME. @@ -2864,7 +2864,7 @@ type Finding struct { // * `"pipeline" : "etl"` Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Time the job started that produced this finding. - JobCreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=job_create_time,json=jobCreateTime,proto3" json:"job_create_time,omitempty"` + JobCreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=job_create_time,json=jobCreateTime,proto3" json:"job_create_time,omitempty"` // The job that stored the finding. JobName string `protobuf:"bytes,13,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` // The unique finding id. @@ -2938,7 +2938,7 @@ func (x *Finding) GetLocation() *Location { return nil } -func (x *Finding) GetCreateTime() *timestamppb.Timestamp { +func (x *Finding) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -2973,7 +2973,7 @@ func (x *Finding) GetLabels() map[string]string { return nil } -func (x *Finding) GetJobCreateTime() *timestamppb.Timestamp { +func (x *Finding) GetJobCreateTime() *timestamp.Timestamp { if x != nil { return x.JobCreateTime } @@ -3108,7 +3108,7 @@ type ContentLocation struct { // this field contains the last file modification timestamp. For a BigQuery // table, this field contains the last_modified_time property. For Datastore, // this field isn't populated. - ContainerTimestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=container_timestamp,json=containerTimestamp,proto3" json:"container_timestamp,omitempty"` + ContainerTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=container_timestamp,json=containerTimestamp,proto3" json:"container_timestamp,omitempty"` // Finding container version, if available // ("generation" for Cloud Storage). ContainerVersion string `protobuf:"bytes,7,opt,name=container_version,json=containerVersion,proto3" json:"container_version,omitempty"` @@ -3188,7 +3188,7 @@ func (x *ContentLocation) GetMetadataLocation() *MetadataLocation { return nil } -func (x *ContentLocation) GetContainerTimestamp() *timestamppb.Timestamp { +func (x *ContentLocation) GetContainerTimestamp() *timestamp.Timestamp { if x != nil { return x.ContainerTimestamp } @@ -3571,7 +3571,7 @@ type Container struct { // Storage, this field contains the last file modification timestamp. For a // BigQuery table, this field contains the last_modified_time property. For // Datastore, this field isn't populated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Findings container version, if available // ("generation" for Cloud Storage). Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` @@ -3644,7 +3644,7 @@ func (x *Container) GetRelativePath() string { return "" } -func (x *Container) GetUpdateTime() *timestamppb.Timestamp { +func (x *Container) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -5450,7 +5450,7 @@ func (x *QuasiId) GetCustomTag() string { return "" } -func (x *QuasiId) GetInferred() *emptypb.Empty { +func (x *QuasiId) GetInferred() *empty.Empty { if x, ok := x.GetTag().(*QuasiId_Inferred); ok { return x.Inferred } @@ -5480,7 +5480,7 @@ type QuasiId_CustomTag struct { type QuasiId_Inferred struct { // If no semantic tag is indicated, we infer the statistical model from // the distribution of values in the input data - Inferred *emptypb.Empty `protobuf:"bytes,4,opt,name=inferred,proto3,oneof"` + Inferred *empty.Empty `protobuf:"bytes,4,opt,name=inferred,proto3,oneof"` } func (*QuasiId_InfoType) isQuasiId_Tag() {} @@ -6035,7 +6035,7 @@ func (x *Value) GetBooleanValue() bool { return false } -func (x *Value) GetTimestampValue() *timestamppb.Timestamp { +func (x *Value) GetTimestampValue() *timestamp.Timestamp { if x, ok := x.GetType().(*Value_TimestampValue); ok { return x.TimestampValue } @@ -6089,7 +6089,7 @@ type Value_BooleanValue struct { type Value_TimestampValue struct { // timestamp - TimestampValue *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` + TimestampValue *timestamp.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` } type Value_TimeValue struct { @@ -8901,7 +8901,7 @@ type RecordTransformation struct { // For record transformations, provide a field. FieldId *FieldId `protobuf:"bytes,1,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"` // Findings container modification timestamp, if applicable. - ContainerTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=container_timestamp,json=containerTimestamp,proto3" json:"container_timestamp,omitempty"` + ContainerTimestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=container_timestamp,json=containerTimestamp,proto3" json:"container_timestamp,omitempty"` // Container version, if available ("generation" for Cloud Storage). ContainerVersion string `protobuf:"bytes,3,opt,name=container_version,json=containerVersion,proto3" json:"container_version,omitempty"` } @@ -8945,7 +8945,7 @@ func (x *RecordTransformation) GetFieldId() *FieldId { return nil } -func (x *RecordTransformation) GetContainerTimestamp() *timestamppb.Timestamp { +func (x *RecordTransformation) GetContainerTimestamp() *timestamp.Timestamp { if x != nil { return x.ContainerTimestamp } @@ -9144,7 +9144,7 @@ func (m *Schedule) GetOption() isSchedule_Option { return nil } -func (x *Schedule) GetRecurrencePeriodDuration() *durationpb.Duration { +func (x *Schedule) GetRecurrencePeriodDuration() *duration.Duration { if x, ok := x.GetOption().(*Schedule_RecurrencePeriodDuration); ok { return x.RecurrencePeriodDuration } @@ -9164,7 +9164,7 @@ type Schedule_RecurrencePeriodDuration struct { // // This value must be set to a time duration greater than or equal // to 1 day and can be no longer than 60 days. - RecurrencePeriodDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=recurrence_period_duration,json=recurrencePeriodDuration,proto3,oneof"` + RecurrencePeriodDuration *duration.Duration `protobuf:"bytes,1,opt,name=recurrence_period_duration,json=recurrencePeriodDuration,proto3,oneof"` } func (*Schedule_RecurrencePeriodDuration) isSchedule_Option() {} @@ -9229,9 +9229,9 @@ type InspectTemplate struct { // Short description (max 256 chars). Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of an inspectTemplate. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of an inspectTemplate. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The core content of the template. Configuration of the scanning process. InspectConfig *InspectConfig `protobuf:"bytes,6,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"` } @@ -9289,14 +9289,14 @@ func (x *InspectTemplate) GetDescription() string { return "" } -func (x *InspectTemplate) GetCreateTime() *timestamppb.Timestamp { +func (x *InspectTemplate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *InspectTemplate) GetUpdateTime() *timestamppb.Timestamp { +func (x *InspectTemplate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -9328,9 +9328,9 @@ type DeidentifyTemplate struct { // Short description (max 256 chars). Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of an inspectTemplate. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of an inspectTemplate. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The core content of the template. DeidentifyConfig *DeidentifyConfig `protobuf:"bytes,6,opt,name=deidentify_config,json=deidentifyConfig,proto3" json:"deidentify_config,omitempty"` } @@ -9388,14 +9388,14 @@ func (x *DeidentifyTemplate) GetDescription() string { return "" } -func (x *DeidentifyTemplate) GetCreateTime() *timestamppb.Timestamp { +func (x *DeidentifyTemplate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DeidentifyTemplate) GetUpdateTime() *timestamppb.Timestamp { +func (x *DeidentifyTemplate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -9419,7 +9419,7 @@ type Error struct { // Detailed error codes and messages. Details *status.Status `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` // The times the error occurred. - Timestamps []*timestamppb.Timestamp `protobuf:"bytes,2,rep,name=timestamps,proto3" json:"timestamps,omitempty"` + Timestamps []*timestamp.Timestamp `protobuf:"bytes,2,rep,name=timestamps,proto3" json:"timestamps,omitempty"` } func (x *Error) Reset() { @@ -9461,7 +9461,7 @@ func (x *Error) GetDetails() *status.Status { return nil } -func (x *Error) GetTimestamps() []*timestamppb.Timestamp { +func (x *Error) GetTimestamps() []*timestamp.Timestamp { if x != nil { return x.Timestamps } @@ -9499,11 +9499,11 @@ type JobTrigger struct { // this list will be cleared. Errors []*Error `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"` // Output only. The creation timestamp of a triggeredJob. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of a triggeredJob. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The timestamp of the last time this trigger executed. - LastRunTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"` + LastRunTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"` // Required. A status for this trigger. Status JobTrigger_Status `protobuf:"varint,10,opt,name=status,proto3,enum=google.privacy.dlp.v2.JobTrigger_Status" json:"status,omitempty"` } @@ -9589,21 +9589,21 @@ func (x *JobTrigger) GetErrors() []*Error { return nil } -func (x *JobTrigger) GetCreateTime() *timestamppb.Timestamp { +func (x *JobTrigger) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *JobTrigger) GetUpdateTime() *timestamppb.Timestamp { +func (x *JobTrigger) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *JobTrigger) GetLastRunTime() *timestamppb.Timestamp { +func (x *JobTrigger) GetLastRunTime() *timestamp.Timestamp { if x != nil { return x.LastRunTime } @@ -9983,7 +9983,7 @@ type UpdateInspectTemplateRequest struct { // New InspectTemplate value. InspectTemplate *InspectTemplate `protobuf:"bytes,2,opt,name=inspect_template,json=inspectTemplate,proto3" json:"inspect_template,omitempty"` // Mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateInspectTemplateRequest) Reset() { @@ -10032,7 +10032,7 @@ func (x *UpdateInspectTemplateRequest) GetInspectTemplate() *InspectTemplate { return nil } -func (x *UpdateInspectTemplateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInspectTemplateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -10474,7 +10474,7 @@ type UpdateJobTriggerRequest struct { // New JobTrigger value. JobTrigger *JobTrigger `protobuf:"bytes,2,opt,name=job_trigger,json=jobTrigger,proto3" json:"job_trigger,omitempty"` // Mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateJobTriggerRequest) Reset() { @@ -10523,7 +10523,7 @@ func (x *UpdateJobTriggerRequest) GetJobTrigger() *JobTrigger { return nil } -func (x *UpdateJobTriggerRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateJobTriggerRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -11346,11 +11346,11 @@ type DlpJob struct { // *DlpJob_InspectDetails Details isDlpJob_Details `protobuf_oneof:"details"` // Time when the job was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time when the job started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time when the job finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // If created by a job trigger, the resource name of the trigger that // instantiated the job. JobTriggerName string `protobuf:"bytes,10,opt,name=job_trigger_name,json=jobTriggerName,proto3" json:"job_trigger_name,omitempty"` @@ -11432,21 +11432,21 @@ func (x *DlpJob) GetInspectDetails() *InspectDataSourceDetails { return nil } -func (x *DlpJob) GetCreateTime() *timestamppb.Timestamp { +func (x *DlpJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DlpJob) GetStartTime() *timestamppb.Timestamp { +func (x *DlpJob) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *DlpJob) GetEndTime() *timestamppb.Timestamp { +func (x *DlpJob) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -12009,7 +12009,7 @@ type UpdateDeidentifyTemplateRequest struct { // New DeidentifyTemplate value. DeidentifyTemplate *DeidentifyTemplate `protobuf:"bytes,2,opt,name=deidentify_template,json=deidentifyTemplate,proto3" json:"deidentify_template,omitempty"` // Mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDeidentifyTemplateRequest) Reset() { @@ -12058,7 +12058,7 @@ func (x *UpdateDeidentifyTemplateRequest) GetDeidentifyTemplate() *DeidentifyTem return nil } -func (x *UpdateDeidentifyTemplateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDeidentifyTemplateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -12698,7 +12698,7 @@ type StoredInfoTypeVersion struct { Config *StoredInfoTypeConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // Create timestamp of the version. Read-only, determined by the system // when the version is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Stored info type version state. Read-only, updated by the system // during dictionary creation. State StoredInfoTypeState `protobuf:"varint,3,opt,name=state,proto3,enum=google.privacy.dlp.v2.StoredInfoTypeState" json:"state,omitempty"` @@ -12759,7 +12759,7 @@ func (x *StoredInfoTypeVersion) GetConfig() *StoredInfoTypeConfig { return nil } -func (x *StoredInfoTypeVersion) GetCreateTime() *timestamppb.Timestamp { +func (x *StoredInfoTypeVersion) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -12969,7 +12969,7 @@ type UpdateStoredInfoTypeRequest struct { // configuration. Config *StoredInfoTypeConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Mask to control which fields get updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateStoredInfoTypeRequest) Reset() { @@ -13018,7 +13018,7 @@ func (x *UpdateStoredInfoTypeRequest) GetConfig() *StoredInfoTypeConfig { return nil } -func (x *UpdateStoredInfoTypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateStoredInfoTypeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -13774,9 +13774,9 @@ type TableDataProfile struct { // The snapshot of the configurations used to generate the profile. ConfigSnapshot *DataProfileConfigSnapshot `protobuf:"bytes,7,opt,name=config_snapshot,json=configSnapshot,proto3" json:"config_snapshot,omitempty"` // The time when this table was last modified - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` + LastModifiedTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` // Optional. The time when this table expires. - ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // The number of columns profiled in the table. ScannedColumnCount int64 `protobuf:"varint,10,opt,name=scanned_column_count,json=scannedColumnCount,proto3" json:"scanned_column_count,omitempty"` // The number of columns skipped in the table because of an error. @@ -13790,11 +13790,11 @@ type TableDataProfile struct { // How broadly a resource has been shared. ResourceVisibility ResourceVisibility `protobuf:"varint,15,opt,name=resource_visibility,json=resourceVisibility,proto3,enum=google.privacy.dlp.v2.ResourceVisibility" json:"resource_visibility,omitempty"` // The last time the profile was generated. - ProfileLastGenerated *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=profile_last_generated,json=profileLastGenerated,proto3" json:"profile_last_generated,omitempty"` + ProfileLastGenerated *timestamp.Timestamp `protobuf:"bytes,16,opt,name=profile_last_generated,json=profileLastGenerated,proto3" json:"profile_last_generated,omitempty"` // The labels applied to the resource at the time the profile was generated. ResourceLabels map[string]string `protobuf:"bytes,17,rep,name=resource_labels,json=resourceLabels,proto3" json:"resource_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The time at which the table was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,23,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *TableDataProfile) Reset() { @@ -13927,14 +13927,14 @@ func (x *TableDataProfile) GetConfigSnapshot() *DataProfileConfigSnapshot { return nil } -func (x *TableDataProfile) GetLastModifiedTime() *timestamppb.Timestamp { +func (x *TableDataProfile) GetLastModifiedTime() *timestamp.Timestamp { if x != nil { return x.LastModifiedTime } return nil } -func (x *TableDataProfile) GetExpirationTime() *timestamppb.Timestamp { +func (x *TableDataProfile) GetExpirationTime() *timestamp.Timestamp { if x != nil { return x.ExpirationTime } @@ -13983,7 +13983,7 @@ func (x *TableDataProfile) GetResourceVisibility() ResourceVisibility { return ResourceVisibility_RESOURCE_VISIBILITY_UNSPECIFIED } -func (x *TableDataProfile) GetProfileLastGenerated() *timestamppb.Timestamp { +func (x *TableDataProfile) GetProfileLastGenerated() *timestamp.Timestamp { if x != nil { return x.ProfileLastGenerated } @@ -13997,7 +13997,7 @@ func (x *TableDataProfile) GetResourceLabels() map[string]string { return nil } -func (x *TableDataProfile) GetCreateTime() *timestamppb.Timestamp { +func (x *TableDataProfile) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -14012,7 +14012,7 @@ type ProfileStatus struct { // Profiling status code and optional message Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Time when the profile generation status was updated - Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (x *ProfileStatus) Reset() { @@ -14054,7 +14054,7 @@ func (x *ProfileStatus) GetStatus() *status.Status { return nil } -func (x *ProfileStatus) GetTimestamp() *timestamppb.Timestamp { +func (x *ProfileStatus) GetTimestamp() *timestamp.Timestamp { if x != nil { return x.Timestamp } @@ -15248,7 +15248,7 @@ func (x *PrivacyMetric_KMapEstimationConfig_TaggedField) GetCustomTag() string { return "" } -func (x *PrivacyMetric_KMapEstimationConfig_TaggedField) GetInferred() *emptypb.Empty { +func (x *PrivacyMetric_KMapEstimationConfig_TaggedField) GetInferred() *empty.Empty { if x, ok := x.GetTag().(*PrivacyMetric_KMapEstimationConfig_TaggedField_Inferred); ok { return x.Inferred } @@ -15278,7 +15278,7 @@ type PrivacyMetric_KMapEstimationConfig_TaggedField_CustomTag struct { type PrivacyMetric_KMapEstimationConfig_TaggedField_Inferred struct { // If no semantic tag is indicated, we infer the statistical model from // the distribution of values in the input data - Inferred *emptypb.Empty `protobuf:"bytes,4,opt,name=inferred,proto3,oneof"` + Inferred *empty.Empty `protobuf:"bytes,4,opt,name=inferred,proto3,oneof"` } func (*PrivacyMetric_KMapEstimationConfig_TaggedField_InfoType) isPrivacyMetric_KMapEstimationConfig_TaggedField_Tag() { @@ -22121,17 +22121,17 @@ var file_google_privacy_dlp_v2_dlp_proto_goTypes = []interface{}{ (Likelihood)(0), // 240: google.privacy.dlp.v2.Likelihood (*CustomInfoType)(nil), // 241: google.privacy.dlp.v2.CustomInfoType (*FieldId)(nil), // 242: google.privacy.dlp.v2.FieldId - (*timestamppb.Timestamp)(nil), // 243: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 243: google.protobuf.Timestamp (*RecordKey)(nil), // 244: google.privacy.dlp.v2.RecordKey (*BigQueryTable)(nil), // 245: google.privacy.dlp.v2.BigQueryTable - (*emptypb.Empty)(nil), // 246: google.protobuf.Empty + (*empty.Empty)(nil), // 246: google.protobuf.Empty (*timeofday.TimeOfDay)(nil), // 247: google.type.TimeOfDay (*date.Date)(nil), // 248: google.type.Date (dayofweek.DayOfWeek)(0), // 249: google.type.DayOfWeek (*CustomInfoType_Dictionary_WordList)(nil), // 250: google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList (*status.Status)(nil), // 251: google.rpc.Status - (*durationpb.Duration)(nil), // 252: google.protobuf.Duration - (*fieldmaskpb.FieldMask)(nil), // 253: google.protobuf.FieldMask + (*duration.Duration)(nil), // 252: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 253: google.protobuf.FieldMask (*StorageConfig)(nil), // 254: google.privacy.dlp.v2.StorageConfig (*CloudStoragePath)(nil), // 255: google.privacy.dlp.v2.CloudStoragePath (*CloudStorageFileSet)(nil), // 256: google.privacy.dlp.v2.CloudStorageFileSet @@ -25292,7 +25292,7 @@ type DlpServiceClient interface { ListInspectTemplates(ctx context.Context, in *ListInspectTemplatesRequest, opts ...grpc.CallOption) (*ListInspectTemplatesResponse, error) // Deletes an InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - DeleteInspectTemplate(ctx context.Context, in *DeleteInspectTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteInspectTemplate(ctx context.Context, in *DeleteInspectTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn @@ -25313,7 +25313,7 @@ type DlpServiceClient interface { // Deletes a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - DeleteDeidentifyTemplate(ctx context.Context, in *DeleteDeidentifyTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDeidentifyTemplate(ctx context.Context, in *DeleteDeidentifyTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a job trigger to run DLP actions such as scanning storage for // sensitive information on a set schedule. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. @@ -25333,7 +25333,7 @@ type DlpServiceClient interface { ListJobTriggers(ctx context.Context, in *ListJobTriggersRequest, opts ...grpc.CallOption) (*ListJobTriggersResponse, error) // Deletes a job trigger. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - DeleteJobTrigger(ctx context.Context, in *DeleteJobTriggerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJobTrigger(ctx context.Context, in *DeleteJobTriggerRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Activate a job trigger. Causes the immediate execute of a trigger // instead of waiting on the trigger event to occur. ActivateJobTrigger(ctx context.Context, in *ActivateJobTriggerRequest, opts ...grpc.CallOption) (*DlpJob, error) @@ -25358,13 +25358,13 @@ type DlpServiceClient interface { // possible. // See https://cloud.google.com/dlp/docs/inspecting-storage and // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - DeleteDlpJob(ctx context.Context, in *DeleteDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDlpJob(ctx context.Context, in *DeleteDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Starts asynchronous cancellation on a long-running DlpJob. The server // makes a best effort to cancel the DlpJob, but success is not // guaranteed. // See https://cloud.google.com/dlp/docs/inspecting-storage and // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - CancelDlpJob(ctx context.Context, in *CancelDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelDlpJob(ctx context.Context, in *CancelDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a pre-built stored infoType to be used for inspection. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. @@ -25385,14 +25385,14 @@ type DlpServiceClient interface { // Deletes a stored infoType. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - DeleteStoredInfoType(ctx context.Context, in *DeleteStoredInfoTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteStoredInfoType(ctx context.Context, in *DeleteStoredInfoTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Inspect hybrid content and store findings to a job. // To review the findings, inspect the job. Inspection will occur // asynchronously. HybridInspectDlpJob(ctx context.Context, in *HybridInspectDlpJobRequest, opts ...grpc.CallOption) (*HybridInspectResponse, error) // Finish a running hybrid DlpJob. Triggers the finalization steps and running // of any enabled actions that have not yet run. - FinishDlpJob(ctx context.Context, in *FinishDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + FinishDlpJob(ctx context.Context, in *FinishDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type dlpServiceClient struct { @@ -25484,8 +25484,8 @@ func (c *dlpServiceClient) ListInspectTemplates(ctx context.Context, in *ListIns return out, nil } -func (c *dlpServiceClient) DeleteInspectTemplate(ctx context.Context, in *DeleteInspectTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) DeleteInspectTemplate(ctx context.Context, in *DeleteInspectTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate", in, out, opts...) if err != nil { return nil, err @@ -25529,8 +25529,8 @@ func (c *dlpServiceClient) ListDeidentifyTemplates(ctx context.Context, in *List return out, nil } -func (c *dlpServiceClient) DeleteDeidentifyTemplate(ctx context.Context, in *DeleteDeidentifyTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) DeleteDeidentifyTemplate(ctx context.Context, in *DeleteDeidentifyTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate", in, out, opts...) if err != nil { return nil, err @@ -25583,8 +25583,8 @@ func (c *dlpServiceClient) ListJobTriggers(ctx context.Context, in *ListJobTrigg return out, nil } -func (c *dlpServiceClient) DeleteJobTrigger(ctx context.Context, in *DeleteJobTriggerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) DeleteJobTrigger(ctx context.Context, in *DeleteJobTriggerRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/DeleteJobTrigger", in, out, opts...) if err != nil { return nil, err @@ -25628,8 +25628,8 @@ func (c *dlpServiceClient) GetDlpJob(ctx context.Context, in *GetDlpJobRequest, return out, nil } -func (c *dlpServiceClient) DeleteDlpJob(ctx context.Context, in *DeleteDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) DeleteDlpJob(ctx context.Context, in *DeleteDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/DeleteDlpJob", in, out, opts...) if err != nil { return nil, err @@ -25637,8 +25637,8 @@ func (c *dlpServiceClient) DeleteDlpJob(ctx context.Context, in *DeleteDlpJobReq return out, nil } -func (c *dlpServiceClient) CancelDlpJob(ctx context.Context, in *CancelDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) CancelDlpJob(ctx context.Context, in *CancelDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/CancelDlpJob", in, out, opts...) if err != nil { return nil, err @@ -25682,8 +25682,8 @@ func (c *dlpServiceClient) ListStoredInfoTypes(ctx context.Context, in *ListStor return out, nil } -func (c *dlpServiceClient) DeleteStoredInfoType(ctx context.Context, in *DeleteStoredInfoTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) DeleteStoredInfoType(ctx context.Context, in *DeleteStoredInfoTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType", in, out, opts...) if err != nil { return nil, err @@ -25700,8 +25700,8 @@ func (c *dlpServiceClient) HybridInspectDlpJob(ctx context.Context, in *HybridIn return out, nil } -func (c *dlpServiceClient) FinishDlpJob(ctx context.Context, in *FinishDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dlpServiceClient) FinishDlpJob(ctx context.Context, in *FinishDlpJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.privacy.dlp.v2.DlpService/FinishDlpJob", in, out, opts...) if err != nil { return nil, err @@ -25763,7 +25763,7 @@ type DlpServiceServer interface { ListInspectTemplates(context.Context, *ListInspectTemplatesRequest) (*ListInspectTemplatesResponse, error) // Deletes an InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - DeleteInspectTemplate(context.Context, *DeleteInspectTemplateRequest) (*emptypb.Empty, error) + DeleteInspectTemplate(context.Context, *DeleteInspectTemplateRequest) (*empty.Empty, error) // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn @@ -25784,7 +25784,7 @@ type DlpServiceServer interface { // Deletes a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - DeleteDeidentifyTemplate(context.Context, *DeleteDeidentifyTemplateRequest) (*emptypb.Empty, error) + DeleteDeidentifyTemplate(context.Context, *DeleteDeidentifyTemplateRequest) (*empty.Empty, error) // Creates a job trigger to run DLP actions such as scanning storage for // sensitive information on a set schedule. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. @@ -25804,7 +25804,7 @@ type DlpServiceServer interface { ListJobTriggers(context.Context, *ListJobTriggersRequest) (*ListJobTriggersResponse, error) // Deletes a job trigger. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - DeleteJobTrigger(context.Context, *DeleteJobTriggerRequest) (*emptypb.Empty, error) + DeleteJobTrigger(context.Context, *DeleteJobTriggerRequest) (*empty.Empty, error) // Activate a job trigger. Causes the immediate execute of a trigger // instead of waiting on the trigger event to occur. ActivateJobTrigger(context.Context, *ActivateJobTriggerRequest) (*DlpJob, error) @@ -25829,13 +25829,13 @@ type DlpServiceServer interface { // possible. // See https://cloud.google.com/dlp/docs/inspecting-storage and // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - DeleteDlpJob(context.Context, *DeleteDlpJobRequest) (*emptypb.Empty, error) + DeleteDlpJob(context.Context, *DeleteDlpJobRequest) (*empty.Empty, error) // Starts asynchronous cancellation on a long-running DlpJob. The server // makes a best effort to cancel the DlpJob, but success is not // guaranteed. // See https://cloud.google.com/dlp/docs/inspecting-storage and // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - CancelDlpJob(context.Context, *CancelDlpJobRequest) (*emptypb.Empty, error) + CancelDlpJob(context.Context, *CancelDlpJobRequest) (*empty.Empty, error) // Creates a pre-built stored infoType to be used for inspection. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. @@ -25856,14 +25856,14 @@ type DlpServiceServer interface { // Deletes a stored infoType. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - DeleteStoredInfoType(context.Context, *DeleteStoredInfoTypeRequest) (*emptypb.Empty, error) + DeleteStoredInfoType(context.Context, *DeleteStoredInfoTypeRequest) (*empty.Empty, error) // Inspect hybrid content and store findings to a job. // To review the findings, inspect the job. Inspection will occur // asynchronously. HybridInspectDlpJob(context.Context, *HybridInspectDlpJobRequest) (*HybridInspectResponse, error) // Finish a running hybrid DlpJob. Triggers the finalization steps and running // of any enabled actions that have not yet run. - FinishDlpJob(context.Context, *FinishDlpJobRequest) (*emptypb.Empty, error) + FinishDlpJob(context.Context, *FinishDlpJobRequest) (*empty.Empty, error) } // UnimplementedDlpServiceServer can be embedded to have forward compatible implementations. @@ -25897,7 +25897,7 @@ func (*UnimplementedDlpServiceServer) GetInspectTemplate(context.Context, *GetIn func (*UnimplementedDlpServiceServer) ListInspectTemplates(context.Context, *ListInspectTemplatesRequest) (*ListInspectTemplatesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListInspectTemplates not implemented") } -func (*UnimplementedDlpServiceServer) DeleteInspectTemplate(context.Context, *DeleteInspectTemplateRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) DeleteInspectTemplate(context.Context, *DeleteInspectTemplateRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteInspectTemplate not implemented") } func (*UnimplementedDlpServiceServer) CreateDeidentifyTemplate(context.Context, *CreateDeidentifyTemplateRequest) (*DeidentifyTemplate, error) { @@ -25912,7 +25912,7 @@ func (*UnimplementedDlpServiceServer) GetDeidentifyTemplate(context.Context, *Ge func (*UnimplementedDlpServiceServer) ListDeidentifyTemplates(context.Context, *ListDeidentifyTemplatesRequest) (*ListDeidentifyTemplatesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListDeidentifyTemplates not implemented") } -func (*UnimplementedDlpServiceServer) DeleteDeidentifyTemplate(context.Context, *DeleteDeidentifyTemplateRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) DeleteDeidentifyTemplate(context.Context, *DeleteDeidentifyTemplateRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteDeidentifyTemplate not implemented") } func (*UnimplementedDlpServiceServer) CreateJobTrigger(context.Context, *CreateJobTriggerRequest) (*JobTrigger, error) { @@ -25930,7 +25930,7 @@ func (*UnimplementedDlpServiceServer) GetJobTrigger(context.Context, *GetJobTrig func (*UnimplementedDlpServiceServer) ListJobTriggers(context.Context, *ListJobTriggersRequest) (*ListJobTriggersResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListJobTriggers not implemented") } -func (*UnimplementedDlpServiceServer) DeleteJobTrigger(context.Context, *DeleteJobTriggerRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) DeleteJobTrigger(context.Context, *DeleteJobTriggerRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteJobTrigger not implemented") } func (*UnimplementedDlpServiceServer) ActivateJobTrigger(context.Context, *ActivateJobTriggerRequest) (*DlpJob, error) { @@ -25945,10 +25945,10 @@ func (*UnimplementedDlpServiceServer) ListDlpJobs(context.Context, *ListDlpJobsR func (*UnimplementedDlpServiceServer) GetDlpJob(context.Context, *GetDlpJobRequest) (*DlpJob, error) { return nil, status1.Errorf(codes.Unimplemented, "method GetDlpJob not implemented") } -func (*UnimplementedDlpServiceServer) DeleteDlpJob(context.Context, *DeleteDlpJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) DeleteDlpJob(context.Context, *DeleteDlpJobRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteDlpJob not implemented") } -func (*UnimplementedDlpServiceServer) CancelDlpJob(context.Context, *CancelDlpJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) CancelDlpJob(context.Context, *CancelDlpJobRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CancelDlpJob not implemented") } func (*UnimplementedDlpServiceServer) CreateStoredInfoType(context.Context, *CreateStoredInfoTypeRequest) (*StoredInfoType, error) { @@ -25963,13 +25963,13 @@ func (*UnimplementedDlpServiceServer) GetStoredInfoType(context.Context, *GetSto func (*UnimplementedDlpServiceServer) ListStoredInfoTypes(context.Context, *ListStoredInfoTypesRequest) (*ListStoredInfoTypesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListStoredInfoTypes not implemented") } -func (*UnimplementedDlpServiceServer) DeleteStoredInfoType(context.Context, *DeleteStoredInfoTypeRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) DeleteStoredInfoType(context.Context, *DeleteStoredInfoTypeRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteStoredInfoType not implemented") } func (*UnimplementedDlpServiceServer) HybridInspectDlpJob(context.Context, *HybridInspectDlpJobRequest) (*HybridInspectResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method HybridInspectDlpJob not implemented") } -func (*UnimplementedDlpServiceServer) FinishDlpJob(context.Context, *FinishDlpJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedDlpServiceServer) FinishDlpJob(context.Context, *FinishDlpJobRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method FinishDlpJob not implemented") } diff --git a/dlp/apiv2/dlppb/storage.pb.go b/dlp/apiv2/dlppb/storage.pb.go index bf93311b8fc3..08d26ea6a1a1 100644 --- a/dlp/apiv2/dlppb/storage.pb.go +++ b/dlp/apiv2/dlppb/storage.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/privacy/dlp/v2/storage.proto package dlppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -566,7 +566,7 @@ type StoredType struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Timestamp indicating when the version of the `StoredInfoType` used for // inspection was created. Output-only field, populated by the system. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *StoredType) Reset() { @@ -608,7 +608,7 @@ func (x *StoredType) GetName() string { return "" } -func (x *StoredType) GetCreateTime() *timestamppb.Timestamp { +func (x *StoredType) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -2813,10 +2813,10 @@ type StorageConfig_TimespanConfig struct { // Exclude files, tables, or rows older than this value. // If not set, no lower time limit is applied. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Exclude files, tables, or rows newer than this value. // If not set, no upper time limit is applied. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Specification of the field containing the timestamp of scanned items. // Used for data sources like Datastore and BigQuery. // @@ -2892,14 +2892,14 @@ func (*StorageConfig_TimespanConfig) Descriptor() ([]byte, []int) { return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{13, 0} } -func (x *StorageConfig_TimespanConfig) GetStartTime() *timestamppb.Timestamp { +func (x *StorageConfig_TimespanConfig) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *StorageConfig_TimespanConfig) GetEndTime() *timestamppb.Timestamp { +func (x *StorageConfig_TimespanConfig) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3496,7 +3496,7 @@ var file_google_privacy_dlp_v2_storage_proto_goTypes = []interface{}{ (*StorageConfig_TimespanConfig)(nil), // 38: google.privacy.dlp.v2.StorageConfig.TimespanConfig nil, // 39: google.privacy.dlp.v2.HybridOptions.LabelsEntry (*Key_PathElement)(nil), // 40: google.privacy.dlp.v2.Key.PathElement - (*timestamppb.Timestamp)(nil), // 41: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 41: google.protobuf.Timestamp } var file_google_privacy_dlp_v2_storage_proto_depIdxs = []int32{ 2, // 0: google.privacy.dlp.v2.SensitivityScore.score:type_name -> google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel diff --git a/dlp/go.mod b/dlp/go.mod index 867c012fa9e6..796d4c925bc4 100644 --- a/dlp/go.mod +++ b/dlp/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/dlp go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/documentai/apiv1/documentaipb/barcode.pb.go b/documentai/apiv1/documentaipb/barcode.pb.go index 9a01bf19d733..8e5c0aa845c6 100644 --- a/documentai/apiv1/documentaipb/barcode.pb.go +++ b/documentai/apiv1/documentaipb/barcode.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/barcode.proto package documentaipb diff --git a/documentai/apiv1/documentaipb/document.pb.go b/documentai/apiv1/documentaipb/document.pb.go index 1f280a0a4e63..4fe6e452dc85 100644 --- a/documentai/apiv1/documentaipb/document.pb.go +++ b/documentai/apiv1/documentaipb/document.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/document.proto package documentaipb @@ -24,6 +24,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" color "google.golang.org/genproto/googleapis/type/color" @@ -33,7 +34,6 @@ import ( postaladdress "google.golang.org/genproto/googleapis/type/postaladdress" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1306,7 +1306,7 @@ type Document_Revision struct { // `provenance.parent.revision` fields that index into this field. ParentIds []string `protobuf:"bytes,7,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // The time that the revision was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Human Review information of this revision. HumanReview *Document_Revision_HumanReview `protobuf:"bytes,6,opt,name=human_review,json=humanReview,proto3" json:"human_review,omitempty"` } @@ -1386,7 +1386,7 @@ func (x *Document_Revision) GetParentIds() []string { return nil } -func (x *Document_Revision) GetCreateTime() *timestamppb.Timestamp { +func (x *Document_Revision) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -3917,7 +3917,7 @@ var file_google_cloud_documentai_v1_document_proto_goTypes = []interface{}{ (*Document_Revision_HumanReview)(nil), // 37: google.cloud.documentai.v1.Document.Revision.HumanReview (*status.Status)(nil), // 38: google.rpc.Status (*color.Color)(nil), // 39: google.type.Color - (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 40: google.protobuf.Timestamp (*BoundingPoly)(nil), // 41: google.cloud.documentai.v1.BoundingPoly (*Barcode)(nil), // 42: google.cloud.documentai.v1.Barcode (*money.Money)(nil), // 43: google.type.Money diff --git a/documentai/apiv1/documentaipb/document_io.pb.go b/documentai/apiv1/documentaipb/document_io.pb.go index d7fd862715a8..229895ff749c 100644 --- a/documentai/apiv1/documentaipb/document_io.pb.go +++ b/documentai/apiv1/documentaipb/document_io.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/document_io.proto package documentaipb diff --git a/documentai/apiv1/documentaipb/document_processor_service.pb.go b/documentai/apiv1/documentaipb/document_processor_service.pb.go index 8a93220b7696..364fe214ada2 100644 --- a/documentai/apiv1/documentaipb/document_processor_service.pb.go +++ b/documentai/apiv1/documentaipb/document_processor_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/document_processor_service.proto package documentaipb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -304,7 +304,7 @@ type ProcessRequest struct { // false. SkipHumanReview bool `protobuf:"varint,3,opt,name=skip_human_review,json=skipHumanReview,proto3" json:"skip_human_review,omitempty"` // Specifies which fields to include in ProcessResponse's document. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FieldMask *field_mask.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` } func (x *ProcessRequest) Reset() { @@ -374,7 +374,7 @@ func (x *ProcessRequest) GetSkipHumanReview() bool { return false } -func (x *ProcessRequest) GetFieldMask() *fieldmaskpb.FieldMask { +func (x *ProcessRequest) GetFieldMask() *field_mask.FieldMask { if x != nil { return x.FieldMask } @@ -660,9 +660,9 @@ type BatchProcessMetadata struct { // For example, the error message if the operation is failed. StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` // The creation time of the operation. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update time of the operation. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The list of response details of each document. IndividualProcessStatuses []*BatchProcessMetadata_IndividualProcessStatus `protobuf:"bytes,5,rep,name=individual_process_statuses,json=individualProcessStatuses,proto3" json:"individual_process_statuses,omitempty"` } @@ -713,14 +713,14 @@ func (x *BatchProcessMetadata) GetStateMessage() string { return "" } -func (x *BatchProcessMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *BatchProcessMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *BatchProcessMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *BatchProcessMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3371,10 +3371,10 @@ var file_google_cloud_documentai_v1_document_processor_service_proto_goTypes = [ (*BatchProcessMetadata_IndividualProcessStatus)(nil), // 43: google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus (*Document)(nil), // 44: google.cloud.documentai.v1.Document (*RawDocument)(nil), // 45: google.cloud.documentai.v1.RawDocument - (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 46: google.protobuf.FieldMask (*BatchDocumentsInputConfig)(nil), // 47: google.cloud.documentai.v1.BatchDocumentsInputConfig (*DocumentOutputConfig)(nil), // 48: google.cloud.documentai.v1.DocumentOutputConfig - (*timestamppb.Timestamp)(nil), // 49: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 49: google.protobuf.Timestamp (*ProcessorType)(nil), // 50: google.cloud.documentai.v1.ProcessorType (*Processor)(nil), // 51: google.cloud.documentai.v1.Processor (*ProcessorVersion)(nil), // 52: google.cloud.documentai.v1.ProcessorVersion diff --git a/documentai/apiv1/documentaipb/document_schema.pb.go b/documentai/apiv1/documentaipb/document_schema.pb.go index cc096ba2a9a7..c49874f9fd51 100644 --- a/documentai/apiv1/documentaipb/document_schema.pb.go +++ b/documentai/apiv1/documentaipb/document_schema.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/document_schema.proto package documentaipb diff --git a/documentai/apiv1/documentaipb/geometry.pb.go b/documentai/apiv1/documentaipb/geometry.pb.go index b4acca1010dc..6308b28103a3 100644 --- a/documentai/apiv1/documentaipb/geometry.pb.go +++ b/documentai/apiv1/documentaipb/geometry.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/geometry.proto package documentaipb diff --git a/documentai/apiv1/documentaipb/operation_metadata.pb.go b/documentai/apiv1/documentaipb/operation_metadata.pb.go index fbb8176206f6..3b0ee6be287b 100644 --- a/documentai/apiv1/documentaipb/operation_metadata.pb.go +++ b/documentai/apiv1/documentaipb/operation_metadata.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/operation_metadata.proto package documentaipb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -114,9 +114,9 @@ type CommonOperationMetadata struct { // A related resource to this operation. Resource string `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"` // The creation time of the operation. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update time of the operation. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *CommonOperationMetadata) Reset() { @@ -172,14 +172,14 @@ func (x *CommonOperationMetadata) GetResource() string { return "" } -func (x *CommonOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CommonOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CommonOperationMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *CommonOperationMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -255,7 +255,7 @@ var file_google_cloud_documentai_v1_operation_metadata_proto_msgTypes = make([]p var file_google_cloud_documentai_v1_operation_metadata_proto_goTypes = []interface{}{ (CommonOperationMetadata_State)(0), // 0: google.cloud.documentai.v1.CommonOperationMetadata.State (*CommonOperationMetadata)(nil), // 1: google.cloud.documentai.v1.CommonOperationMetadata - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_google_cloud_documentai_v1_operation_metadata_proto_depIdxs = []int32{ 0, // 0: google.cloud.documentai.v1.CommonOperationMetadata.state:type_name -> google.cloud.documentai.v1.CommonOperationMetadata.State diff --git a/documentai/apiv1/documentaipb/processor.pb.go b/documentai/apiv1/documentaipb/processor.pb.go index bd85e2d75d31..80dc9c3027e9 100644 --- a/documentai/apiv1/documentaipb/processor.pb.go +++ b/documentai/apiv1/documentaipb/processor.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/processor.proto package documentaipb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -210,7 +210,7 @@ type ProcessorVersion struct { // The state of the processor version. State ProcessorVersion_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.documentai.v1.ProcessorVersion_State" json:"state,omitempty"` // The time the processor version was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The KMS key name used for encryption. KmsKeyName string `protobuf:"bytes,9,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` // The KMS key version with which data is encrypted. @@ -274,7 +274,7 @@ func (x *ProcessorVersion) GetState() ProcessorVersion_State { return ProcessorVersion_STATE_UNSPECIFIED } -func (x *ProcessorVersion) GetCreateTime() *timestamppb.Timestamp { +func (x *ProcessorVersion) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -332,7 +332,7 @@ type Processor struct { // Output only. Immutable. The http endpoint that can be called to invoke processing. ProcessEndpoint string `protobuf:"bytes,6,opt,name=process_endpoint,json=processEndpoint,proto3" json:"process_endpoint,omitempty"` // The time the processor was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The KMS key used for encryption/decryption in CMEK scenarios. // See https://cloud.google.com/security-key-management. KmsKeyName string `protobuf:"bytes,8,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` @@ -412,7 +412,7 @@ func (x *Processor) GetProcessEndpoint() string { return "" } -func (x *Processor) GetCreateTime() *timestamppb.Timestamp { +func (x *Processor) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -433,7 +433,7 @@ type ProcessorVersion_DeprecationInfo struct { unknownFields protoimpl.UnknownFields // The time at which this processor version will be deprecated. - DeprecationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=deprecation_time,json=deprecationTime,proto3" json:"deprecation_time,omitempty"` + DeprecationTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=deprecation_time,json=deprecationTime,proto3" json:"deprecation_time,omitempty"` // If set, the processor version that will be used as a replacement. ReplacementProcessorVersion string `protobuf:"bytes,2,opt,name=replacement_processor_version,json=replacementProcessorVersion,proto3" json:"replacement_processor_version,omitempty"` } @@ -470,7 +470,7 @@ func (*ProcessorVersion_DeprecationInfo) Descriptor() ([]byte, []int) { return file_google_cloud_documentai_v1_processor_proto_rawDescGZIP(), []int{0, 0} } -func (x *ProcessorVersion_DeprecationInfo) GetDeprecationTime() *timestamppb.Timestamp { +func (x *ProcessorVersion_DeprecationInfo) GetDeprecationTime() *timestamp.Timestamp { if x != nil { return x.DeprecationTime } @@ -633,7 +633,7 @@ var file_google_cloud_documentai_v1_processor_proto_goTypes = []interface{}{ (*ProcessorVersion)(nil), // 2: google.cloud.documentai.v1.ProcessorVersion (*Processor)(nil), // 3: google.cloud.documentai.v1.Processor (*ProcessorVersion_DeprecationInfo)(nil), // 4: google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp } var file_google_cloud_documentai_v1_processor_proto_depIdxs = []int32{ 0, // 0: google.cloud.documentai.v1.ProcessorVersion.state:type_name -> google.cloud.documentai.v1.ProcessorVersion.State diff --git a/documentai/apiv1/documentaipb/processor_type.pb.go b/documentai/apiv1/documentaipb/processor_type.pb.go index 7dedf66e76e3..ec054b0ec383 100644 --- a/documentai/apiv1/documentaipb/processor_type.pb.go +++ b/documentai/apiv1/documentaipb/processor_type.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/documentai/v1/processor_type.proto package documentaipb diff --git a/essentialcontacts/apiv1/essentialcontactspb/enums.pb.go b/essentialcontacts/apiv1/essentialcontactspb/enums.pb.go index c0b7f28bfd7e..d6157cb3370e 100644 --- a/essentialcontacts/apiv1/essentialcontactspb/enums.pb.go +++ b/essentialcontacts/apiv1/essentialcontactspb/enums.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/essentialcontacts/v1/enums.proto package essentialcontactspb diff --git a/essentialcontacts/apiv1/essentialcontactspb/service.pb.go b/essentialcontacts/apiv1/essentialcontactspb/service.pb.go index 4942dae2b2a0..29d5cf2bacea 100644 --- a/essentialcontacts/apiv1/essentialcontactspb/service.pb.go +++ b/essentialcontacts/apiv1/essentialcontactspb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/essentialcontacts/v1/service.proto package essentialcontactspb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -69,7 +69,7 @@ type Contact struct { // The last time the validation_state was updated, either manually or // automatically. A contact is considered stale if its validation state was // updated more than 1 year ago. - ValidateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=validate_time,json=validateTime,proto3" json:"validate_time,omitempty"` + ValidateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=validate_time,json=validateTime,proto3" json:"validate_time,omitempty"` } func (x *Contact) Reset() { @@ -139,7 +139,7 @@ func (x *Contact) GetValidationState() ValidationState { return ValidationState_VALIDATION_STATE_UNSPECIFIED } -func (x *Contact) GetValidateTime() *timestamppb.Timestamp { +func (x *Contact) GetValidateTime() *timestamp.Timestamp { if x != nil { return x.ValidateTime } @@ -459,7 +459,7 @@ type UpdateContactRequest struct { // Optional. The update mask applied to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateContactRequest) Reset() { @@ -501,7 +501,7 @@ func (x *UpdateContactRequest) GetContact() *Contact { return nil } -func (x *UpdateContactRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateContactRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1057,9 +1057,9 @@ var file_google_cloud_essentialcontacts_v1_service_proto_goTypes = []interface{} (*SendTestMessageRequest)(nil), // 9: google.cloud.essentialcontacts.v1.SendTestMessageRequest (NotificationCategory)(0), // 10: google.cloud.essentialcontacts.v1.NotificationCategory (ValidationState)(0), // 11: google.cloud.essentialcontacts.v1.ValidationState - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 14: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*empty.Empty)(nil), // 14: google.protobuf.Empty } var file_google_cloud_essentialcontacts_v1_service_proto_depIdxs = []int32{ 10, // 0: google.cloud.essentialcontacts.v1.Contact.notification_category_subscriptions:type_name -> google.cloud.essentialcontacts.v1.NotificationCategory @@ -1263,14 +1263,14 @@ type EssentialContactsServiceClient interface { // Gets a single contact. GetContact(ctx context.Context, in *GetContactRequest, opts ...grpc.CallOption) (*Contact, error) // Deletes a contact. - DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists all contacts for the resource that are subscribed to the // specified notification categories, including contacts inherited from // any parent resources. ComputeContacts(ctx context.Context, in *ComputeContactsRequest, opts ...grpc.CallOption) (*ComputeContactsResponse, error) // Allows a contact admin to send a test message to contact to verify that it // has been configured correctly. - SendTestMessage(ctx context.Context, in *SendTestMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + SendTestMessage(ctx context.Context, in *SendTestMessageRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type essentialContactsServiceClient struct { @@ -1317,8 +1317,8 @@ func (c *essentialContactsServiceClient) GetContact(ctx context.Context, in *Get return out, nil } -func (c *essentialContactsServiceClient) DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *essentialContactsServiceClient) DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.essentialcontacts.v1.EssentialContactsService/DeleteContact", in, out, opts...) if err != nil { return nil, err @@ -1335,8 +1335,8 @@ func (c *essentialContactsServiceClient) ComputeContacts(ctx context.Context, in return out, nil } -func (c *essentialContactsServiceClient) SendTestMessage(ctx context.Context, in *SendTestMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *essentialContactsServiceClient) SendTestMessage(ctx context.Context, in *SendTestMessageRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.essentialcontacts.v1.EssentialContactsService/SendTestMessage", in, out, opts...) if err != nil { return nil, err @@ -1356,14 +1356,14 @@ type EssentialContactsServiceServer interface { // Gets a single contact. GetContact(context.Context, *GetContactRequest) (*Contact, error) // Deletes a contact. - DeleteContact(context.Context, *DeleteContactRequest) (*emptypb.Empty, error) + DeleteContact(context.Context, *DeleteContactRequest) (*empty.Empty, error) // Lists all contacts for the resource that are subscribed to the // specified notification categories, including contacts inherited from // any parent resources. ComputeContacts(context.Context, *ComputeContactsRequest) (*ComputeContactsResponse, error) // Allows a contact admin to send a test message to contact to verify that it // has been configured correctly. - SendTestMessage(context.Context, *SendTestMessageRequest) (*emptypb.Empty, error) + SendTestMessage(context.Context, *SendTestMessageRequest) (*empty.Empty, error) } // UnimplementedEssentialContactsServiceServer can be embedded to have forward compatible implementations. @@ -1382,13 +1382,13 @@ func (*UnimplementedEssentialContactsServiceServer) ListContacts(context.Context func (*UnimplementedEssentialContactsServiceServer) GetContact(context.Context, *GetContactRequest) (*Contact, error) { return nil, status.Errorf(codes.Unimplemented, "method GetContact not implemented") } -func (*UnimplementedEssentialContactsServiceServer) DeleteContact(context.Context, *DeleteContactRequest) (*emptypb.Empty, error) { +func (*UnimplementedEssentialContactsServiceServer) DeleteContact(context.Context, *DeleteContactRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteContact not implemented") } func (*UnimplementedEssentialContactsServiceServer) ComputeContacts(context.Context, *ComputeContactsRequest) (*ComputeContactsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ComputeContacts not implemented") } -func (*UnimplementedEssentialContactsServiceServer) SendTestMessage(context.Context, *SendTestMessageRequest) (*emptypb.Empty, error) { +func (*UnimplementedEssentialContactsServiceServer) SendTestMessage(context.Context, *SendTestMessageRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SendTestMessage not implemented") } diff --git a/essentialcontacts/go.mod b/essentialcontacts/go.mod index 6908a1925aa4..cbd2a777f7c8 100644 --- a/essentialcontacts/go.mod +++ b/essentialcontacts/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/essentialcontacts go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/eventarc/apiv1/eventarcpb/channel.pb.go b/eventarc/apiv1/eventarcpb/channel.pb.go index 31e42b508386..b413934daff6 100644 --- a/eventarc/apiv1/eventarcpb/channel.pb.go +++ b/eventarc/apiv1/eventarcpb/channel.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/v1/channel.proto package eventarcpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -123,9 +123,9 @@ type Channel struct { // string and guaranteed to remain unchanged until the resource is deleted. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. The name of the event provider (e.g. Eventarc SaaS partner) associated // with the channel. This provider will be granted permissions to publish // events to the channel. Format: @@ -188,14 +188,14 @@ func (x *Channel) GetUid() string { return "" } -func (x *Channel) GetCreateTime() *timestamppb.Timestamp { +func (x *Channel) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Channel) GetUpdateTime() *timestamppb.Timestamp { +func (x *Channel) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -330,9 +330,9 @@ func file_google_cloud_eventarc_v1_channel_proto_rawDescGZIP() []byte { var file_google_cloud_eventarc_v1_channel_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_eventarc_v1_channel_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_eventarc_v1_channel_proto_goTypes = []interface{}{ - (Channel_State)(0), // 0: google.cloud.eventarc.v1.Channel.State - (*Channel)(nil), // 1: google.cloud.eventarc.v1.Channel - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (Channel_State)(0), // 0: google.cloud.eventarc.v1.Channel.State + (*Channel)(nil), // 1: google.cloud.eventarc.v1.Channel + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_google_cloud_eventarc_v1_channel_proto_depIdxs = []int32{ 2, // 0: google.cloud.eventarc.v1.Channel.create_time:type_name -> google.protobuf.Timestamp diff --git a/eventarc/apiv1/eventarcpb/channel_connection.pb.go b/eventarc/apiv1/eventarcpb/channel_connection.pb.go index 9d448dbc2655..cfbece5df807 100644 --- a/eventarc/apiv1/eventarcpb/channel_connection.pb.go +++ b/eventarc/apiv1/eventarcpb/channel_connection.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/v1/channel_connection.proto package eventarcpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -57,9 +57,9 @@ type ChannelConnection struct { // `projects/{project}/location/{location}/channels/{channel_id}` format. Channel string `protobuf:"bytes,5,opt,name=channel,proto3" json:"channel,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Input only. Activation token for the channel. The token will be used // during the creation of ChannelConnection to bind the channel with the // provider project. This field will not be stored in the provider resource. @@ -119,14 +119,14 @@ func (x *ChannelConnection) GetChannel() string { return "" } -func (x *ChannelConnection) GetCreateTime() *timestamppb.Timestamp { +func (x *ChannelConnection) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ChannelConnection) GetUpdateTime() *timestamppb.Timestamp { +func (x *ChannelConnection) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -214,8 +214,8 @@ func file_google_cloud_eventarc_v1_channel_connection_proto_rawDescGZIP() []byte var file_google_cloud_eventarc_v1_channel_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_eventarc_v1_channel_connection_proto_goTypes = []interface{}{ - (*ChannelConnection)(nil), // 0: google.cloud.eventarc.v1.ChannelConnection - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*ChannelConnection)(nil), // 0: google.cloud.eventarc.v1.ChannelConnection + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_eventarc_v1_channel_connection_proto_depIdxs = []int32{ 1, // 0: google.cloud.eventarc.v1.ChannelConnection.create_time:type_name -> google.protobuf.Timestamp diff --git a/eventarc/apiv1/eventarcpb/discovery.pb.go b/eventarc/apiv1/eventarcpb/discovery.pb.go index aa4096a76d11..4fa3f347d19a 100644 --- a/eventarc/apiv1/eventarcpb/discovery.pb.go +++ b/eventarc/apiv1/eventarcpb/discovery.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/v1/discovery.proto package eventarcpb diff --git a/eventarc/apiv1/eventarcpb/eventarc.pb.go b/eventarc/apiv1/eventarcpb/eventarc.pb.go index add5a45508f2..8f2192aef368 100644 --- a/eventarc/apiv1/eventarcpb/eventarc.pb.go +++ b/eventarc/apiv1/eventarcpb/eventarc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/v1/eventarc.proto package eventarcpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -332,7 +332,7 @@ type UpdateTriggerRequest struct { // The fields to be updated; only fields explicitly provided are updated. // If no field mask is provided, all provided fields in the request are // updated. To update all fields, provide a field mask of "*". - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If set to true, and the trigger is not found, a new trigger will be // created. In this situation, `update_mask` is ignored. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` @@ -380,7 +380,7 @@ func (x *UpdateTriggerRequest) GetTrigger() *Trigger { return nil } -func (x *UpdateTriggerRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTriggerRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -769,7 +769,7 @@ type UpdateChannelRequest struct { // The fields to be updated; only fields explicitly provided are updated. // If no field mask is provided, all provided fields in the request are // updated. To update all fields, provide a field mask of "*". - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. If set, validate the request and preview the review, but do not // post it. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -814,7 +814,7 @@ func (x *UpdateChannelRequest) GetChannel() *Channel { return nil } -func (x *UpdateChannelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateChannelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1410,9 +1410,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1460,14 +1460,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_eventarc_v1_eventarc_proto_rawDescGZIP(), []int{20} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2029,11 +2029,11 @@ var file_google_cloud_eventarc_v1_eventarc_proto_goTypes = []interface{}{ (*DeleteChannelConnectionRequest)(nil), // 19: google.cloud.eventarc.v1.DeleteChannelConnectionRequest (*OperationMetadata)(nil), // 20: google.cloud.eventarc.v1.OperationMetadata (*Trigger)(nil), // 21: google.cloud.eventarc.v1.Trigger - (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 22: google.protobuf.FieldMask (*Channel)(nil), // 23: google.cloud.eventarc.v1.Channel (*Provider)(nil), // 24: google.cloud.eventarc.v1.Provider (*ChannelConnection)(nil), // 25: google.cloud.eventarc.v1.ChannelConnection - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 27: google.longrunning.Operation } var file_google_cloud_eventarc_v1_eventarc_proto_depIdxs = []int32{ diff --git a/eventarc/apiv1/eventarcpb/trigger.pb.go b/eventarc/apiv1/eventarcpb/trigger.pb.go index 4e3ec592f8e2..ed36f9958cf1 100644 --- a/eventarc/apiv1/eventarcpb/trigger.pb.go +++ b/eventarc/apiv1/eventarcpb/trigger.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/v1/trigger.proto package eventarcpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -51,9 +51,9 @@ type Trigger struct { // string and guaranteed to remain unchanged until the resource is deleted. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. null The list of filters that applies to event attributes. Only events that // match all the provided filters are sent to the destination. EventFilters []*EventFilter `protobuf:"bytes,8,rep,name=event_filters,json=eventFilters,proto3" json:"event_filters,omitempty"` @@ -137,14 +137,14 @@ func (x *Trigger) GetUid() string { return "" } -func (x *Trigger) GetCreateTime() *timestamppb.Timestamp { +func (x *Trigger) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Trigger) GetUpdateTime() *timestamppb.Timestamp { +func (x *Trigger) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -830,15 +830,15 @@ func file_google_cloud_eventarc_v1_trigger_proto_rawDescGZIP() []byte { var file_google_cloud_eventarc_v1_trigger_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_google_cloud_eventarc_v1_trigger_proto_goTypes = []interface{}{ - (*Trigger)(nil), // 0: google.cloud.eventarc.v1.Trigger - (*EventFilter)(nil), // 1: google.cloud.eventarc.v1.EventFilter - (*Destination)(nil), // 2: google.cloud.eventarc.v1.Destination - (*Transport)(nil), // 3: google.cloud.eventarc.v1.Transport - (*CloudRun)(nil), // 4: google.cloud.eventarc.v1.CloudRun - (*GKE)(nil), // 5: google.cloud.eventarc.v1.GKE - (*Pubsub)(nil), // 6: google.cloud.eventarc.v1.Pubsub - nil, // 7: google.cloud.eventarc.v1.Trigger.LabelsEntry - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*Trigger)(nil), // 0: google.cloud.eventarc.v1.Trigger + (*EventFilter)(nil), // 1: google.cloud.eventarc.v1.EventFilter + (*Destination)(nil), // 2: google.cloud.eventarc.v1.Destination + (*Transport)(nil), // 3: google.cloud.eventarc.v1.Transport + (*CloudRun)(nil), // 4: google.cloud.eventarc.v1.CloudRun + (*GKE)(nil), // 5: google.cloud.eventarc.v1.GKE + (*Pubsub)(nil), // 6: google.cloud.eventarc.v1.Pubsub + nil, // 7: google.cloud.eventarc.v1.Trigger.LabelsEntry + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp } var file_google_cloud_eventarc_v1_trigger_proto_depIdxs = []int32{ 8, // 0: google.cloud.eventarc.v1.Trigger.create_time:type_name -> google.protobuf.Timestamp diff --git a/eventarc/go.mod b/eventarc/go.mod index d3b04f269eb7..393354a77e40 100644 --- a/eventarc/go.mod +++ b/eventarc/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/eventarc/publishing/apiv1/publishingpb/publisher.pb.go b/eventarc/publishing/apiv1/publishingpb/publisher.pb.go index b64be0f81875..0b5dcdbc7743 100644 --- a/eventarc/publishing/apiv1/publishingpb/publisher.pb.go +++ b/eventarc/publishing/apiv1/publishingpb/publisher.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/eventarc/publishing/v1/publisher.proto package publishingpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" ) const ( @@ -51,7 +51,7 @@ type PublishChannelConnectionEventsRequest struct { // `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`. ChannelConnection string `protobuf:"bytes,1,opt,name=channel_connection,json=channelConnection,proto3" json:"channel_connection,omitempty"` // The CloudEvents v1.0 events to publish. No other types are allowed. - Events []*anypb.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + Events []*any1.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` } func (x *PublishChannelConnectionEventsRequest) Reset() { @@ -93,7 +93,7 @@ func (x *PublishChannelConnectionEventsRequest) GetChannelConnection() string { return "" } -func (x *PublishChannelConnectionEventsRequest) GetEvents() []*anypb.Any { +func (x *PublishChannelConnectionEventsRequest) GetEvents() []*any1.Any { if x != nil { return x.Events } @@ -149,7 +149,7 @@ type PublishEventsRequest struct { // `projects/{project}/locations/{location}/channels/{channel-id}`. Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // The CloudEvents v1.0 events to publish. No other types are allowed. - Events []*anypb.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + Events []*any1.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` } func (x *PublishEventsRequest) Reset() { @@ -191,7 +191,7 @@ func (x *PublishEventsRequest) GetChannel() string { return "" } -func (x *PublishEventsRequest) GetEvents() []*anypb.Any { +func (x *PublishEventsRequest) GetEvents() []*any1.Any { if x != nil { return x.Events } @@ -344,7 +344,7 @@ var file_google_cloud_eventarc_publishing_v1_publisher_proto_goTypes = []interfa (*PublishChannelConnectionEventsResponse)(nil), // 1: google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse (*PublishEventsRequest)(nil), // 2: google.cloud.eventarc.publishing.v1.PublishEventsRequest (*PublishEventsResponse)(nil), // 3: google.cloud.eventarc.publishing.v1.PublishEventsResponse - (*anypb.Any)(nil), // 4: google.protobuf.Any + (*any1.Any)(nil), // 4: google.protobuf.Any } var file_google_cloud_eventarc_publishing_v1_publisher_proto_depIdxs = []int32{ 4, // 0: google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.events:type_name -> google.protobuf.Any diff --git a/filestore/apiv1/filestorepb/cloud_filestore_service.pb.go b/filestore/apiv1/filestorepb/cloud_filestore_service.pb.go index 5e3ffcd74f5b..1805e513f0ce 100644 --- a/filestore/apiv1/filestorepb/cloud_filestore_service.pb.go +++ b/filestore/apiv1/filestorepb/cloud_filestore_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/filestore/v1/cloud_filestore_service.proto package filestorepb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/genproto/googleapis/cloud/common" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -714,7 +714,7 @@ type Instance struct { // Output only. Additional information about the instance state, if available. StatusMessage string `protobuf:"bytes,6,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` // Output only. The time when the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The service tier of the instance. Tier Instance_Tier `protobuf:"varint,8,opt,name=tier,proto3,enum=google.cloud.filestore.v1.Instance_Tier" json:"tier,omitempty"` // Resource labels to represent user provided metadata. @@ -729,7 +729,7 @@ type Instance struct { // updates from overwriting each other. Etag string `protobuf:"bytes,12,opt,name=etag,proto3" json:"etag,omitempty"` // Output only. Reserved for future use. - SatisfiesPzs *wrapperspb.BoolValue `protobuf:"bytes,13,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` + SatisfiesPzs *wrappers.BoolValue `protobuf:"bytes,13,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` } func (x *Instance) Reset() { @@ -792,7 +792,7 @@ func (x *Instance) GetStatusMessage() string { return "" } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -834,7 +834,7 @@ func (x *Instance) GetEtag() string { return "" } -func (x *Instance) GetSatisfiesPzs() *wrapperspb.BoolValue { +func (x *Instance) GetSatisfiesPzs() *wrappers.BoolValue { if x != nil { return x.SatisfiesPzs } @@ -974,7 +974,7 @@ type UpdateInstanceRequest struct { // * "description" // * "file_shares" // * "labels" - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Only fields specified in update_mask are updated. Instance *Instance `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` } @@ -1011,7 +1011,7 @@ func (*UpdateInstanceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_filestore_v1_cloud_filestore_service_proto_rawDescGZIP(), []int{6} } -func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1344,7 +1344,7 @@ type Backup struct { // Output only. The backup state. State Backup_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.filestore.v1.Backup_State" json:"state,omitempty"` // Output only. The time when the backup was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Resource labels to represent user provided metadata. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Capacity of the source file share when the backup was created. @@ -1367,7 +1367,7 @@ type Backup struct { // backups of the same disk will share storage. DownloadBytes int64 `protobuf:"varint,11,opt,name=download_bytes,json=downloadBytes,proto3" json:"download_bytes,omitempty"` // Output only. Reserved for future use. - SatisfiesPzs *wrapperspb.BoolValue `protobuf:"bytes,12,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` + SatisfiesPzs *wrappers.BoolValue `protobuf:"bytes,12,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` } func (x *Backup) Reset() { @@ -1423,7 +1423,7 @@ func (x *Backup) GetState() Backup_State { return Backup_STATE_UNSPECIFIED } -func (x *Backup) GetCreateTime() *timestamppb.Timestamp { +func (x *Backup) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1479,7 +1479,7 @@ func (x *Backup) GetDownloadBytes() int64 { return 0 } -func (x *Backup) GetSatisfiesPzs() *wrapperspb.BoolValue { +func (x *Backup) GetSatisfiesPzs() *wrappers.BoolValue { if x != nil { return x.SatisfiesPzs } @@ -1621,7 +1621,7 @@ type UpdateBackupRequest struct { Backup *Backup `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"` // Required. Mask of fields to update. At least one path must be supplied in // this field. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBackupRequest) Reset() { @@ -1663,7 +1663,7 @@ func (x *UpdateBackupRequest) GetBackup() *Backup { return nil } -func (x *UpdateBackupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBackupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2419,9 +2419,9 @@ var file_google_cloud_filestore_v1_cloud_filestore_service_proto_goTypes = []int (*ListBackupsResponse)(nil), // 23: google.cloud.filestore.v1.ListBackupsResponse nil, // 24: google.cloud.filestore.v1.Instance.LabelsEntry nil, // 25: google.cloud.filestore.v1.Backup.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*wrapperspb.BoolValue)(nil), // 27: google.protobuf.BoolValue - (*fieldmaskpb.FieldMask)(nil), // 28: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*wrappers.BoolValue)(nil), // 27: google.protobuf.BoolValue + (*field_mask.FieldMask)(nil), // 28: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 29: google.longrunning.Operation } var file_google_cloud_filestore_v1_cloud_filestore_service_proto_depIdxs = []int32{ diff --git a/filestore/go.mod b/filestore/go.mod index 20d1289631a1..c853b1c34490 100644 --- a/filestore/go.mod +++ b/filestore/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/functions/apiv1/functionspb/functions.pb.go b/functions/apiv1/functionspb/functions.pb.go index 706b0cd58836..d0a2881c6059 100644 --- a/functions/apiv1/functionspb/functions.pb.go +++ b/functions/apiv1/functionspb/functions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/functions/v1/functions.proto package functionspb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -393,7 +393,7 @@ type CloudFunction struct { // The function execution timeout. Execution is considered failed and // can be terminated if the function is not completed at the end of the // timeout period. Defaults to 60 seconds. - Timeout *durationpb.Duration `protobuf:"bytes,9,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,9,opt,name=timeout,proto3" json:"timeout,omitempty"` // The amount of memory in MB available for a function. // Defaults to 256MB. AvailableMemoryMb int32 `protobuf:"varint,10,opt,name=available_memory_mb,json=availableMemoryMb,proto3" json:"available_memory_mb,omitempty"` @@ -401,7 +401,7 @@ type CloudFunction struct { // `{project_id}@appspot.gserviceaccount.com`. ServiceAccountEmail string `protobuf:"bytes,11,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` // Output only. The last update timestamp of a Cloud Function. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The version identifier of the Cloud Function. Each deployment attempt // results in a new version of a function being created. VersionId int64 `protobuf:"varint,14,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` @@ -654,7 +654,7 @@ func (x *CloudFunction) GetRuntime() string { return "" } -func (x *CloudFunction) GetTimeout() *durationpb.Duration { +func (x *CloudFunction) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -675,7 +675,7 @@ func (x *CloudFunction) GetServiceAccountEmail() string { return "" } -func (x *CloudFunction) GetUpdateTime() *timestamppb.Timestamp { +func (x *CloudFunction) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1424,7 +1424,7 @@ type UpdateFunctionRequest struct { // Required. New version of the function. Function *CloudFunction `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` // Required. The list of fields in `CloudFunction` that have to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFunctionRequest) Reset() { @@ -1466,7 +1466,7 @@ func (x *UpdateFunctionRequest) GetFunction() *CloudFunction { return nil } -func (x *UpdateFunctionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFunctionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2753,9 +2753,9 @@ var file_google_cloud_functions_v1_functions_proto_goTypes = []interface{}{ nil, // 26: google.cloud.functions.v1.CloudFunction.BuildEnvironmentVariablesEntry (*FailurePolicy_Retry)(nil), // 27: google.cloud.functions.v1.FailurePolicy.Retry (*SecretVolume_SecretVersion)(nil), // 28: google.cloud.functions.v1.SecretVolume.SecretVersion - (*durationpb.Duration)(nil), // 29: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 31: google.protobuf.FieldMask + (*duration.Duration)(nil), // 29: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 30: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 31: google.protobuf.FieldMask (*v1.SetIamPolicyRequest)(nil), // 32: google.iam.v1.SetIamPolicyRequest (*v1.GetIamPolicyRequest)(nil), // 33: google.iam.v1.GetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 34: google.iam.v1.TestIamPermissionsRequest diff --git a/functions/apiv1/functionspb/operations.pb.go b/functions/apiv1/functionspb/operations.pb.go index df9f3cc73cb0..b34aba2355bd 100644 --- a/functions/apiv1/functionspb/operations.pb.go +++ b/functions/apiv1/functionspb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/functions/v1/operations.proto package functionspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -106,12 +106,12 @@ type OperationMetadataV1 struct { // Type of operation. Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1.OperationType" json:"type,omitempty"` // The original request that started the operation. - Request *anypb.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + Request *any1.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // Version id of the function created or updated by an API call. // This field is only populated for Create and Update operations. VersionId int64 `protobuf:"varint,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` // The last update timestamp of the operation. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The Cloud Build ID of the function created or updated by an API call. // This field is only populated for Create and Update operations. BuildId string `protobuf:"bytes,6,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` @@ -170,7 +170,7 @@ func (x *OperationMetadataV1) GetType() OperationType { return OperationType_OPERATION_UNSPECIFIED } -func (x *OperationMetadataV1) GetRequest() *anypb.Any { +func (x *OperationMetadataV1) GetRequest() *any1.Any { if x != nil { return x.Request } @@ -184,7 +184,7 @@ func (x *OperationMetadataV1) GetVersionId() int64 { return 0 } -func (x *OperationMetadataV1) GetUpdateTime() *timestamppb.Timestamp { +func (x *OperationMetadataV1) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -277,10 +277,10 @@ func file_google_cloud_functions_v1_operations_proto_rawDescGZIP() []byte { var file_google_cloud_functions_v1_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_functions_v1_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_functions_v1_operations_proto_goTypes = []interface{}{ - (OperationType)(0), // 0: google.cloud.functions.v1.OperationType - (*OperationMetadataV1)(nil), // 1: google.cloud.functions.v1.OperationMetadataV1 - (*anypb.Any)(nil), // 2: google.protobuf.Any - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (OperationType)(0), // 0: google.cloud.functions.v1.OperationType + (*OperationMetadataV1)(nil), // 1: google.cloud.functions.v1.OperationMetadataV1 + (*any1.Any)(nil), // 2: google.protobuf.Any + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_functions_v1_operations_proto_depIdxs = []int32{ 0, // 0: google.cloud.functions.v1.OperationMetadataV1.type:type_name -> google.cloud.functions.v1.OperationType diff --git a/functions/apiv2/functionspb/functions.pb.go b/functions/apiv2/functionspb/functions.pb.go index 63b340cd65b0..ec2b8d489b8a 100644 --- a/functions/apiv2/functionspb/functions.pb.go +++ b/functions/apiv2/functionspb/functions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/functions/v2/functions.proto package functionspb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -614,7 +614,7 @@ type Function struct { // Output only. State of the function. State Function_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.functions.v2.Function_State" json:"state,omitempty"` // Output only. The last update timestamp of a Cloud Function. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Labels associated with this Cloud Function. Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. State Messages for this Cloud Function. @@ -702,7 +702,7 @@ func (x *Function) GetState() Function_State { return Function_STATE_UNSPECIFIED } -func (x *Function) GetUpdateTime() *timestamppb.Timestamp { +func (x *Function) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2186,7 +2186,7 @@ type UpdateFunctionRequest struct { // The list of fields to be updated. // If no field mask is provided, all provided fields in the request will be // updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFunctionRequest) Reset() { @@ -2228,7 +2228,7 @@ func (x *UpdateFunctionRequest) GetFunction() *Function { return nil } -func (x *UpdateFunctionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFunctionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2617,9 +2617,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the verb executed by the operation. @@ -2634,7 +2634,7 @@ type OperationMetadata struct { // API version used to start the operation. ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // The original request that started the operation. - RequestResource *anypb.Any `protobuf:"bytes,8,opt,name=request_resource,json=requestResource,proto3" json:"request_resource,omitempty"` + RequestResource *any1.Any `protobuf:"bytes,8,opt,name=request_resource,json=requestResource,proto3" json:"request_resource,omitempty"` // Mechanism for reporting in-progress stages Stages []*Stage `protobuf:"bytes,9,rep,name=stages,proto3" json:"stages,omitempty"` } @@ -2671,14 +2671,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_functions_v2_functions_proto_rawDescGZIP(), []int{24} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2720,7 +2720,7 @@ func (x *OperationMetadata) GetApiVersion() string { return "" } -func (x *OperationMetadata) GetRequestResource() *anypb.Any { +func (x *OperationMetadata) GetRequestResource() *any1.Any { if x != nil { return x.RequestResource } @@ -3732,9 +3732,9 @@ var file_google_cloud_functions_v2_functions_proto_goTypes = []interface{}{ nil, // 37: google.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry (*SecretVolume_SecretVersion)(nil), // 38: google.cloud.functions.v2.SecretVolume.SecretVersion (*ListRuntimesResponse_Runtime)(nil), // 39: google.cloud.functions.v2.ListRuntimesResponse.Runtime - (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 41: google.protobuf.FieldMask - (*anypb.Any)(nil), // 42: google.protobuf.Any + (*timestamp.Timestamp)(nil), // 40: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 41: google.protobuf.FieldMask + (*any1.Any)(nil), // 42: google.protobuf.Any (*longrunning.Operation)(nil), // 43: google.longrunning.Operation } var file_google_cloud_functions_v2_functions_proto_depIdxs = []int32{ diff --git a/gaming/apiv1/gamingpb/common.pb.go b/gaming/apiv1/gamingpb/common.pb.go index 8ae99582dcdb..d514d529fa93 100644 --- a/gaming/apiv1/gamingpb/common.pb.go +++ b/gaming/apiv1/gamingpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/common.proto package gamingpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -97,9 +97,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -154,14 +154,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{0} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -397,12 +397,12 @@ type Schedule struct { unknownFields protoimpl.UnknownFields // The start time of the event. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The end time of the event. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The duration for the cron job event. The duration of the event is effective // after the cron job's start time. - CronJobDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=cron_job_duration,json=cronJobDuration,proto3" json:"cron_job_duration,omitempty"` + CronJobDuration *duration.Duration `protobuf:"bytes,3,opt,name=cron_job_duration,json=cronJobDuration,proto3" json:"cron_job_duration,omitempty"` // The cron definition of the scheduled event. See // https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as // defined by the realm. @@ -441,21 +441,21 @@ func (*Schedule) Descriptor() ([]byte, []int) { return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{4} } -func (x *Schedule) GetStartTime() *timestamppb.Timestamp { +func (x *Schedule) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Schedule) GetEndTime() *timestamppb.Timestamp { +func (x *Schedule) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } return nil } -func (x *Schedule) GetCronJobDuration() *durationpb.Duration { +func (x *Schedule) GetCronJobDuration() *duration.Duration { if x != nil { return x.CronJobDuration } @@ -1348,8 +1348,8 @@ var file_google_cloud_gaming_v1_common_proto_goTypes = []interface{}{ (*DeployedFleetDetails_DeployedFleet)(nil), // 15: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet (*DeployedFleetDetails_DeployedFleetAutoscaler)(nil), // 16: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus)(nil), // 17: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*duration.Duration)(nil), // 19: google.protobuf.Duration } var file_google_cloud_gaming_v1_common_proto_depIdxs = []int32{ 18, // 0: google.cloud.gaming.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp diff --git a/gaming/apiv1/gamingpb/game_server_clusters.pb.go b/gaming/apiv1/gamingpb/game_server_clusters.pb.go index 0eacbd30ba78..1d6592578919 100644 --- a/gaming/apiv1/gamingpb/game_server_clusters.pb.go +++ b/gaming/apiv1/gamingpb/game_server_clusters.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_clusters.proto package gamingpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -495,7 +495,7 @@ type PreviewCreateGameServerClusterRequest struct { // Required. The game server cluster resource to be created. GameServerCluster *GameServerCluster `protobuf:"bytes,3,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` + PreviewTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` // Optional. This field is deprecated, preview will always return // KubernetesClusterState. // @@ -556,7 +556,7 @@ func (x *PreviewCreateGameServerClusterRequest) GetGameServerCluster() *GameServ return nil } -func (x *PreviewCreateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { +func (x *PreviewCreateGameServerClusterRequest) GetPreviewTime() *timestamp.Timestamp { if x != nil { return x.PreviewTime } @@ -700,7 +700,7 @@ type PreviewDeleteGameServerClusterRequest struct { // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` + PreviewTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` } func (x *PreviewDeleteGameServerClusterRequest) Reset() { @@ -742,7 +742,7 @@ func (x *PreviewDeleteGameServerClusterRequest) GetName() string { return "" } -func (x *PreviewDeleteGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { +func (x *PreviewDeleteGameServerClusterRequest) GetPreviewTime() *timestamp.Timestamp { if x != nil { return x.PreviewTime } @@ -820,7 +820,7 @@ type UpdateGameServerClusterRequest struct { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateGameServerClusterRequest) Reset() { @@ -862,7 +862,7 @@ func (x *UpdateGameServerClusterRequest) GetGameServerCluster() *GameServerClust return nil } -func (x *UpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGameServerClusterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -881,9 +881,9 @@ type PreviewUpdateGameServerClusterRequest struct { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` + PreviewTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` } func (x *PreviewUpdateGameServerClusterRequest) Reset() { @@ -925,14 +925,14 @@ func (x *PreviewUpdateGameServerClusterRequest) GetGameServerCluster() *GameServ return nil } -func (x *PreviewUpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *PreviewUpdateGameServerClusterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } -func (x *PreviewUpdateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { +func (x *PreviewUpdateGameServerClusterRequest) GetPreviewTime() *timestamp.Timestamp { if x != nil { return x.PreviewTime } @@ -1149,9 +1149,9 @@ type GameServerCluster struct { // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels associated with this game server cluster. Each label is a // key-value pair. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -1206,14 +1206,14 @@ func (x *GameServerCluster) GetName() string { return "" } -func (x *GameServerCluster) GetCreateTime() *timestamppb.Timestamp { +func (x *GameServerCluster) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *GameServerCluster) GetUpdateTime() *timestamppb.Timestamp { +func (x *GameServerCluster) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1690,9 +1690,9 @@ var file_google_cloud_gaming_v1_game_server_clusters_proto_goTypes = []interface (*GameServerCluster)(nil), // 16: google.cloud.gaming.v1.GameServerCluster (*KubernetesClusterState)(nil), // 17: google.cloud.gaming.v1.KubernetesClusterState nil, // 18: google.cloud.gaming.v1.GameServerCluster.LabelsEntry - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 19: google.protobuf.Timestamp (*TargetState)(nil), // 20: google.cloud.gaming.v1.TargetState - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 21: google.protobuf.FieldMask } var file_google_cloud_gaming_v1_game_server_clusters_proto_depIdxs = []int32{ 0, // 0: google.cloud.gaming.v1.ListGameServerClustersRequest.view:type_name -> google.cloud.gaming.v1.GameServerClusterView diff --git a/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go b/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go index c39d5f8a91c4..95c5e5689c0f 100644 --- a/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go +++ b/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_clusters_service.proto package gamingpb diff --git a/gaming/apiv1/gamingpb/game_server_configs.pb.go b/gaming/apiv1/gamingpb/game_server_configs.pb.go index 28f22519c57a..53bf4bf85c0f 100644 --- a/gaming/apiv1/gamingpb/game_server_configs.pb.go +++ b/gaming/apiv1/gamingpb/game_server_configs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_configs.proto package gamingpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -514,9 +514,9 @@ type GameServerConfig struct { // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels associated with this game server config. Each label is a // key-value pair. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -568,14 +568,14 @@ func (x *GameServerConfig) GetName() string { return "" } -func (x *GameServerConfig) GetCreateTime() *timestamppb.Timestamp { +func (x *GameServerConfig) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *GameServerConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *GameServerConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -774,7 +774,7 @@ var file_google_cloud_gaming_v1_game_server_configs_proto_goTypes = []interface{ nil, // 8: google.cloud.gaming.v1.GameServerConfig.LabelsEntry (*LabelSelector)(nil), // 9: google.cloud.gaming.v1.LabelSelector (*Schedule)(nil), // 10: google.cloud.gaming.v1.Schedule - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_google_cloud_gaming_v1_game_server_configs_proto_depIdxs = []int32{ 7, // 0: google.cloud.gaming.v1.ListGameServerConfigsResponse.game_server_configs:type_name -> google.cloud.gaming.v1.GameServerConfig diff --git a/gaming/apiv1/gamingpb/game_server_configs_service.pb.go b/gaming/apiv1/gamingpb/game_server_configs_service.pb.go index 9fd6ec3d7266..25a8db17860a 100644 --- a/gaming/apiv1/gamingpb/game_server_configs_service.pb.go +++ b/gaming/apiv1/gamingpb/game_server_configs_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_configs_service.proto package gamingpb diff --git a/gaming/apiv1/gamingpb/game_server_deployments.pb.go b/gaming/apiv1/gamingpb/game_server_deployments.pb.go index 35f5ee49f197..99c3e50ab5cb 100644 --- a/gaming/apiv1/gamingpb/game_server_deployments.pb.go +++ b/gaming/apiv1/gamingpb/game_server_deployments.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_deployments.proto package gamingpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -430,7 +430,7 @@ type UpdateGameServerDeploymentRequest struct { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateGameServerDeploymentRequest) Reset() { @@ -472,7 +472,7 @@ func (x *UpdateGameServerDeploymentRequest) GetGameServerDeployment() *GameServe return nil } -func (x *UpdateGameServerDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGameServerDeploymentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -492,7 +492,7 @@ type UpdateGameServerDeploymentRolloutRequest struct { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateGameServerDeploymentRolloutRequest) Reset() { @@ -534,7 +534,7 @@ func (x *UpdateGameServerDeploymentRolloutRequest) GetRollout() *GameServerDeplo return nil } -func (x *UpdateGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGameServerDeploymentRolloutRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -661,9 +661,9 @@ type GameServerDeployment struct { // `projects/my-project/locations/global/gameServerDeployments/my-deployment`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels associated with this game server deployment. Each label is a // key-value pair. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -712,14 +712,14 @@ func (x *GameServerDeployment) GetName() string { return "" } -func (x *GameServerDeployment) GetCreateTime() *timestamppb.Timestamp { +func (x *GameServerDeployment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *GameServerDeployment) GetUpdateTime() *timestamppb.Timestamp { +func (x *GameServerDeployment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -863,9 +863,9 @@ type GameServerDeploymentRollout struct { // `projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The default game server config is applied to all realms unless overridden // in the rollout. For example, // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. @@ -917,14 +917,14 @@ func (x *GameServerDeploymentRollout) GetName() string { return "" } -func (x *GameServerDeploymentRollout) GetCreateTime() *timestamppb.Timestamp { +func (x *GameServerDeploymentRollout) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *GameServerDeploymentRollout) GetUpdateTime() *timestamppb.Timestamp { +func (x *GameServerDeploymentRollout) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -964,10 +964,10 @@ type PreviewGameServerDeploymentRolloutRequest struct { // Optional. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. The target timestamp to compute the preview. Defaults to the immediately // after the proposed rollout completes. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` + PreviewTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` } func (x *PreviewGameServerDeploymentRolloutRequest) Reset() { @@ -1009,14 +1009,14 @@ func (x *PreviewGameServerDeploymentRolloutRequest) GetRollout() *GameServerDepl return nil } -func (x *PreviewGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *PreviewGameServerDeploymentRolloutRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } -func (x *PreviewGameServerDeploymentRolloutRequest) GetPreviewTime() *timestamppb.Timestamp { +func (x *PreviewGameServerDeploymentRolloutRequest) GetPreviewTime() *timestamp.Timestamp { if x != nil { return x.PreviewTime } @@ -1425,12 +1425,12 @@ var file_google_cloud_gaming_v1_game_server_deployments_proto_goTypes = []interf (*PreviewGameServerDeploymentRolloutRequest)(nil), // 13: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest (*PreviewGameServerDeploymentRolloutResponse)(nil), // 14: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse (*FetchDeploymentStateResponse_DeployedClusterState)(nil), // 15: google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState - nil, // 16: google.cloud.gaming.v1.GameServerDeployment.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*RealmSelector)(nil), // 19: google.cloud.gaming.v1.RealmSelector - (*TargetState)(nil), // 20: google.cloud.gaming.v1.TargetState - (*DeployedFleetDetails)(nil), // 21: google.cloud.gaming.v1.DeployedFleetDetails + nil, // 16: google.cloud.gaming.v1.GameServerDeployment.LabelsEntry + (*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*RealmSelector)(nil), // 19: google.cloud.gaming.v1.RealmSelector + (*TargetState)(nil), // 20: google.cloud.gaming.v1.TargetState + (*DeployedFleetDetails)(nil), // 21: google.cloud.gaming.v1.DeployedFleetDetails } var file_google_cloud_gaming_v1_game_server_deployments_proto_depIdxs = []int32{ 10, // 0: google.cloud.gaming.v1.ListGameServerDeploymentsResponse.game_server_deployments:type_name -> google.cloud.gaming.v1.GameServerDeployment diff --git a/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go b/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go index ce779b166260..2ad47f721900 100644 --- a/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go +++ b/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/game_server_deployments_service.proto package gamingpb diff --git a/gaming/apiv1/gamingpb/realms.pb.go b/gaming/apiv1/gamingpb/realms.pb.go index a60ded3e88b2..0634ec07ce78 100644 --- a/gaming/apiv1/gamingpb/realms.pb.go +++ b/gaming/apiv1/gamingpb/realms.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/realms.proto package gamingpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -378,7 +378,7 @@ type UpdateRealmRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateRealmRequest) Reset() { @@ -420,7 +420,7 @@ func (x *UpdateRealmRequest) GetRealm() *Realm { return nil } -func (x *UpdateRealmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateRealmRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -439,9 +439,9 @@ type PreviewRealmUpdateRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` + PreviewTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` } func (x *PreviewRealmUpdateRequest) Reset() { @@ -483,14 +483,14 @@ func (x *PreviewRealmUpdateRequest) GetRealm() *Realm { return nil } -func (x *PreviewRealmUpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *PreviewRealmUpdateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } -func (x *PreviewRealmUpdateRequest) GetPreviewTime() *timestamppb.Timestamp { +func (x *PreviewRealmUpdateRequest) GetPreviewTime() *timestamp.Timestamp { if x != nil { return x.PreviewTime } @@ -566,9 +566,9 @@ type Realm struct { // example, `projects/my-project/locations/{location}/realms/my-realm`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels associated with this realm. Each label is a key-value pair. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Time zone where all policies targeting this realm are evaluated. The value @@ -620,14 +620,14 @@ func (x *Realm) GetName() string { return "" } -func (x *Realm) GetCreateTime() *timestamppb.Timestamp { +func (x *Realm) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Realm) GetUpdateTime() *timestamppb.Timestamp { +func (x *Realm) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -817,8 +817,8 @@ var file_google_cloud_gaming_v1_realms_proto_goTypes = []interface{}{ (*PreviewRealmUpdateResponse)(nil), // 7: google.cloud.gaming.v1.PreviewRealmUpdateResponse (*Realm)(nil), // 8: google.cloud.gaming.v1.Realm nil, // 9: google.cloud.gaming.v1.Realm.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 10: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 10: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp (*TargetState)(nil), // 12: google.cloud.gaming.v1.TargetState } var file_google_cloud_gaming_v1_realms_proto_depIdxs = []int32{ diff --git a/gaming/apiv1/gamingpb/realms_service.pb.go b/gaming/apiv1/gamingpb/realms_service.pb.go index 1c5a8c1eddb0..f45b4580151b 100644 --- a/gaming/apiv1/gamingpb/realms_service.pb.go +++ b/gaming/apiv1/gamingpb/realms_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gaming/v1/realms_service.proto package gamingpb diff --git a/gkebackup/apiv1/gkebackuppb/backup.pb.go b/gkebackup/apiv1/gkebackuppb/backup.pb.go index 3f8720c522f1..f9024b6e9c99 100644 --- a/gkebackup/apiv1/gkebackuppb/backup.pb.go +++ b/gkebackup/apiv1/gkebackuppb/backup.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/backup.proto package gkebackuppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -122,9 +122,9 @@ type Backup struct { // [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier) Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this Backup resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this Backup resource was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. This flag indicates whether this Backup resource was created manually // by a user or via a schedule in the BackupPlan. A value of True means that // the Backup was created manually. @@ -144,7 +144,7 @@ type Backup struct { DeleteLockDays int32 `protobuf:"varint,7,opt,name=delete_lock_days,json=deleteLockDays,proto3" json:"delete_lock_days,omitempty"` // Output only. The time at which an existing delete lock will expire for this backup // (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]). - DeleteLockExpireTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_lock_expire_time,json=deleteLockExpireTime,proto3" json:"delete_lock_expire_time,omitempty"` + DeleteLockExpireTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=delete_lock_expire_time,json=deleteLockExpireTime,proto3" json:"delete_lock_expire_time,omitempty"` // The age (in days) after which this Backup will be automatically deleted. // Must be an integer value >= 0: // @@ -158,7 +158,7 @@ type Backup struct { RetainDays int32 `protobuf:"varint,9,opt,name=retain_days,json=retainDays,proto3" json:"retain_days,omitempty"` // Output only. The time at which this Backup will be automatically deleted (calculated // from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]). - RetainExpireTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=retain_expire_time,json=retainExpireTime,proto3" json:"retain_expire_time,omitempty"` + RetainExpireTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=retain_expire_time,json=retainExpireTime,proto3" json:"retain_expire_time,omitempty"` // Output only. The customer managed encryption key that was used to encrypt the Backup's // artifacts. Inherited from the parent BackupPlan's // [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value. @@ -188,7 +188,7 @@ type Backup struct { // Output only. Human-readable description of why the backup is in the current `state`. StateReason string `protobuf:"bytes,19,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"` // Output only. Completion time of the Backup - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` // Output only. The total number of Kubernetes resources included in the Backup. ResourceCount int32 `protobuf:"varint,21,opt,name=resource_count,json=resourceCount,proto3" json:"resource_count,omitempty"` // Output only. The total number of volume backups contained in the Backup. @@ -259,14 +259,14 @@ func (x *Backup) GetUid() string { return "" } -func (x *Backup) GetCreateTime() *timestamppb.Timestamp { +func (x *Backup) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Backup) GetUpdateTime() *timestamppb.Timestamp { +func (x *Backup) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -294,7 +294,7 @@ func (x *Backup) GetDeleteLockDays() int32 { return 0 } -func (x *Backup) GetDeleteLockExpireTime() *timestamppb.Timestamp { +func (x *Backup) GetDeleteLockExpireTime() *timestamp.Timestamp { if x != nil { return x.DeleteLockExpireTime } @@ -308,7 +308,7 @@ func (x *Backup) GetRetainDays() int32 { return 0 } -func (x *Backup) GetRetainExpireTime() *timestamppb.Timestamp { +func (x *Backup) GetRetainExpireTime() *timestamp.Timestamp { if x != nil { return x.RetainExpireTime } @@ -385,7 +385,7 @@ func (x *Backup) GetStateReason() string { return "" } -func (x *Backup) GetCompleteTime() *timestamppb.Timestamp { +func (x *Backup) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -775,7 +775,7 @@ var file_google_cloud_gkebackup_v1_backup_proto_goTypes = []interface{}{ (*Backup_ClusterMetadata)(nil), // 2: google.cloud.gkebackup.v1.Backup.ClusterMetadata nil, // 3: google.cloud.gkebackup.v1.Backup.LabelsEntry nil, // 4: google.cloud.gkebackup.v1.Backup.ClusterMetadata.BackupCrdVersionsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp (*EncryptionKey)(nil), // 6: google.cloud.gkebackup.v1.EncryptionKey (*Namespaces)(nil), // 7: google.cloud.gkebackup.v1.Namespaces (*NamespacedNames)(nil), // 8: google.cloud.gkebackup.v1.NamespacedNames diff --git a/gkebackup/apiv1/gkebackuppb/backup_plan.pb.go b/gkebackup/apiv1/gkebackuppb/backup_plan.pb.go index 9fdf3eeb35cb..215f18bd3548 100644 --- a/gkebackup/apiv1/gkebackuppb/backup_plan.pb.go +++ b/gkebackup/apiv1/gkebackuppb/backup_plan.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/backup_plan.proto package gkebackuppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -50,10 +50,10 @@ type BackupPlan struct { // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this BackupPlan resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this BackupPlan resource was last // updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User specified descriptive string for this BackupPlan. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Required. Immutable. The source cluster from which Backups will be created via @@ -139,14 +139,14 @@ func (x *BackupPlan) GetUid() string { return "" } -func (x *BackupPlan) GetCreateTime() *timestamppb.Timestamp { +func (x *BackupPlan) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *BackupPlan) GetUpdateTime() *timestamppb.Timestamp { +func (x *BackupPlan) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -664,7 +664,7 @@ var file_google_cloud_gkebackup_v1_backup_plan_proto_goTypes = []interface{}{ (*BackupPlan_Schedule)(nil), // 2: google.cloud.gkebackup.v1.BackupPlan.Schedule (*BackupPlan_BackupConfig)(nil), // 3: google.cloud.gkebackup.v1.BackupPlan.BackupConfig nil, // 4: google.cloud.gkebackup.v1.BackupPlan.LabelsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp (*Namespaces)(nil), // 6: google.cloud.gkebackup.v1.Namespaces (*NamespacedNames)(nil), // 7: google.cloud.gkebackup.v1.NamespacedNames (*EncryptionKey)(nil), // 8: google.cloud.gkebackup.v1.EncryptionKey diff --git a/gkebackup/apiv1/gkebackuppb/common.pb.go b/gkebackup/apiv1/gkebackuppb/common.pb.go index 12f5483a6b9c..3c00adae5101 100644 --- a/gkebackup/apiv1/gkebackuppb/common.pb.go +++ b/gkebackup/apiv1/gkebackuppb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/common.proto package gkebackuppb diff --git a/gkebackup/apiv1/gkebackuppb/gkebackup.pb.go b/gkebackup/apiv1/gkebackuppb/gkebackup.pb.go index 7924a686d4e6..5cc58594bb86 100644 --- a/gkebackup/apiv1/gkebackuppb/gkebackup.pb.go +++ b/gkebackup/apiv1/gkebackuppb/gkebackup.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/gkebackup.proto package gkebackuppb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -50,9 +50,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -100,14 +100,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_gkebackup_v1_gkebackup_proto_rawDescGZIP(), []int{0} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -459,7 +459,7 @@ type UpdateBackupPlanRequest struct { // written to the target BackupPlan resource. // Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored // and are not used to update the target BackupPlan. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBackupPlanRequest) Reset() { @@ -501,7 +501,7 @@ func (x *UpdateBackupPlanRequest) GetBackupPlan() *BackupPlan { return nil } -func (x *UpdateBackupPlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBackupPlanRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -867,7 +867,7 @@ type UpdateBackupRequest struct { // written to the target Backup resource. // Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored // and are not used to update the target Backup. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBackupRequest) Reset() { @@ -909,7 +909,7 @@ func (x *UpdateBackupRequest) GetBackup() *Backup { return nil } -func (x *UpdateBackupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBackupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1505,7 +1505,7 @@ type UpdateRestorePlanRequest struct { // written to the target RestorePlan resource. // Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored // and are not used to update the target RestorePlan. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateRestorePlanRequest) Reset() { @@ -1547,7 +1547,7 @@ func (x *UpdateRestorePlanRequest) GetRestorePlan() *RestorePlan { return nil } -func (x *UpdateRestorePlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateRestorePlanRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1934,7 +1934,7 @@ type UpdateRestoreRequest struct { // written to the target Restore resource. // Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored // and are not used to update the target Restore. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateRestoreRequest) Reset() { @@ -1976,7 +1976,7 @@ func (x *UpdateRestoreRequest) GetRestore() *Restore { return nil } -func (x *UpdateRestoreRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateRestoreRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3010,9 +3010,9 @@ var file_google_cloud_gkebackup_v1_gkebackup_proto_goTypes = []interface{}{ (*ListVolumeRestoresRequest)(nil), // 28: google.cloud.gkebackup.v1.ListVolumeRestoresRequest (*ListVolumeRestoresResponse)(nil), // 29: google.cloud.gkebackup.v1.ListVolumeRestoresResponse (*GetVolumeRestoreRequest)(nil), // 30: google.cloud.gkebackup.v1.GetVolumeRestoreRequest - (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 31: google.protobuf.Timestamp (*BackupPlan)(nil), // 32: google.cloud.gkebackup.v1.BackupPlan - (*fieldmaskpb.FieldMask)(nil), // 33: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 33: google.protobuf.FieldMask (*Backup)(nil), // 34: google.cloud.gkebackup.v1.Backup (*VolumeBackup)(nil), // 35: google.cloud.gkebackup.v1.VolumeBackup (*RestorePlan)(nil), // 36: google.cloud.gkebackup.v1.RestorePlan diff --git a/gkebackup/apiv1/gkebackuppb/restore.pb.go b/gkebackup/apiv1/gkebackuppb/restore.pb.go index 138ae8354a59..40edafdc6bce 100644 --- a/gkebackup/apiv1/gkebackuppb/restore.pb.go +++ b/gkebackup/apiv1/gkebackuppb/restore.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/restore.proto package gkebackuppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -305,10 +305,10 @@ type Restore struct { // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this Restore resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this Restore resource was last // updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User specified descriptive string for this Restore. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore @@ -334,7 +334,7 @@ type Restore struct { // Output only. Human-readable description of why the Restore is in its current state. StateReason string `protobuf:"bytes,11,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"` // Output only. Timestamp of when the restore operation completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` // Output only. Number of resources restored during the restore execution. ResourcesRestoredCount int32 `protobuf:"varint,13,opt,name=resources_restored_count,json=resourcesRestoredCount,proto3" json:"resources_restored_count,omitempty"` // Output only. Number of resources excluded during the restore execution. @@ -401,14 +401,14 @@ func (x *Restore) GetUid() string { return "" } -func (x *Restore) GetCreateTime() *timestamppb.Timestamp { +func (x *Restore) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Restore) GetUpdateTime() *timestamppb.Timestamp { +func (x *Restore) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -464,7 +464,7 @@ func (x *Restore) GetStateReason() string { return "" } -func (x *Restore) GetCompleteTime() *timestamppb.Timestamp { +func (x *Restore) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -1153,7 +1153,7 @@ var file_google_cloud_gkebackup_v1_restore_proto_goTypes = []interface{}{ (*RestoreConfig_GroupKind)(nil), // 7: google.cloud.gkebackup.v1.RestoreConfig.GroupKind (*RestoreConfig_ClusterResourceRestoreScope)(nil), // 8: google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope (*RestoreConfig_SubstitutionRule)(nil), // 9: google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp (*Namespaces)(nil), // 11: google.cloud.gkebackup.v1.Namespaces (*NamespacedNames)(nil), // 12: google.cloud.gkebackup.v1.NamespacedNames } diff --git a/gkebackup/apiv1/gkebackuppb/restore_plan.pb.go b/gkebackup/apiv1/gkebackuppb/restore_plan.pb.go index 1f914e3c4056..271f10b69c55 100644 --- a/gkebackup/apiv1/gkebackuppb/restore_plan.pb.go +++ b/gkebackup/apiv1/gkebackuppb/restore_plan.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/restore_plan.proto package gkebackuppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -53,10 +53,10 @@ type RestorePlan struct { Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this RestorePlan resource was // created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this RestorePlan resource was last // updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User specified descriptive string for this RestorePlan. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the @@ -132,14 +132,14 @@ func (x *RestorePlan) GetUid() string { return "" } -func (x *RestorePlan) GetCreateTime() *timestamppb.Timestamp { +func (x *RestorePlan) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *RestorePlan) GetUpdateTime() *timestamppb.Timestamp { +func (x *RestorePlan) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -280,10 +280,10 @@ func file_google_cloud_gkebackup_v1_restore_plan_proto_rawDescGZIP() []byte { var file_google_cloud_gkebackup_v1_restore_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_gkebackup_v1_restore_plan_proto_goTypes = []interface{}{ - (*RestorePlan)(nil), // 0: google.cloud.gkebackup.v1.RestorePlan - nil, // 1: google.cloud.gkebackup.v1.RestorePlan.LabelsEntry - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*RestoreConfig)(nil), // 3: google.cloud.gkebackup.v1.RestoreConfig + (*RestorePlan)(nil), // 0: google.cloud.gkebackup.v1.RestorePlan + nil, // 1: google.cloud.gkebackup.v1.RestorePlan.LabelsEntry + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*RestoreConfig)(nil), // 3: google.cloud.gkebackup.v1.RestoreConfig } var file_google_cloud_gkebackup_v1_restore_plan_proto_depIdxs = []int32{ 2, // 0: google.cloud.gkebackup.v1.RestorePlan.create_time:type_name -> google.protobuf.Timestamp diff --git a/gkebackup/apiv1/gkebackuppb/volume.pb.go b/gkebackup/apiv1/gkebackuppb/volume.pb.go index 371bd8239e68..896494a251e7 100644 --- a/gkebackup/apiv1/gkebackuppb/volume.pb.go +++ b/gkebackup/apiv1/gkebackuppb/volume.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkebackup/v1/volume.proto package gkebackuppb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -293,10 +293,10 @@ type VolumeBackup struct { Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this VolumeBackup resource was // created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this VolumeBackup resource was last // updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. A reference to the source Kubernetes PVC from which this VolumeBackup // was created. SourcePvc *NamespacedName `protobuf:"bytes,5,opt,name=source_pvc,json=sourcePvc,proto3" json:"source_pvc,omitempty"` @@ -314,7 +314,7 @@ type VolumeBackup struct { DiskSizeBytes int64 `protobuf:"varint,9,opt,name=disk_size_bytes,json=diskSizeBytes,proto3" json:"disk_size_bytes,omitempty"` // Output only. The timestamp when the associated underlying volume backup // operation completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` // Output only. The current state of this VolumeBackup. State VolumeBackup_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.VolumeBackup_State" json:"state,omitempty"` // Output only. A human readable message explaining why the VolumeBackup is in its current @@ -374,14 +374,14 @@ func (x *VolumeBackup) GetUid() string { return "" } -func (x *VolumeBackup) GetCreateTime() *timestamppb.Timestamp { +func (x *VolumeBackup) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *VolumeBackup) GetUpdateTime() *timestamppb.Timestamp { +func (x *VolumeBackup) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -423,7 +423,7 @@ func (x *VolumeBackup) GetDiskSizeBytes() int64 { return 0 } -func (x *VolumeBackup) GetCompleteTime() *timestamppb.Timestamp { +func (x *VolumeBackup) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -466,10 +466,10 @@ type VolumeRestore struct { Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The timestamp when this VolumeRestore resource was // created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when this VolumeRestore resource was last // updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The full name of the VolumeBackup from which the volume will be restored. // Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*. VolumeBackup string `protobuf:"bytes,5,opt,name=volume_backup,json=volumeBackup,proto3" json:"volume_backup,omitempty"` @@ -482,7 +482,7 @@ type VolumeRestore struct { VolumeType VolumeRestore_VolumeType `protobuf:"varint,8,opt,name=volume_type,json=volumeType,proto3,enum=google.cloud.gkebackup.v1.VolumeRestore_VolumeType" json:"volume_type,omitempty"` // Output only. The timestamp when the associated underlying volume // restoration completed. - CompleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` + CompleteTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"` // Output only. The current state of this VolumeRestore. State VolumeRestore_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.VolumeRestore_State" json:"state,omitempty"` // Output only. A human readable message explaining why the VolumeRestore is in its @@ -542,14 +542,14 @@ func (x *VolumeRestore) GetUid() string { return "" } -func (x *VolumeRestore) GetCreateTime() *timestamppb.Timestamp { +func (x *VolumeRestore) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *VolumeRestore) GetUpdateTime() *timestamppb.Timestamp { +func (x *VolumeRestore) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -584,7 +584,7 @@ func (x *VolumeRestore) GetVolumeType() VolumeRestore_VolumeType { return VolumeRestore_VOLUME_TYPE_UNSPECIFIED } -func (x *VolumeRestore) GetCompleteTime() *timestamppb.Timestamp { +func (x *VolumeRestore) GetCompleteTime() *timestamp.Timestamp { if x != nil { return x.CompleteTime } @@ -794,7 +794,7 @@ var file_google_cloud_gkebackup_v1_volume_proto_goTypes = []interface{}{ (VolumeRestore_State)(0), // 3: google.cloud.gkebackup.v1.VolumeRestore.State (*VolumeBackup)(nil), // 4: google.cloud.gkebackup.v1.VolumeBackup (*VolumeRestore)(nil), // 5: google.cloud.gkebackup.v1.VolumeRestore - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp (*NamespacedName)(nil), // 7: google.cloud.gkebackup.v1.NamespacedName } var file_google_cloud_gkebackup_v1_volume_proto_depIdxs = []int32{ diff --git a/gkebackup/go.mod b/gkebackup/go.mod index e437f94b54c1..9eb69198a841 100644 --- a/gkebackup/go.mod +++ b/gkebackup/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/gkemulticloud/apiv1/gkemulticloudpb/aws_resources.pb.go b/gkemulticloud/apiv1/gkemulticloudpb/aws_resources.pb.go index d0131f13cb40..431de1696e74 100644 --- a/gkemulticloud/apiv1/gkemulticloudpb/aws_resources.pb.go +++ b/gkemulticloud/apiv1/gkemulticloudpb/aws_resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkemulticloud/v1/aws_resources.proto package gkemulticloudpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -334,9 +334,9 @@ type AwsCluster struct { // Output only. If set, there are currently changes in flight to the cluster. Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"` // Output only. The time at which this cluster was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this cluster was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. // @@ -465,14 +465,14 @@ func (x *AwsCluster) GetReconciling() bool { return false } -func (x *AwsCluster) GetCreateTime() *timestamppb.Timestamp { +func (x *AwsCluster) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AwsCluster) GetUpdateTime() *timestamppb.Timestamp { +func (x *AwsCluster) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1129,9 +1129,9 @@ type AwsNodePool struct { // pool. Reconciling bool `protobuf:"varint,18,opt,name=reconciling,proto3" json:"reconciling,omitempty"` // Output only. The time at which this node pool was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,19,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this node pool was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. // @@ -1241,14 +1241,14 @@ func (x *AwsNodePool) GetReconciling() bool { return false } -func (x *AwsNodePool) GetCreateTime() *timestamppb.Timestamp { +func (x *AwsNodePool) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AwsNodePool) GetUpdateTime() *timestamppb.Timestamp { +func (x *AwsNodePool) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2302,7 +2302,7 @@ var file_google_cloud_gkemulticloud_v1_aws_resources_proto_goTypes = []interface nil, // 23: google.cloud.gkemulticloud.v1.AwsNodePool.AnnotationsEntry nil, // 24: google.cloud.gkemulticloud.v1.AwsNodeConfig.LabelsEntry nil, // 25: google.cloud.gkemulticloud.v1.AwsNodeConfig.TagsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*WorkloadIdentityConfig)(nil), // 27: google.cloud.gkemulticloud.v1.WorkloadIdentityConfig (*Fleet)(nil), // 28: google.cloud.gkemulticloud.v1.Fleet (*LoggingConfig)(nil), // 29: google.cloud.gkemulticloud.v1.LoggingConfig diff --git a/gkemulticloud/apiv1/gkemulticloudpb/aws_service.pb.go b/gkemulticloud/apiv1/gkemulticloudpb/aws_service.pb.go index ea785eb7a3f2..99478d720ab4 100644 --- a/gkemulticloud/apiv1/gkemulticloudpb/aws_service.pb.go +++ b/gkemulticloud/apiv1/gkemulticloudpb/aws_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkemulticloud/v1/aws_service.proto package gkemulticloudpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -166,7 +166,7 @@ type UpdateAwsClusterRequest struct { // - `control_plane.ssh_config.ec2_key_pair`. // - `control_plane.instance_placement.tenancy`. // - `logging_config`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAwsClusterRequest) Reset() { @@ -215,7 +215,7 @@ func (x *UpdateAwsClusterRequest) GetValidateOnly() bool { return false } -func (x *UpdateAwsClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAwsClusterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -627,7 +627,7 @@ type UpdateAwsNodePoolRequest struct { // - `config.proxy_config.secret_version`. // - `config.ssh_config`. // - `config.ssh_config.ec2_key_pair`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAwsNodePoolRequest) Reset() { @@ -676,7 +676,7 @@ func (x *UpdateAwsNodePoolRequest) GetValidateOnly() bool { return false } -func (x *UpdateAwsNodePoolRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAwsNodePoolRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1089,7 +1089,7 @@ type GenerateAwsAccessTokenResponse struct { // Output only. Access token to authenticate to k8s api-server. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Output only. Timestamp at which the token will expire. - ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` } func (x *GenerateAwsAccessTokenResponse) Reset() { @@ -1131,7 +1131,7 @@ func (x *GenerateAwsAccessTokenResponse) GetAccessToken() string { return "" } -func (x *GenerateAwsAccessTokenResponse) GetExpirationTime() *timestamppb.Timestamp { +func (x *GenerateAwsAccessTokenResponse) GetExpirationTime() *timestamp.Timestamp { if x != nil { return x.ExpirationTime } @@ -1544,9 +1544,9 @@ var file_google_cloud_gkemulticloud_v1_aws_service_proto_goTypes = []interface{} (*GenerateAwsAccessTokenRequest)(nil), // 13: google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest (*GenerateAwsAccessTokenResponse)(nil), // 14: google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse (*AwsCluster)(nil), // 15: google.cloud.gkemulticloud.v1.AwsCluster - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 16: google.protobuf.FieldMask (*AwsNodePool)(nil), // 17: google.cloud.gkemulticloud.v1.AwsNodePool - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 19: google.longrunning.Operation (*AwsServerConfig)(nil), // 20: google.cloud.gkemulticloud.v1.AwsServerConfig } diff --git a/gkemulticloud/apiv1/gkemulticloudpb/azure_resources.pb.go b/gkemulticloud/apiv1/gkemulticloudpb/azure_resources.pb.go index 7bd642220eb6..61088e45f56b 100644 --- a/gkemulticloud/apiv1/gkemulticloudpb/azure_resources.pb.go +++ b/gkemulticloud/apiv1/gkemulticloudpb/azure_resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkemulticloud/v1/azure_resources.proto package gkemulticloudpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -237,9 +237,9 @@ type AzureCluster struct { // Output only. If set, there are currently changes in flight to the cluster. Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"` // Output only. The time at which this cluster was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this cluster was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. // @@ -384,14 +384,14 @@ func (x *AzureCluster) GetReconciling() bool { return false } -func (x *AzureCluster) GetCreateTime() *timestamppb.Timestamp { +func (x *AzureCluster) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AzureCluster) GetUpdateTime() *timestamppb.Timestamp { +func (x *AzureCluster) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1077,7 +1077,7 @@ type AzureClient struct { // Output only. A globally unique identifier for the client. Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"` // Output only. The time at which this resource was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *AzureClient) Reset() { @@ -1154,7 +1154,7 @@ func (x *AzureClient) GetUid() string { return "" } -func (x *AzureClient) GetCreateTime() *timestamppb.Timestamp { +func (x *AzureClient) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1295,9 +1295,9 @@ type AzureNodePool struct { // pool. Reconciling bool `protobuf:"varint,9,opt,name=reconciling,proto3" json:"reconciling,omitempty"` // Output only. The time at which this node pool was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this node pool was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. // @@ -1411,14 +1411,14 @@ func (x *AzureNodePool) GetReconciling() bool { return false } -func (x *AzureNodePool) GetCreateTime() *timestamppb.Timestamp { +func (x *AzureNodePool) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AzureNodePool) GetUpdateTime() *timestamppb.Timestamp { +func (x *AzureNodePool) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2385,7 +2385,7 @@ var file_google_cloud_gkemulticloud_v1_azure_resources_proto_goTypes = []interfa nil, // 23: google.cloud.gkemulticloud.v1.AzureNodePool.AnnotationsEntry nil, // 24: google.cloud.gkemulticloud.v1.AzureNodeConfig.TagsEntry nil, // 25: google.cloud.gkemulticloud.v1.AzureNodeConfig.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*WorkloadIdentityConfig)(nil), // 27: google.cloud.gkemulticloud.v1.WorkloadIdentityConfig (*Fleet)(nil), // 28: google.cloud.gkemulticloud.v1.Fleet (*LoggingConfig)(nil), // 29: google.cloud.gkemulticloud.v1.LoggingConfig diff --git a/gkemulticloud/apiv1/gkemulticloudpb/azure_service.pb.go b/gkemulticloud/apiv1/gkemulticloudpb/azure_service.pb.go index fefe7fdd0029..9a246e80fee3 100644 --- a/gkemulticloud/apiv1/gkemulticloudpb/azure_service.pb.go +++ b/gkemulticloud/apiv1/gkemulticloudpb/azure_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkemulticloud/v1/azure_service.proto package gkemulticloudpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -154,7 +154,7 @@ type UpdateAzureClusterRequest struct { // - `authorization.admin_users`. // - `control_plane.root_volume.size_gib`. // - `logging_config` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAzureClusterRequest) Reset() { @@ -203,7 +203,7 @@ func (x *UpdateAzureClusterRequest) GetValidateOnly() bool { return false } -func (x *UpdateAzureClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAzureClusterRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -604,7 +604,7 @@ type UpdateAzureNodePoolRequest struct { // * `autoscaling.min_node_count`. // * `autoscaling.max_node_count`. // * `config.vm_size`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAzureNodePoolRequest) Reset() { @@ -653,7 +653,7 @@ func (x *UpdateAzureNodePoolRequest) GetValidateOnly() bool { return false } -func (x *UpdateAzureNodePoolRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAzureNodePoolRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1427,7 +1427,7 @@ type GenerateAzureAccessTokenResponse struct { // Output only. Access token to authenticate to k8s api-server. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Output only. Timestamp at which the token will expire. - ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` } func (x *GenerateAzureAccessTokenResponse) Reset() { @@ -1469,7 +1469,7 @@ func (x *GenerateAzureAccessTokenResponse) GetAccessToken() string { return "" } -func (x *GenerateAzureAccessTokenResponse) GetExpirationTime() *timestamppb.Timestamp { +func (x *GenerateAzureAccessTokenResponse) GetExpirationTime() *timestamp.Timestamp { if x != nil { return x.ExpirationTime } @@ -2008,10 +2008,10 @@ var file_google_cloud_gkemulticloud_v1_azure_service_proto_goTypes = []interface (*GenerateAzureAccessTokenRequest)(nil), // 18: google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest (*GenerateAzureAccessTokenResponse)(nil), // 19: google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse (*AzureCluster)(nil), // 20: google.cloud.gkemulticloud.v1.AzureCluster - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 21: google.protobuf.FieldMask (*AzureNodePool)(nil), // 22: google.cloud.gkemulticloud.v1.AzureNodePool (*AzureClient)(nil), // 23: google.cloud.gkemulticloud.v1.AzureClient - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 25: google.longrunning.Operation (*AzureServerConfig)(nil), // 26: google.cloud.gkemulticloud.v1.AzureServerConfig } diff --git a/gkemulticloud/apiv1/gkemulticloudpb/common_resources.pb.go b/gkemulticloud/apiv1/gkemulticloudpb/common_resources.pb.go index 64c8b2a5c760..dd2413bbbba7 100644 --- a/gkemulticloud/apiv1/gkemulticloudpb/common_resources.pb.go +++ b/gkemulticloud/apiv1/gkemulticloudpb/common_resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gkemulticloud/v1/common_resources.proto package gkemulticloudpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -277,9 +277,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time at which this operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this operation was completed. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The name of the resource associated to this operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Human-readable status of the operation, if any. @@ -320,14 +320,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_gkemulticloud_v1_common_resources_proto_rawDescGZIP(), []int{2} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -715,7 +715,7 @@ var file_google_cloud_gkemulticloud_v1_common_resources_proto_goTypes = []interf (*Fleet)(nil), // 6: google.cloud.gkemulticloud.v1.Fleet (*LoggingConfig)(nil), // 7: google.cloud.gkemulticloud.v1.LoggingConfig (*LoggingComponentConfig)(nil), // 8: google.cloud.gkemulticloud.v1.LoggingComponentConfig - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_google_cloud_gkemulticloud_v1_common_resources_proto_depIdxs = []int32{ 9, // 0: google.cloud.gkemulticloud.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp diff --git a/gkemulticloud/go.mod b/gkemulticloud/go.mod index 75f5a4531846..7a7b16b233c0 100644 --- a/gkemulticloud/go.mod +++ b/gkemulticloud/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/gsuiteaddons/apiv1/gsuiteaddonspb/gsuiteaddons.pb.go b/gsuiteaddons/apiv1/gsuiteaddonspb/gsuiteaddons.pb.go index 55eea03848f5..86a918d39d19 100644 --- a/gsuiteaddons/apiv1/gsuiteaddonspb/gsuiteaddons.pb.go +++ b/gsuiteaddons/apiv1/gsuiteaddonspb/gsuiteaddons.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/gsuiteaddons/v1/gsuiteaddons.proto package gsuiteaddonspb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" _type "google.golang.org/genproto/googleapis/apps/script/type" calendar "google.golang.org/genproto/googleapis/apps/script/type/calendar" @@ -38,8 +40,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -701,7 +701,7 @@ type InstallStatus struct { // Example: `projects/123/deployments/my_deployment/installStatus`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // True if the deployment is installed for the user - Installed *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=installed,proto3" json:"installed,omitempty"` + Installed *wrappers.BoolValue `protobuf:"bytes,2,opt,name=installed,proto3" json:"installed,omitempty"` } func (x *InstallStatus) Reset() { @@ -743,7 +743,7 @@ func (x *InstallStatus) GetName() string { return "" } -func (x *InstallStatus) GetInstalled() *wrapperspb.BoolValue { +func (x *InstallStatus) GetInstalled() *wrappers.BoolValue { if x != nil { return x.Installed } @@ -1294,7 +1294,7 @@ var file_google_cloud_gsuiteaddons_v1_gsuiteaddons_proto_goTypes = []interface{} (*InstallStatus)(nil), // 11: google.cloud.gsuiteaddons.v1.InstallStatus (*Deployment)(nil), // 12: google.cloud.gsuiteaddons.v1.Deployment (*AddOns)(nil), // 13: google.cloud.gsuiteaddons.v1.AddOns - (*wrapperspb.BoolValue)(nil), // 14: google.protobuf.BoolValue + (*wrappers.BoolValue)(nil), // 14: google.protobuf.BoolValue (*_type.CommonAddOnManifest)(nil), // 15: google.apps.script.type.CommonAddOnManifest (*gmail.GmailAddOnManifest)(nil), // 16: google.apps.script.type.gmail.GmailAddOnManifest (*drive.DriveAddOnManifest)(nil), // 17: google.apps.script.type.drive.DriveAddOnManifest @@ -1303,7 +1303,7 @@ var file_google_cloud_gsuiteaddons_v1_gsuiteaddons_proto_goTypes = []interface{} (*sheets.SheetsAddOnManifest)(nil), // 20: google.apps.script.type.sheets.SheetsAddOnManifest (*slides.SlidesAddOnManifest)(nil), // 21: google.apps.script.type.slides.SlidesAddOnManifest (*_type.HttpOptions)(nil), // 22: google.apps.script.type.HttpOptions - (*emptypb.Empty)(nil), // 23: google.protobuf.Empty + (*empty.Empty)(nil), // 23: google.protobuf.Empty } var file_google_cloud_gsuiteaddons_v1_gsuiteaddons_proto_depIdxs = []int32{ 12, // 0: google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.deployment:type_name -> google.cloud.gsuiteaddons.v1.Deployment @@ -1562,15 +1562,15 @@ type GSuiteAddOnsClient interface { // Lists all deployments in a particular project. ListDeployments(ctx context.Context, in *ListDeploymentsRequest, opts ...grpc.CallOption) (*ListDeploymentsResponse, error) // Deletes the deployment with the given name. - DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Installs a deployment in developer mode. // See: // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. - InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Uninstalls a developer mode deployment. // See: // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. - UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Fetches the install status of a developer mode deployment. GetInstallStatus(ctx context.Context, in *GetInstallStatusRequest, opts ...grpc.CallOption) (*InstallStatus, error) } @@ -1628,8 +1628,8 @@ func (c *gSuiteAddOnsClient) ListDeployments(ctx context.Context, in *ListDeploy return out, nil } -func (c *gSuiteAddOnsClient) DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *gSuiteAddOnsClient) DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/DeleteDeployment", in, out, opts...) if err != nil { return nil, err @@ -1637,8 +1637,8 @@ func (c *gSuiteAddOnsClient) DeleteDeployment(ctx context.Context, in *DeleteDep return out, nil } -func (c *gSuiteAddOnsClient) InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *gSuiteAddOnsClient) InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/InstallDeployment", in, out, opts...) if err != nil { return nil, err @@ -1646,8 +1646,8 @@ func (c *gSuiteAddOnsClient) InstallDeployment(ctx context.Context, in *InstallD return out, nil } -func (c *gSuiteAddOnsClient) UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *gSuiteAddOnsClient) UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/UninstallDeployment", in, out, opts...) if err != nil { return nil, err @@ -1677,15 +1677,15 @@ type GSuiteAddOnsServer interface { // Lists all deployments in a particular project. ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error) // Deletes the deployment with the given name. - DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error) + DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*empty.Empty, error) // Installs a deployment in developer mode. // See: // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. - InstallDeployment(context.Context, *InstallDeploymentRequest) (*emptypb.Empty, error) + InstallDeployment(context.Context, *InstallDeploymentRequest) (*empty.Empty, error) // Uninstalls a developer mode deployment. // See: // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. - UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*emptypb.Empty, error) + UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*empty.Empty, error) // Fetches the install status of a developer mode deployment. GetInstallStatus(context.Context, *GetInstallStatusRequest) (*InstallStatus, error) } @@ -1709,13 +1709,13 @@ func (*UnimplementedGSuiteAddOnsServer) GetDeployment(context.Context, *GetDeplo func (*UnimplementedGSuiteAddOnsServer) ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDeployments not implemented") } -func (*UnimplementedGSuiteAddOnsServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error) { +func (*UnimplementedGSuiteAddOnsServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDeployment not implemented") } -func (*UnimplementedGSuiteAddOnsServer) InstallDeployment(context.Context, *InstallDeploymentRequest) (*emptypb.Empty, error) { +func (*UnimplementedGSuiteAddOnsServer) InstallDeployment(context.Context, *InstallDeploymentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method InstallDeployment not implemented") } -func (*UnimplementedGSuiteAddOnsServer) UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*emptypb.Empty, error) { +func (*UnimplementedGSuiteAddOnsServer) UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UninstallDeployment not implemented") } func (*UnimplementedGSuiteAddOnsServer) GetInstallStatus(context.Context, *GetInstallStatusRequest) (*InstallStatus, error) { diff --git a/gsuiteaddons/go.mod b/gsuiteaddons/go.mod index 75ccedd4c193..ca7318b713f2 100644 --- a/gsuiteaddons/go.mod +++ b/gsuiteaddons/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/gsuiteaddons go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/iam/credentials/apiv1/credentialspb/common.pb.go b/iam/credentials/apiv1/credentialspb/common.pb.go index e1ae395db7c0..d9b2344c13c7 100644 --- a/iam/credentials/apiv1/credentialspb/common.pb.go +++ b/iam/credentials/apiv1/credentialspb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/iam/credentials/v1/common.proto package credentialspb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -68,7 +68,7 @@ type GenerateAccessTokenRequest struct { // Must be set to a value less than or equal to 3600 (1 hour). If a value is // not specified, the token's lifetime will be set to a default value of one // hour. - Lifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + Lifetime *duration.Duration `protobuf:"bytes,7,opt,name=lifetime,proto3" json:"lifetime,omitempty"` } func (x *GenerateAccessTokenRequest) Reset() { @@ -124,7 +124,7 @@ func (x *GenerateAccessTokenRequest) GetScope() []string { return nil } -func (x *GenerateAccessTokenRequest) GetLifetime() *durationpb.Duration { +func (x *GenerateAccessTokenRequest) GetLifetime() *duration.Duration { if x != nil { return x.Lifetime } @@ -140,7 +140,7 @@ type GenerateAccessTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Token expiration time. // The expiration time is always set. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *GenerateAccessTokenResponse) Reset() { @@ -182,7 +182,7 @@ func (x *GenerateAccessTokenResponse) GetAccessToken() string { return "" } -func (x *GenerateAccessTokenResponse) GetExpireTime() *timestamppb.Timestamp { +func (x *GenerateAccessTokenResponse) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -718,8 +718,8 @@ var file_google_iam_credentials_v1_common_proto_goTypes = []interface{}{ (*SignJwtResponse)(nil), // 5: google.iam.credentials.v1.SignJwtResponse (*GenerateIdTokenRequest)(nil), // 6: google.iam.credentials.v1.GenerateIdTokenRequest (*GenerateIdTokenResponse)(nil), // 7: google.iam.credentials.v1.GenerateIdTokenResponse - (*durationpb.Duration)(nil), // 8: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*duration.Duration)(nil), // 8: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_google_iam_credentials_v1_common_proto_depIdxs = []int32{ 8, // 0: google.iam.credentials.v1.GenerateAccessTokenRequest.lifetime:type_name -> google.protobuf.Duration diff --git a/iam/credentials/apiv1/credentialspb/iamcredentials.pb.go b/iam/credentials/apiv1/credentialspb/iamcredentials.pb.go index d2e20d3095d9..d989c0fa559d 100644 --- a/iam/credentials/apiv1/credentialspb/iamcredentials.pb.go +++ b/iam/credentials/apiv1/credentialspb/iamcredentials.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/iam/credentials/v1/iamcredentials.proto package credentialspb diff --git a/iap/apiv1/iappb/service.pb.go b/iap/apiv1/iappb/service.pb.go index 7ddfe9ac01e5..fd6e3f270154 100644 --- a/iap/apiv1/iappb/service.pb.go +++ b/iap/apiv1/iappb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/iap/v1/service.proto package iappb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -483,7 +483,7 @@ type UpdateTunnelDestGroupRequest struct { // A field mask that specifies which IAP settings to update. // If omitted, then all of the settings are updated. See // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTunnelDestGroupRequest) Reset() { @@ -525,7 +525,7 @@ func (x *UpdateTunnelDestGroupRequest) GetTunnelDestGroup() *TunnelDestGroup { return nil } -func (x *UpdateTunnelDestGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTunnelDestGroupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -664,7 +664,7 @@ type UpdateIapSettingsRequest struct { // The field mask specifying which IAP settings should be updated. // If omitted, the all of the settings are updated. See // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateIapSettingsRequest) Reset() { @@ -706,7 +706,7 @@ func (x *UpdateIapSettingsRequest) GetIapSettings() *IapSettings { return nil } -func (x *UpdateIapSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateIapSettingsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -872,7 +872,7 @@ type GcipSettings struct { // Login page URI associated with the GCIP tenants. // Typically, all resources within the same project share the same login page, // though it could be overridden at the sub resource level. - LoginPageUri *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=login_page_uri,json=loginPageUri,proto3" json:"login_page_uri,omitempty"` + LoginPageUri *wrappers.StringValue `protobuf:"bytes,2,opt,name=login_page_uri,json=loginPageUri,proto3" json:"login_page_uri,omitempty"` } func (x *GcipSettings) Reset() { @@ -914,7 +914,7 @@ func (x *GcipSettings) GetTenantIds() []string { return nil } -func (x *GcipSettings) GetLoginPageUri() *wrapperspb.StringValue { +func (x *GcipSettings) GetLoginPageUri() *wrappers.StringValue { if x != nil { return x.LoginPageUri } @@ -930,7 +930,7 @@ type CorsSettings struct { // Configuration to allow HTTP OPTIONS calls to skip authorization. If // undefined, IAP will not apply any special logic to OPTIONS requests. - AllowHttpOptions *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=allow_http_options,json=allowHttpOptions,proto3" json:"allow_http_options,omitempty"` + AllowHttpOptions *wrappers.BoolValue `protobuf:"bytes,1,opt,name=allow_http_options,json=allowHttpOptions,proto3" json:"allow_http_options,omitempty"` } func (x *CorsSettings) Reset() { @@ -965,7 +965,7 @@ func (*CorsSettings) Descriptor() ([]byte, []int) { return file_google_cloud_iap_v1_service_proto_rawDescGZIP(), []int{12} } -func (x *CorsSettings) GetAllowHttpOptions() *wrapperspb.BoolValue { +func (x *CorsSettings) GetAllowHttpOptions() *wrappers.BoolValue { if x != nil { return x.AllowHttpOptions } @@ -984,7 +984,7 @@ type OAuthSettings struct { // https://developers.google.com/identity/protocols/OpenIDConnect#hd-param // Note: IAP does not verify that the id token's hd claim matches this value // since access behavior is managed by IAM policies. - LoginHint *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=login_hint,json=loginHint,proto3" json:"login_hint,omitempty"` + LoginHint *wrappers.StringValue `protobuf:"bytes,2,opt,name=login_hint,json=loginHint,proto3" json:"login_hint,omitempty"` } func (x *OAuthSettings) Reset() { @@ -1019,7 +1019,7 @@ func (*OAuthSettings) Descriptor() ([]byte, []int) { return file_google_cloud_iap_v1_service_proto_rawDescGZIP(), []int{13} } -func (x *OAuthSettings) GetLoginHint() *wrapperspb.StringValue { +func (x *OAuthSettings) GetLoginHint() *wrappers.StringValue { if x != nil { return x.LoginHint } @@ -1036,7 +1036,7 @@ type ReauthSettings struct { Method ReauthSettings_Method `protobuf:"varint,1,opt,name=method,proto3,enum=google.cloud.iap.v1.ReauthSettings_Method" json:"method,omitempty"` // Reauth session lifetime, how long before a user has to reauthenticate // again. - MaxAge *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` + MaxAge *duration.Duration `protobuf:"bytes,2,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` // How IAP determines the effective policy in cases of hierarchial policies. // Policies are merged from higher in the hierarchy to lower in the hierarchy. PolicyType ReauthSettings_PolicyType `protobuf:"varint,3,opt,name=policy_type,json=policyType,proto3,enum=google.cloud.iap.v1.ReauthSettings_PolicyType" json:"policy_type,omitempty"` @@ -1081,7 +1081,7 @@ func (x *ReauthSettings) GetMethod() ReauthSettings_Method { return ReauthSettings_METHOD_UNSPECIFIED } -func (x *ReauthSettings) GetMaxAge() *durationpb.Duration { +func (x *ReauthSettings) GetMaxAge() *duration.Duration { if x != nil { return x.MaxAge } @@ -1107,7 +1107,7 @@ type ApplicationSettings struct { AccessDeniedPageSettings *AccessDeniedPageSettings `protobuf:"bytes,2,opt,name=access_denied_page_settings,json=accessDeniedPageSettings,proto3" json:"access_denied_page_settings,omitempty"` // The Domain value to set for cookies generated by IAP. This value is not // validated by the API, but will be ignored at runtime if invalid. - CookieDomain *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=cookie_domain,json=cookieDomain,proto3" json:"cookie_domain,omitempty"` + CookieDomain *wrappers.StringValue `protobuf:"bytes,3,opt,name=cookie_domain,json=cookieDomain,proto3" json:"cookie_domain,omitempty"` } func (x *ApplicationSettings) Reset() { @@ -1156,7 +1156,7 @@ func (x *ApplicationSettings) GetAccessDeniedPageSettings() *AccessDeniedPageSet return nil } -func (x *ApplicationSettings) GetCookieDomain() *wrapperspb.StringValue { +func (x *ApplicationSettings) GetCookieDomain() *wrappers.StringValue { if x != nil { return x.CookieDomain } @@ -1174,7 +1174,7 @@ type CsmSettings struct { // Audience claim set in the generated RCToken. This value is not validated by // IAP. - RctokenAud *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=rctoken_aud,json=rctokenAud,proto3" json:"rctoken_aud,omitempty"` + RctokenAud *wrappers.StringValue `protobuf:"bytes,1,opt,name=rctoken_aud,json=rctokenAud,proto3" json:"rctoken_aud,omitempty"` } func (x *CsmSettings) Reset() { @@ -1209,7 +1209,7 @@ func (*CsmSettings) Descriptor() ([]byte, []int) { return file_google_cloud_iap_v1_service_proto_rawDescGZIP(), []int{16} } -func (x *CsmSettings) GetRctokenAud() *wrapperspb.StringValue { +func (x *CsmSettings) GetRctokenAud() *wrappers.StringValue { if x != nil { return x.RctokenAud } @@ -1226,10 +1226,10 @@ type AccessDeniedPageSettings struct { unknownFields protoimpl.UnknownFields // The URI to be redirected to when access is denied. - AccessDeniedPageUri *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=access_denied_page_uri,json=accessDeniedPageUri,proto3" json:"access_denied_page_uri,omitempty"` + AccessDeniedPageUri *wrappers.StringValue `protobuf:"bytes,1,opt,name=access_denied_page_uri,json=accessDeniedPageUri,proto3" json:"access_denied_page_uri,omitempty"` // Whether to generate a troubleshooting URL on access denied events to this // application. - GenerateTroubleshootingUri *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=generate_troubleshooting_uri,json=generateTroubleshootingUri,proto3" json:"generate_troubleshooting_uri,omitempty"` + GenerateTroubleshootingUri *wrappers.BoolValue `protobuf:"bytes,2,opt,name=generate_troubleshooting_uri,json=generateTroubleshootingUri,proto3" json:"generate_troubleshooting_uri,omitempty"` } func (x *AccessDeniedPageSettings) Reset() { @@ -1264,14 +1264,14 @@ func (*AccessDeniedPageSettings) Descriptor() ([]byte, []int) { return file_google_cloud_iap_v1_service_proto_rawDescGZIP(), []int{17} } -func (x *AccessDeniedPageSettings) GetAccessDeniedPageUri() *wrapperspb.StringValue { +func (x *AccessDeniedPageSettings) GetAccessDeniedPageUri() *wrappers.StringValue { if x != nil { return x.AccessDeniedPageUri } return nil } -func (x *AccessDeniedPageSettings) GetGenerateTroubleshootingUri() *wrapperspb.BoolValue { +func (x *AccessDeniedPageSettings) GetGenerateTroubleshootingUri() *wrappers.BoolValue { if x != nil { return x.GenerateTroubleshootingUri } @@ -2560,16 +2560,16 @@ var file_google_cloud_iap_v1_service_proto_goTypes = []interface{}{ (*DeleteIdentityAwareProxyClientRequest)(nil), // 29: google.cloud.iap.v1.DeleteIdentityAwareProxyClientRequest (*Brand)(nil), // 30: google.cloud.iap.v1.Brand (*IdentityAwareProxyClient)(nil), // 31: google.cloud.iap.v1.IdentityAwareProxyClient - (*fieldmaskpb.FieldMask)(nil), // 32: google.protobuf.FieldMask - (*wrapperspb.StringValue)(nil), // 33: google.protobuf.StringValue - (*wrapperspb.BoolValue)(nil), // 34: google.protobuf.BoolValue - (*durationpb.Duration)(nil), // 35: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 32: google.protobuf.FieldMask + (*wrappers.StringValue)(nil), // 33: google.protobuf.StringValue + (*wrappers.BoolValue)(nil), // 34: google.protobuf.BoolValue + (*duration.Duration)(nil), // 35: google.protobuf.Duration (*v1.SetIamPolicyRequest)(nil), // 36: google.iam.v1.SetIamPolicyRequest (*v1.GetIamPolicyRequest)(nil), // 37: google.iam.v1.GetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 38: google.iam.v1.TestIamPermissionsRequest (*v1.Policy)(nil), // 39: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 40: google.iam.v1.TestIamPermissionsResponse - (*emptypb.Empty)(nil), // 41: google.protobuf.Empty + (*empty.Empty)(nil), // 41: google.protobuf.Empty } var file_google_cloud_iap_v1_service_proto_depIdxs = []int32{ 8, // 0: google.cloud.iap.v1.ListTunnelDestGroupsResponse.tunnel_dest_groups:type_name -> google.cloud.iap.v1.TunnelDestGroup @@ -3072,7 +3072,7 @@ type IdentityAwareProxyAdminServiceClient interface { // Retrieves an existing TunnelDestGroup. GetTunnelDestGroup(ctx context.Context, in *GetTunnelDestGroupRequest, opts ...grpc.CallOption) (*TunnelDestGroup, error) // Deletes a TunnelDestGroup. - DeleteTunnelDestGroup(ctx context.Context, in *DeleteTunnelDestGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTunnelDestGroup(ctx context.Context, in *DeleteTunnelDestGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a TunnelDestGroup. UpdateTunnelDestGroup(ctx context.Context, in *UpdateTunnelDestGroupRequest, opts ...grpc.CallOption) (*TunnelDestGroup, error) } @@ -3157,8 +3157,8 @@ func (c *identityAwareProxyAdminServiceClient) GetTunnelDestGroup(ctx context.Co return out, nil } -func (c *identityAwareProxyAdminServiceClient) DeleteTunnelDestGroup(ctx context.Context, in *DeleteTunnelDestGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *identityAwareProxyAdminServiceClient) DeleteTunnelDestGroup(ctx context.Context, in *DeleteTunnelDestGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.iap.v1.IdentityAwareProxyAdminService/DeleteTunnelDestGroup", in, out, opts...) if err != nil { return nil, err @@ -3206,7 +3206,7 @@ type IdentityAwareProxyAdminServiceServer interface { // Retrieves an existing TunnelDestGroup. GetTunnelDestGroup(context.Context, *GetTunnelDestGroupRequest) (*TunnelDestGroup, error) // Deletes a TunnelDestGroup. - DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*emptypb.Empty, error) + DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*empty.Empty, error) // Updates a TunnelDestGroup. UpdateTunnelDestGroup(context.Context, *UpdateTunnelDestGroupRequest) (*TunnelDestGroup, error) } @@ -3239,7 +3239,7 @@ func (*UnimplementedIdentityAwareProxyAdminServiceServer) CreateTunnelDestGroup( func (*UnimplementedIdentityAwareProxyAdminServiceServer) GetTunnelDestGroup(context.Context, *GetTunnelDestGroupRequest) (*TunnelDestGroup, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTunnelDestGroup not implemented") } -func (*UnimplementedIdentityAwareProxyAdminServiceServer) DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*emptypb.Empty, error) { +func (*UnimplementedIdentityAwareProxyAdminServiceServer) DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTunnelDestGroup not implemented") } func (*UnimplementedIdentityAwareProxyAdminServiceServer) UpdateTunnelDestGroup(context.Context, *UpdateTunnelDestGroupRequest) (*TunnelDestGroup, error) { @@ -3511,7 +3511,7 @@ type IdentityAwareProxyOAuthServiceClient interface { // Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing // obsolete clients, managing the number of clients in a given project, and // cleaning up after tests. Requires that the client is owned by IAP. - DeleteIdentityAwareProxyClient(ctx context.Context, in *DeleteIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteIdentityAwareProxyClient(ctx context.Context, in *DeleteIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type identityAwareProxyOAuthServiceClient struct { @@ -3585,8 +3585,8 @@ func (c *identityAwareProxyOAuthServiceClient) ResetIdentityAwareProxyClientSecr return out, nil } -func (c *identityAwareProxyOAuthServiceClient) DeleteIdentityAwareProxyClient(ctx context.Context, in *DeleteIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *identityAwareProxyOAuthServiceClient) DeleteIdentityAwareProxyClient(ctx context.Context, in *DeleteIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/DeleteIdentityAwareProxyClient", in, out, opts...) if err != nil { return nil, err @@ -3624,7 +3624,7 @@ type IdentityAwareProxyOAuthServiceServer interface { // Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing // obsolete clients, managing the number of clients in a given project, and // cleaning up after tests. Requires that the client is owned by IAP. - DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*emptypb.Empty, error) + DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*empty.Empty, error) } // UnimplementedIdentityAwareProxyOAuthServiceServer can be embedded to have forward compatible implementations. @@ -3652,7 +3652,7 @@ func (*UnimplementedIdentityAwareProxyOAuthServiceServer) GetIdentityAwareProxyC func (*UnimplementedIdentityAwareProxyOAuthServiceServer) ResetIdentityAwareProxyClientSecret(context.Context, *ResetIdentityAwareProxyClientSecretRequest) (*IdentityAwareProxyClient, error) { return nil, status.Errorf(codes.Unimplemented, "method ResetIdentityAwareProxyClientSecret not implemented") } -func (*UnimplementedIdentityAwareProxyOAuthServiceServer) DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*emptypb.Empty, error) { +func (*UnimplementedIdentityAwareProxyOAuthServiceServer) DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteIdentityAwareProxyClient not implemented") } diff --git a/iap/go.mod b/iap/go.mod index 63761bc115ea..ed736a213ada 100644 --- a/iap/go.mod +++ b/iap/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/iap go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/ids/apiv1/idspb/ids.pb.go b/ids/apiv1/idspb/ids.pb.go index 5bb7ac79e445..3f68d59da4f8 100644 --- a/ids/apiv1/idspb/ids.pb.go +++ b/ids/apiv1/idspb/ids.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/ids/v1/ids.proto package idspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -174,9 +174,9 @@ type Endpoint struct { // Output only. The name of the endpoint. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time timestamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels of the endpoint. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. The fully qualified URL of the network to which the IDS Endpoint is @@ -235,14 +235,14 @@ func (x *Endpoint) GetName() string { return "" } -func (x *Endpoint) GetCreateTime() *timestamppb.Timestamp { +func (x *Endpoint) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Endpoint) GetUpdateTime() *timestamppb.Timestamp { +func (x *Endpoint) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -680,9 +680,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -730,14 +730,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_ids_v1_ids_proto_rawDescGZIP(), []int{6} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1011,7 +1011,7 @@ var file_google_cloud_ids_v1_ids_proto_goTypes = []interface{}{ (*DeleteEndpointRequest)(nil), // 7: google.cloud.ids.v1.DeleteEndpointRequest (*OperationMetadata)(nil), // 8: google.cloud.ids.v1.OperationMetadata nil, // 9: google.cloud.ids.v1.Endpoint.LabelsEntry - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 11: google.longrunning.Operation } var file_google_cloud_ids_v1_ids_proto_depIdxs = []int32{ diff --git a/ids/go.mod b/ids/go.mod index 6bfd714cb586..a8106402a62b 100644 --- a/ids/go.mod +++ b/ids/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/internal/generated/snippets/bigquery/analyticshub/apiv1/snippet_metadata.google.cloud.bigquery.analyticshub.v1.json b/internal/generated/snippets/bigquery/analyticshub/apiv1/snippet_metadata.google.cloud.bigquery.analyticshub.v1.json index ad791a6e9fad..bf615ebfcbfe 100644 --- a/internal/generated/snippets/bigquery/analyticshub/apiv1/snippet_metadata.google.cloud.bigquery.analyticshub.v1.json +++ b/internal/generated/snippets/bigquery/analyticshub/apiv1/snippet_metadata.google.cloud.bigquery.analyticshub.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/analyticshub/apiv1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json b/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json index c34862a7c8f3..01ac8222e489 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json +++ b/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/connection/apiv1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json b/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json index 1d1a2b22779e..5df4243ae00f 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/connection/apiv1beta1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json index 7aa8d78d1cc7..a61e5224be56 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/dataexchange/apiv1beta1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/datapolicies/apiv1beta1/snippet_metadata.google.cloud.bigquery.datapolicies.v1beta1.json b/internal/generated/snippets/bigquery/datapolicies/apiv1beta1/snippet_metadata.google.cloud.bigquery.datapolicies.v1beta1.json index 4fa504980a47..f4577d97190f 100644 --- a/internal/generated/snippets/bigquery/datapolicies/apiv1beta1/snippet_metadata.google.cloud.bigquery.datapolicies.v1beta1.json +++ b/internal/generated/snippets/bigquery/datapolicies/apiv1beta1/snippet_metadata.google.cloud.bigquery.datapolicies.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/datapolicies/apiv1beta1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json b/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json index 7b1eeef83240..9f55e1cd90ed 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/datatransfer/apiv1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json b/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json index b3edc2651888..ae173a5bfef4 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json +++ b/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/migration/apiv2", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json b/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json index faec6755320c..cbd6d9d22ef0 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/migration/apiv2alpha", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json b/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json index d289f5e433a4..7dfe8f468ca0 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json +++ b/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/reservation/apiv1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json b/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json index 81a66aa42518..aae3111e85d8 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/reservation/apiv1beta1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json b/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json index c1d71bfa16bb..95c54d4b4612 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json +++ b/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/storage/apiv1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json b/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json index 959ec59f75e6..99d9f547de9d 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/storage/apiv1beta1", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json b/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json index 356ce9512204..f6a72b2d2ab8 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/bigquery/storage/apiv1beta2", - "version": "1.42.0", + "version": "1.43.0", "language": "GO", "apis": [ { diff --git a/iot/apiv1/iotpb/device_manager.pb.go b/iot/apiv1/iotpb/device_manager.pb.go index 625c3cb8fa76..08a1b4c20fdb 100644 --- a/iot/apiv1/iotpb/device_manager.pb.go +++ b/iot/apiv1/iotpb/device_manager.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/iot/v1/device_manager.proto package iotpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -219,7 +219,7 @@ type UpdateDeviceRegistryRequest struct { // are immutable or only set by the server. // Mutable top-level fields: `event_notification_config`, `http_config`, // `mqtt_config`, and `state_notification_config`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDeviceRegistryRequest) Reset() { @@ -261,7 +261,7 @@ func (x *UpdateDeviceRegistryRequest) GetDeviceRegistry() *DeviceRegistry { return nil } -func (x *UpdateDeviceRegistryRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDeviceRegistryRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -476,7 +476,7 @@ type GetDeviceRequest struct { // The fields of the `Device` resource to be returned in the response. If the // field mask is unset or empty, all fields are returned. Fields have to be // provided in snake_case format, for example: `last_heartbeat_time`. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` } func (x *GetDeviceRequest) Reset() { @@ -518,7 +518,7 @@ func (x *GetDeviceRequest) GetName() string { return "" } -func (x *GetDeviceRequest) GetFieldMask() *fieldmaskpb.FieldMask { +func (x *GetDeviceRequest) GetFieldMask() *field_mask.FieldMask { if x != nil { return x.FieldMask } @@ -540,7 +540,7 @@ type UpdateDeviceRequest struct { // The field mask must not be empty, and it must not contain fields that // are immutable or only set by the server. // Mutable top-level fields: `credentials`, `blocked`, and `metadata` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateDeviceRequest) Reset() { @@ -582,7 +582,7 @@ func (x *UpdateDeviceRequest) GetDevice() *Device { return nil } -func (x *UpdateDeviceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDeviceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -659,7 +659,7 @@ type ListDevicesRequest struct { // fields `id` and `num_id` are always returned, along with any // other fields specified in snake_case format, for example: // `last_heartbeat_time`. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FieldMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // Options related to gateways. GatewayListOptions *GatewayListOptions `protobuf:"bytes,6,opt,name=gateway_list_options,json=gatewayListOptions,proto3" json:"gateway_list_options,omitempty"` // The maximum number of devices to return in the response. If this value @@ -726,7 +726,7 @@ func (x *ListDevicesRequest) GetDeviceIds() []string { return nil } -func (x *ListDevicesRequest) GetFieldMask() *fieldmaskpb.FieldMask { +func (x *ListDevicesRequest) GetFieldMask() *field_mask.FieldMask { if x != nil { return x.FieldMask } @@ -2139,7 +2139,7 @@ var file_google_cloud_iot_v1_device_manager_proto_goTypes = []interface{}{ (*UnbindDeviceFromGatewayRequest)(nil), // 22: google.cloud.iot.v1.UnbindDeviceFromGatewayRequest (*UnbindDeviceFromGatewayResponse)(nil), // 23: google.cloud.iot.v1.UnbindDeviceFromGatewayResponse (*DeviceRegistry)(nil), // 24: google.cloud.iot.v1.DeviceRegistry - (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 25: google.protobuf.FieldMask (*Device)(nil), // 26: google.cloud.iot.v1.Device (GatewayType)(0), // 27: google.cloud.iot.v1.GatewayType (*DeviceConfig)(nil), // 28: google.cloud.iot.v1.DeviceConfig @@ -2147,7 +2147,7 @@ var file_google_cloud_iot_v1_device_manager_proto_goTypes = []interface{}{ (*v1.SetIamPolicyRequest)(nil), // 30: google.iam.v1.SetIamPolicyRequest (*v1.GetIamPolicyRequest)(nil), // 31: google.iam.v1.GetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 32: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 33: google.protobuf.Empty + (*empty.Empty)(nil), // 33: google.protobuf.Empty (*v1.Policy)(nil), // 34: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 35: google.iam.v1.TestIamPermissionsResponse } @@ -2551,7 +2551,7 @@ type DeviceManagerClient interface { // Updates a device registry configuration. UpdateDeviceRegistry(ctx context.Context, in *UpdateDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error) // Deletes a device registry configuration. - DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists device registries. ListDeviceRegistries(ctx context.Context, in *ListDeviceRegistriesRequest, opts ...grpc.CallOption) (*ListDeviceRegistriesResponse, error) // Creates a device in a device registry. @@ -2561,7 +2561,7 @@ type DeviceManagerClient interface { // Updates a device. UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*Device, error) // Deletes a device. - DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // List devices in a device registry. ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) // Modifies the configuration for the device, which is eventually sent from @@ -2641,8 +2641,8 @@ func (c *deviceManagerClient) UpdateDeviceRegistry(ctx context.Context, in *Upda return out, nil } -func (c *deviceManagerClient) DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *deviceManagerClient) DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry", in, out, opts...) if err != nil { return nil, err @@ -2686,8 +2686,8 @@ func (c *deviceManagerClient) UpdateDevice(ctx context.Context, in *UpdateDevice return out, nil } -func (c *deviceManagerClient) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *deviceManagerClient) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/DeleteDevice", in, out, opts...) if err != nil { return nil, err @@ -2794,7 +2794,7 @@ type DeviceManagerServer interface { // Updates a device registry configuration. UpdateDeviceRegistry(context.Context, *UpdateDeviceRegistryRequest) (*DeviceRegistry, error) // Deletes a device registry configuration. - DeleteDeviceRegistry(context.Context, *DeleteDeviceRegistryRequest) (*emptypb.Empty, error) + DeleteDeviceRegistry(context.Context, *DeleteDeviceRegistryRequest) (*empty.Empty, error) // Lists device registries. ListDeviceRegistries(context.Context, *ListDeviceRegistriesRequest) (*ListDeviceRegistriesResponse, error) // Creates a device in a device registry. @@ -2804,7 +2804,7 @@ type DeviceManagerServer interface { // Updates a device. UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error) // Deletes a device. - DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) + DeleteDevice(context.Context, *DeleteDeviceRequest) (*empty.Empty, error) // List devices in a device registry. ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) // Modifies the configuration for the device, which is eventually sent from @@ -2862,7 +2862,7 @@ func (*UnimplementedDeviceManagerServer) GetDeviceRegistry(context.Context, *Get func (*UnimplementedDeviceManagerServer) UpdateDeviceRegistry(context.Context, *UpdateDeviceRegistryRequest) (*DeviceRegistry, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateDeviceRegistry not implemented") } -func (*UnimplementedDeviceManagerServer) DeleteDeviceRegistry(context.Context, *DeleteDeviceRegistryRequest) (*emptypb.Empty, error) { +func (*UnimplementedDeviceManagerServer) DeleteDeviceRegistry(context.Context, *DeleteDeviceRegistryRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDeviceRegistry not implemented") } func (*UnimplementedDeviceManagerServer) ListDeviceRegistries(context.Context, *ListDeviceRegistriesRequest) (*ListDeviceRegistriesResponse, error) { @@ -2877,7 +2877,7 @@ func (*UnimplementedDeviceManagerServer) GetDevice(context.Context, *GetDeviceRe func (*UnimplementedDeviceManagerServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateDevice not implemented") } -func (*UnimplementedDeviceManagerServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) { +func (*UnimplementedDeviceManagerServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented") } func (*UnimplementedDeviceManagerServer) ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) { diff --git a/iot/apiv1/iotpb/resources.pb.go b/iot/apiv1/iotpb/resources.pb.go index 16a0a423d7c2..e51477a75376 100644 --- a/iot/apiv1/iotpb/resources.pb.go +++ b/iot/apiv1/iotpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/iot/v1/resources.proto package iotpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -485,22 +485,22 @@ type Device struct { // send `PINGREQ` messages if the connection is idle, and no other messages // have been sent. Timestamps are periodically collected and written to // storage; they may be stale by a few minutes. - LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` + LastHeartbeatTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` // [Output only] The last time a telemetry event was received. Timestamps are // periodically collected and written to storage; they may be stale by a few // minutes. - LastEventTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_event_time,json=lastEventTime,proto3" json:"last_event_time,omitempty"` + LastEventTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_event_time,json=lastEventTime,proto3" json:"last_event_time,omitempty"` // [Output only] The last time a state event was received. Timestamps are // periodically collected and written to storage; they may be stale by a few // minutes. - LastStateTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=last_state_time,json=lastStateTime,proto3" json:"last_state_time,omitempty"` + LastStateTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=last_state_time,json=lastStateTime,proto3" json:"last_state_time,omitempty"` // [Output only] The last time a cloud-to-device config version acknowledgment // was received from the device. This field is only for configurations // sent through MQTT. - LastConfigAckTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=last_config_ack_time,json=lastConfigAckTime,proto3" json:"last_config_ack_time,omitempty"` + LastConfigAckTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=last_config_ack_time,json=lastConfigAckTime,proto3" json:"last_config_ack_time,omitempty"` // [Output only] The last time a cloud-to-device config version was sent to // the device. - LastConfigSendTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=last_config_send_time,json=lastConfigSendTime,proto3" json:"last_config_send_time,omitempty"` + LastConfigSendTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=last_config_send_time,json=lastConfigSendTime,proto3" json:"last_config_send_time,omitempty"` // If a device is blocked, connections or requests from this device will fail. // Can be used to temporarily prevent the device from connecting if, for // example, the sensor is generating bad data and needs maintenance. @@ -508,7 +508,7 @@ type Device struct { // [Output only] The time the most recent error occurred, such as a failure to // publish to Cloud Pub/Sub. This field is the timestamp of // 'last_error_status'. - LastErrorTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_error_time,json=lastErrorTime,proto3" json:"last_error_time,omitempty"` + LastErrorTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_error_time,json=lastErrorTime,proto3" json:"last_error_time,omitempty"` // [Output only] The error message of the most recent error, such as a failure // to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this // field. If no errors have occurred, this field has an empty message @@ -606,35 +606,35 @@ func (x *Device) GetCredentials() []*DeviceCredential { return nil } -func (x *Device) GetLastHeartbeatTime() *timestamppb.Timestamp { +func (x *Device) GetLastHeartbeatTime() *timestamp.Timestamp { if x != nil { return x.LastHeartbeatTime } return nil } -func (x *Device) GetLastEventTime() *timestamppb.Timestamp { +func (x *Device) GetLastEventTime() *timestamp.Timestamp { if x != nil { return x.LastEventTime } return nil } -func (x *Device) GetLastStateTime() *timestamppb.Timestamp { +func (x *Device) GetLastStateTime() *timestamp.Timestamp { if x != nil { return x.LastStateTime } return nil } -func (x *Device) GetLastConfigAckTime() *timestamppb.Timestamp { +func (x *Device) GetLastConfigAckTime() *timestamp.Timestamp { if x != nil { return x.LastConfigAckTime } return nil } -func (x *Device) GetLastConfigSendTime() *timestamppb.Timestamp { +func (x *Device) GetLastConfigSendTime() *timestamp.Timestamp { if x != nil { return x.LastConfigSendTime } @@ -648,7 +648,7 @@ func (x *Device) GetBlocked() bool { return false } -func (x *Device) GetLastErrorTime() *timestamppb.Timestamp { +func (x *Device) GetLastErrorTime() *timestamp.Timestamp { if x != nil { return x.LastErrorTime } @@ -712,7 +712,7 @@ type GatewayConfig struct { LastAccessedGatewayId string `protobuf:"bytes,3,opt,name=last_accessed_gateway_id,json=lastAccessedGatewayId,proto3" json:"last_accessed_gateway_id,omitempty"` // [Output only] The most recent time at which the device accessed the gateway // specified in `last_accessed_gateway`. - LastAccessedGatewayTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_accessed_gateway_time,json=lastAccessedGatewayTime,proto3" json:"last_accessed_gateway_time,omitempty"` + LastAccessedGatewayTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_accessed_gateway_time,json=lastAccessedGatewayTime,proto3" json:"last_accessed_gateway_time,omitempty"` } func (x *GatewayConfig) Reset() { @@ -768,7 +768,7 @@ func (x *GatewayConfig) GetLastAccessedGatewayId() string { return "" } -func (x *GatewayConfig) GetLastAccessedGatewayTime() *timestamppb.Timestamp { +func (x *GatewayConfig) GetLastAccessedGatewayTime() *timestamp.Timestamp { if x != nil { return x.LastAccessedGatewayTime } @@ -1208,9 +1208,9 @@ type X509CertificateDetails struct { // The entity the certificate and public key belong to. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // The time the certificate becomes valid. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The time the certificate becomes invalid. - ExpiryTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` + ExpiryTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` // The algorithm used to sign the certificate. SignatureAlgorithm string `protobuf:"bytes,5,opt,name=signature_algorithm,json=signatureAlgorithm,proto3" json:"signature_algorithm,omitempty"` // The type of public key in the certificate. @@ -1263,14 +1263,14 @@ func (x *X509CertificateDetails) GetSubject() string { return "" } -func (x *X509CertificateDetails) GetStartTime() *timestamppb.Timestamp { +func (x *X509CertificateDetails) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *X509CertificateDetails) GetExpiryTime() *timestamppb.Timestamp { +func (x *X509CertificateDetails) GetExpiryTime() *timestamp.Timestamp { if x != nil { return x.ExpiryTime } @@ -1373,7 +1373,7 @@ type DeviceCredential struct { // [Optional] The time at which this credential becomes invalid. This // credential will be ignored for new client authentication requests after // this timestamp; however, it will not be automatically deleted. - ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` } func (x *DeviceCredential) Reset() { @@ -1422,7 +1422,7 @@ func (x *DeviceCredential) GetPublicKey() *PublicKeyCredential { return nil } -func (x *DeviceCredential) GetExpirationTime() *timestamppb.Timestamp { +func (x *DeviceCredential) GetExpirationTime() *timestamp.Timestamp { if x != nil { return x.ExpirationTime } @@ -1521,7 +1521,7 @@ type DeviceConfig struct { Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // [Output only] The time at which this configuration version was updated in // Cloud IoT Core. This timestamp is set by the server. - CloudUpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=cloud_update_time,json=cloudUpdateTime,proto3" json:"cloud_update_time,omitempty"` + CloudUpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=cloud_update_time,json=cloudUpdateTime,proto3" json:"cloud_update_time,omitempty"` // [Output only] The time at which Cloud IoT Core received the // acknowledgment from the device, indicating that the device has received // this configuration version. If this field is not present, the device has @@ -1531,7 +1531,7 @@ type DeviceConfig struct { // connection, only the latest version is sent to the device. Some // versions may never be sent to the device, and therefore are never // acknowledged. This timestamp is set by Cloud IoT Core. - DeviceAckTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=device_ack_time,json=deviceAckTime,proto3" json:"device_ack_time,omitempty"` + DeviceAckTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=device_ack_time,json=deviceAckTime,proto3" json:"device_ack_time,omitempty"` // The device configuration data. BinaryData []byte `protobuf:"bytes,4,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` } @@ -1575,14 +1575,14 @@ func (x *DeviceConfig) GetVersion() int64 { return 0 } -func (x *DeviceConfig) GetCloudUpdateTime() *timestamppb.Timestamp { +func (x *DeviceConfig) GetCloudUpdateTime() *timestamp.Timestamp { if x != nil { return x.CloudUpdateTime } return nil } -func (x *DeviceConfig) GetDeviceAckTime() *timestamppb.Timestamp { +func (x *DeviceConfig) GetDeviceAckTime() *timestamp.Timestamp { if x != nil { return x.DeviceAckTime } @@ -1604,7 +1604,7 @@ type DeviceState struct { // [Output only] The time at which this state version was updated in Cloud // IoT Core. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The device state data. BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` } @@ -1641,7 +1641,7 @@ func (*DeviceState) Descriptor() ([]byte, []int) { return file_google_cloud_iot_v1_resources_proto_rawDescGZIP(), []int{13} } -func (x *DeviceState) GetUpdateTime() *timestamppb.Timestamp { +func (x *DeviceState) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1990,7 +1990,7 @@ var file_google_cloud_iot_v1_resources_proto_goTypes = []interface{}{ (*DeviceConfig)(nil), // 19: google.cloud.iot.v1.DeviceConfig (*DeviceState)(nil), // 20: google.cloud.iot.v1.DeviceState nil, // 21: google.cloud.iot.v1.Device.MetadataEntry - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 22: google.protobuf.Timestamp (*status.Status)(nil), // 23: google.rpc.Status } var file_google_cloud_iot_v1_resources_proto_depIdxs = []int32{ diff --git a/iot/go.mod b/iot/go.mod index ee7045c26ade..7483e10b700c 100644 --- a/iot/go.mod +++ b/iot/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/kms/apiv1/kmspb/ekm_service.pb.go b/kms/apiv1/kmspb/ekm_service.pb.go index 14b54a6e4da0..66a6fcf210f4 100644 --- a/kms/apiv1/kmspb/ekm_service.pb.go +++ b/kms/apiv1/kmspb/ekm_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/kms/v1/ekm_service.proto package kmspb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -343,7 +343,7 @@ type UpdateEkmConnectionRequest struct { // values. EkmConnection *EkmConnection `protobuf:"bytes,1,opt,name=ekm_connection,json=ekmConnection,proto3" json:"ekm_connection,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEkmConnectionRequest) Reset() { @@ -385,7 +385,7 @@ func (x *UpdateEkmConnectionRequest) GetEkmConnection() *EkmConnection { return nil } -func (x *UpdateEkmConnectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEkmConnectionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -414,10 +414,10 @@ type Certificate struct { SubjectAlternativeDnsNames []string `protobuf:"bytes,5,rep,name=subject_alternative_dns_names,json=subjectAlternativeDnsNames,proto3" json:"subject_alternative_dns_names,omitempty"` // Output only. The certificate is not valid before this time. Only present if // [parsed][google.cloud.kms.v1.Certificate.parsed] is true. - NotBeforeTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=not_before_time,json=notBeforeTime,proto3" json:"not_before_time,omitempty"` + NotBeforeTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=not_before_time,json=notBeforeTime,proto3" json:"not_before_time,omitempty"` // Output only. The certificate is not valid after this time. Only present if // [parsed][google.cloud.kms.v1.Certificate.parsed] is true. - NotAfterTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=not_after_time,json=notAfterTime,proto3" json:"not_after_time,omitempty"` + NotAfterTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=not_after_time,json=notAfterTime,proto3" json:"not_after_time,omitempty"` // Output only. The certificate serial number as a hex string. Only present if // [parsed][google.cloud.kms.v1.Certificate.parsed] is true. SerialNumber string `protobuf:"bytes,8,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` @@ -493,14 +493,14 @@ func (x *Certificate) GetSubjectAlternativeDnsNames() []string { return nil } -func (x *Certificate) GetNotBeforeTime() *timestamppb.Timestamp { +func (x *Certificate) GetNotBeforeTime() *timestamp.Timestamp { if x != nil { return x.NotBeforeTime } return nil } -func (x *Certificate) GetNotAfterTime() *timestamppb.Timestamp { +func (x *Certificate) GetNotAfterTime() *timestamp.Timestamp { if x != nil { return x.NotAfterTime } @@ -540,7 +540,7 @@ type EkmConnection struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which the // [EkmConnection][google.cloud.kms.v1.EkmConnection] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // A list of // [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where // the EKM can be reached. There should be one ServiceResolver per EKM @@ -593,7 +593,7 @@ func (x *EkmConnection) GetName() string { return "" } -func (x *EkmConnection) GetCreateTime() *timestamppb.Timestamp { +func (x *EkmConnection) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -944,8 +944,8 @@ var file_google_cloud_kms_v1_ekm_service_proto_goTypes = []interface{}{ (*Certificate)(nil), // 5: google.cloud.kms.v1.Certificate (*EkmConnection)(nil), // 6: google.cloud.kms.v1.EkmConnection (*EkmConnection_ServiceResolver)(nil), // 7: google.cloud.kms.v1.EkmConnection.ServiceResolver - (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 8: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_google_cloud_kms_v1_ekm_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.kms.v1.ListEkmConnectionsResponse.ekm_connections:type_name -> google.cloud.kms.v1.EkmConnection diff --git a/kms/apiv1/kmspb/resources.pb.go b/kms/apiv1/kmspb/resources.pb.go index 8f565f7a4d45..49dbbe7520bd 100644 --- a/kms/apiv1/kmspb/resources.pb.go +++ b/kms/apiv1/kmspb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/kms/v1/resources.proto package kmspb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -720,7 +720,7 @@ type KeyRing struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] // was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *KeyRing) Reset() { @@ -762,7 +762,7 @@ func (x *KeyRing) GetName() string { return "" } -func (x *KeyRing) GetCreateTime() *timestamppb.Timestamp { +func (x *KeyRing) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -803,7 +803,7 @@ type CryptoKey struct { Purpose CryptoKey_CryptoKeyPurpose `protobuf:"varint,3,opt,name=purpose,proto3,enum=google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose" json:"purpose,omitempty"` // Output only. The time at which this // [CryptoKey][google.cloud.kms.v1.CryptoKey] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time], // the Key Management Service will automatically: // @@ -820,7 +820,7 @@ type CryptoKey struct { // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] // support automatic rotation. For other keys, this field must be omitted. - NextRotationTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` + NextRotationTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` // Controls the rate of automatic rotation. // // Types that are assignable to RotationSchedule: @@ -844,7 +844,7 @@ type CryptoKey struct { // state before transitioning to // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]. // If not specified at creation time, the default duration is 24 hours. - DestroyScheduledDuration *durationpb.Duration `protobuf:"bytes,14,opt,name=destroy_scheduled_duration,json=destroyScheduledDuration,proto3" json:"destroy_scheduled_duration,omitempty"` + DestroyScheduledDuration *duration.Duration `protobuf:"bytes,14,opt,name=destroy_scheduled_duration,json=destroyScheduledDuration,proto3" json:"destroy_scheduled_duration,omitempty"` // Immutable. The resource name of the backend environment where the key // material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] // associated with this [CryptoKey][google.cloud.kms.v1.CryptoKey] reside and @@ -911,14 +911,14 @@ func (x *CryptoKey) GetPurpose() CryptoKey_CryptoKeyPurpose { return CryptoKey_CRYPTO_KEY_PURPOSE_UNSPECIFIED } -func (x *CryptoKey) GetCreateTime() *timestamppb.Timestamp { +func (x *CryptoKey) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CryptoKey) GetNextRotationTime() *timestamppb.Timestamp { +func (x *CryptoKey) GetNextRotationTime() *timestamp.Timestamp { if x != nil { return x.NextRotationTime } @@ -932,7 +932,7 @@ func (m *CryptoKey) GetRotationSchedule() isCryptoKey_RotationSchedule { return nil } -func (x *CryptoKey) GetRotationPeriod() *durationpb.Duration { +func (x *CryptoKey) GetRotationPeriod() *duration.Duration { if x, ok := x.GetRotationSchedule().(*CryptoKey_RotationPeriod); ok { return x.RotationPeriod } @@ -960,7 +960,7 @@ func (x *CryptoKey) GetImportOnly() bool { return false } -func (x *CryptoKey) GetDestroyScheduledDuration() *durationpb.Duration { +func (x *CryptoKey) GetDestroyScheduledDuration() *duration.Duration { if x != nil { return x.DestroyScheduledDuration } @@ -991,7 +991,7 @@ type CryptoKey_RotationPeriod struct { // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] // support automatic rotation. For other keys, this field must be omitted. - RotationPeriod *durationpb.Duration `protobuf:"bytes,8,opt,name=rotation_period,json=rotationPeriod,proto3,oneof"` + RotationPeriod *duration.Duration `protobuf:"bytes,8,opt,name=rotation_period,json=rotationPeriod,proto3,oneof"` } func (*CryptoKey_RotationPeriod) isCryptoKey_RotationSchedule() {} @@ -1181,22 +1181,22 @@ type CryptoKeyVersion struct { Attestation *KeyOperationAttestation `protobuf:"bytes,8,opt,name=attestation,proto3" json:"attestation,omitempty"` // Output only. The time at which this // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time this // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was // generated. - GenerateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"` + GenerateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"` // Output only. The time this // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is // scheduled for destruction. Only present if // [state][google.cloud.kms.v1.CryptoKeyVersion.state] is // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]. - DestroyTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"` + DestroyTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"` // Output only. The time this CryptoKeyVersion's key material was // destroyed. Only present if // [state][google.cloud.kms.v1.CryptoKeyVersion.state] is // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]. - DestroyEventTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=destroy_event_time,json=destroyEventTime,proto3" json:"destroy_event_time,omitempty"` + DestroyEventTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=destroy_event_time,json=destroyEventTime,proto3" json:"destroy_event_time,omitempty"` // Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] // used in the most recent import of this // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only present if @@ -1205,7 +1205,7 @@ type CryptoKeyVersion struct { // Output only. The time at which this // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was // most recently imported. - ImportTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=import_time,json=importTime,proto3" json:"import_time,omitempty"` + ImportTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=import_time,json=importTime,proto3" json:"import_time,omitempty"` // Output only. The root cause of the most recent import failure. Only present // if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is // [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED]. @@ -1290,28 +1290,28 @@ func (x *CryptoKeyVersion) GetAttestation() *KeyOperationAttestation { return nil } -func (x *CryptoKeyVersion) GetCreateTime() *timestamppb.Timestamp { +func (x *CryptoKeyVersion) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CryptoKeyVersion) GetGenerateTime() *timestamppb.Timestamp { +func (x *CryptoKeyVersion) GetGenerateTime() *timestamp.Timestamp { if x != nil { return x.GenerateTime } return nil } -func (x *CryptoKeyVersion) GetDestroyTime() *timestamppb.Timestamp { +func (x *CryptoKeyVersion) GetDestroyTime() *timestamp.Timestamp { if x != nil { return x.DestroyTime } return nil } -func (x *CryptoKeyVersion) GetDestroyEventTime() *timestamppb.Timestamp { +func (x *CryptoKeyVersion) GetDestroyEventTime() *timestamp.Timestamp { if x != nil { return x.DestroyEventTime } @@ -1325,7 +1325,7 @@ func (x *CryptoKeyVersion) GetImportJob() string { return "" } -func (x *CryptoKeyVersion) GetImportTime() *timestamppb.Timestamp { +func (x *CryptoKeyVersion) GetImportTime() *timestamp.Timestamp { if x != nil { return x.ImportTime } @@ -1385,7 +1385,7 @@ type PublicKey struct { // that support this type. // // NOTE: This field is in Beta. - PemCrc32C *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=pem_crc32c,json=pemCrc32c,proto3" json:"pem_crc32c,omitempty"` + PemCrc32C *wrappers.Int64Value `protobuf:"bytes,3,opt,name=pem_crc32c,json=pemCrc32c,proto3" json:"pem_crc32c,omitempty"` // The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. // Provided here for verification. @@ -1443,7 +1443,7 @@ func (x *PublicKey) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm { return CryptoKeyVersion_CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED } -func (x *PublicKey) GetPemCrc32C() *wrapperspb.Int64Value { +func (x *PublicKey) GetPemCrc32C() *wrappers.Int64Value { if x != nil { return x.PemCrc32C } @@ -1518,18 +1518,18 @@ type ImportJob struct { ProtectionLevel ProtectionLevel `protobuf:"varint,9,opt,name=protection_level,json=protectionLevel,proto3,enum=google.cloud.kms.v1.ProtectionLevel" json:"protection_level,omitempty"` // Output only. The time at which this // [ImportJob][google.cloud.kms.v1.ImportJob] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key // material was generated. - GenerateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"` + GenerateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"` // Output only. The time at which this // [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and // can no longer be used to import key material. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] // expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is // [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED]. - ExpireEventTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expire_event_time,json=expireEventTime,proto3" json:"expire_event_time,omitempty"` + ExpireEventTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expire_event_time,json=expireEventTime,proto3" json:"expire_event_time,omitempty"` // Output only. The current state of the // [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used. State ImportJob_ImportJobState `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.kms.v1.ImportJob_ImportJobState" json:"state,omitempty"` @@ -1599,28 +1599,28 @@ func (x *ImportJob) GetProtectionLevel() ProtectionLevel { return ProtectionLevel_PROTECTION_LEVEL_UNSPECIFIED } -func (x *ImportJob) GetCreateTime() *timestamppb.Timestamp { +func (x *ImportJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ImportJob) GetGenerateTime() *timestamppb.Timestamp { +func (x *ImportJob) GetGenerateTime() *timestamp.Timestamp { if x != nil { return x.GenerateTime } return nil } -func (x *ImportJob) GetExpireTime() *timestamppb.Timestamp { +func (x *ImportJob) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } return nil } -func (x *ImportJob) GetExpireEventTime() *timestamppb.Timestamp { +func (x *ImportJob) GetExpireEventTime() *timestamp.Timestamp { if x != nil { return x.ExpireEventTime } @@ -2284,9 +2284,9 @@ var file_google_cloud_kms_v1_resources_proto_goTypes = []interface{}{ nil, // 16: google.cloud.kms.v1.CryptoKey.LabelsEntry (*KeyOperationAttestation_CertificateChains)(nil), // 17: google.cloud.kms.v1.KeyOperationAttestation.CertificateChains (*ImportJob_WrappingPublicKey)(nil), // 18: google.cloud.kms.v1.ImportJob.WrappingPublicKey - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 20: google.protobuf.Duration - (*wrapperspb.Int64Value)(nil), // 21: google.protobuf.Int64Value + (*timestamp.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*duration.Duration)(nil), // 20: google.protobuf.Duration + (*wrappers.Int64Value)(nil), // 21: google.protobuf.Int64Value } var file_google_cloud_kms_v1_resources_proto_depIdxs = []int32{ 19, // 0: google.cloud.kms.v1.KeyRing.create_time:type_name -> google.protobuf.Timestamp diff --git a/kms/apiv1/kmspb/service.pb.go b/kms/apiv1/kmspb/service.pb.go index 40f03c383500..31212344ed40 100644 --- a/kms/apiv1/kmspb/service.pb.go +++ b/kms/apiv1/kmspb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/kms/v1/service.proto package kmspb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -1468,7 +1468,7 @@ type UpdateCryptoKeyRequest struct { // Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values. CryptoKey *CryptoKey `protobuf:"bytes,1,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCryptoKeyRequest) Reset() { @@ -1510,7 +1510,7 @@ func (x *UpdateCryptoKeyRequest) GetCryptoKey() *CryptoKey { return nil } -func (x *UpdateCryptoKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCryptoKeyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1528,7 +1528,7 @@ type UpdateCryptoKeyVersionRequest struct { // updated values. CryptoKeyVersion *CryptoKeyVersion `protobuf:"bytes,1,opt,name=crypto_key_version,json=cryptoKeyVersion,proto3" json:"crypto_key_version,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCryptoKeyVersionRequest) Reset() { @@ -1570,7 +1570,7 @@ func (x *UpdateCryptoKeyVersionRequest) GetCryptoKeyVersion() *CryptoKeyVersion return nil } -func (x *UpdateCryptoKeyVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCryptoKeyVersionRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1796,7 +1796,7 @@ type EncryptRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - PlaintextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` + PlaintextCrc32C *wrappers.Int64Value `protobuf:"bytes,7,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` // Optional. An optional CRC32C checksum of the // [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data]. // If specified, @@ -1816,7 +1816,7 @@ type EncryptRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - AdditionalAuthenticatedDataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,8,opt,name=additional_authenticated_data_crc32c,json=additionalAuthenticatedDataCrc32c,proto3" json:"additional_authenticated_data_crc32c,omitempty"` + AdditionalAuthenticatedDataCrc32C *wrappers.Int64Value `protobuf:"bytes,8,opt,name=additional_authenticated_data_crc32c,json=additionalAuthenticatedDataCrc32c,proto3" json:"additional_authenticated_data_crc32c,omitempty"` } func (x *EncryptRequest) Reset() { @@ -1872,14 +1872,14 @@ func (x *EncryptRequest) GetAdditionalAuthenticatedData() []byte { return nil } -func (x *EncryptRequest) GetPlaintextCrc32C() *wrapperspb.Int64Value { +func (x *EncryptRequest) GetPlaintextCrc32C() *wrappers.Int64Value { if x != nil { return x.PlaintextCrc32C } return nil } -func (x *EncryptRequest) GetAdditionalAuthenticatedDataCrc32C() *wrapperspb.Int64Value { +func (x *EncryptRequest) GetAdditionalAuthenticatedDataCrc32C() *wrappers.Int64Value { if x != nil { return x.AdditionalAuthenticatedDataCrc32C } @@ -1922,7 +1922,7 @@ type DecryptRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - CiphertextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` + CiphertextCrc32C *wrappers.Int64Value `protobuf:"bytes,5,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` // Optional. An optional CRC32C checksum of the // [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]. // If specified, @@ -1942,7 +1942,7 @@ type DecryptRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - AdditionalAuthenticatedDataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,6,opt,name=additional_authenticated_data_crc32c,json=additionalAuthenticatedDataCrc32c,proto3" json:"additional_authenticated_data_crc32c,omitempty"` + AdditionalAuthenticatedDataCrc32C *wrappers.Int64Value `protobuf:"bytes,6,opt,name=additional_authenticated_data_crc32c,json=additionalAuthenticatedDataCrc32c,proto3" json:"additional_authenticated_data_crc32c,omitempty"` } func (x *DecryptRequest) Reset() { @@ -1998,14 +1998,14 @@ func (x *DecryptRequest) GetAdditionalAuthenticatedData() []byte { return nil } -func (x *DecryptRequest) GetCiphertextCrc32C() *wrapperspb.Int64Value { +func (x *DecryptRequest) GetCiphertextCrc32C() *wrappers.Int64Value { if x != nil { return x.CiphertextCrc32C } return nil } -func (x *DecryptRequest) GetAdditionalAuthenticatedDataCrc32C() *wrapperspb.Int64Value { +func (x *DecryptRequest) GetAdditionalAuthenticatedDataCrc32C() *wrappers.Int64Value { if x != nil { return x.AdditionalAuthenticatedDataCrc32C } @@ -2050,7 +2050,7 @@ type AsymmetricSignRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - DigestCrc32C *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=digest_crc32c,json=digestCrc32c,proto3" json:"digest_crc32c,omitempty"` + DigestCrc32C *wrappers.Int64Value `protobuf:"bytes,4,opt,name=digest_crc32c,json=digestCrc32c,proto3" json:"digest_crc32c,omitempty"` // Optional. The data to sign. // It can't be supplied if // [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest] @@ -2075,7 +2075,7 @@ type AsymmetricSignRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - DataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` + DataCrc32C *wrappers.Int64Value `protobuf:"bytes,7,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` } func (x *AsymmetricSignRequest) Reset() { @@ -2124,7 +2124,7 @@ func (x *AsymmetricSignRequest) GetDigest() *Digest { return nil } -func (x *AsymmetricSignRequest) GetDigestCrc32C() *wrapperspb.Int64Value { +func (x *AsymmetricSignRequest) GetDigestCrc32C() *wrappers.Int64Value { if x != nil { return x.DigestCrc32C } @@ -2138,7 +2138,7 @@ func (x *AsymmetricSignRequest) GetData() []byte { return nil } -func (x *AsymmetricSignRequest) GetDataCrc32C() *wrapperspb.Int64Value { +func (x *AsymmetricSignRequest) GetDataCrc32C() *wrappers.Int64Value { if x != nil { return x.DataCrc32C } @@ -2179,7 +2179,7 @@ type AsymmetricDecryptRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - CiphertextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` + CiphertextCrc32C *wrappers.Int64Value `protobuf:"bytes,4,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` } func (x *AsymmetricDecryptRequest) Reset() { @@ -2228,7 +2228,7 @@ func (x *AsymmetricDecryptRequest) GetCiphertext() []byte { return nil } -func (x *AsymmetricDecryptRequest) GetCiphertextCrc32C() *wrapperspb.Int64Value { +func (x *AsymmetricDecryptRequest) GetCiphertextCrc32C() *wrappers.Int64Value { if x != nil { return x.CiphertextCrc32C } @@ -2266,7 +2266,7 @@ type MacSignRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - DataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` + DataCrc32C *wrappers.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` } func (x *MacSignRequest) Reset() { @@ -2315,7 +2315,7 @@ func (x *MacSignRequest) GetData() []byte { return nil } -func (x *MacSignRequest) GetDataCrc32C() *wrapperspb.Int64Value { +func (x *MacSignRequest) GetDataCrc32C() *wrappers.Int64Value { if x != nil { return x.DataCrc32C } @@ -2355,7 +2355,7 @@ type MacVerifyRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - DataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` + DataCrc32C *wrappers.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` // Required. The signature to verify. Mac []byte `protobuf:"bytes,4,opt,name=mac,proto3" json:"mac,omitempty"` // Optional. An optional CRC32C checksum of the @@ -2374,7 +2374,7 @@ type MacVerifyRequest struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - MacCrc32C *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=mac_crc32c,json=macCrc32c,proto3" json:"mac_crc32c,omitempty"` + MacCrc32C *wrappers.Int64Value `protobuf:"bytes,5,opt,name=mac_crc32c,json=macCrc32c,proto3" json:"mac_crc32c,omitempty"` } func (x *MacVerifyRequest) Reset() { @@ -2423,7 +2423,7 @@ func (x *MacVerifyRequest) GetData() []byte { return nil } -func (x *MacVerifyRequest) GetDataCrc32C() *wrapperspb.Int64Value { +func (x *MacVerifyRequest) GetDataCrc32C() *wrappers.Int64Value { if x != nil { return x.DataCrc32C } @@ -2437,7 +2437,7 @@ func (x *MacVerifyRequest) GetMac() []byte { return nil } -func (x *MacVerifyRequest) GetMacCrc32C() *wrapperspb.Int64Value { +func (x *MacVerifyRequest) GetMacCrc32C() *wrappers.Int64Value { if x != nil { return x.MacCrc32C } @@ -2544,7 +2544,7 @@ type EncryptResponse struct { // across different languages. However, it is a non-negative integer, which // will never exceed 2^32-1, and can be safely downconverted to uint32 in // languages that support this type. - CiphertextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` + CiphertextCrc32C *wrappers.Int64Value `protobuf:"bytes,4,opt,name=ciphertext_crc32c,json=ciphertextCrc32c,proto3" json:"ciphertext_crc32c,omitempty"` // Integrity verification field. A flag indicating whether // [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c] // was received by @@ -2627,7 +2627,7 @@ func (x *EncryptResponse) GetCiphertext() []byte { return nil } -func (x *EncryptResponse) GetCiphertextCrc32C() *wrapperspb.Int64Value { +func (x *EncryptResponse) GetCiphertextCrc32C() *wrappers.Int64Value { if x != nil { return x.CiphertextCrc32C } @@ -2682,7 +2682,7 @@ type DecryptResponse struct { // languages. However, it is a non-negative integer, which will never exceed // 2^32-1, and can be safely downconverted to uint32 in languages that support // this type. - PlaintextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` + PlaintextCrc32C *wrappers.Int64Value `protobuf:"bytes,2,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` // Whether the Decryption was performed using the primary key version. UsedPrimary bool `protobuf:"varint,3,opt,name=used_primary,json=usedPrimary,proto3" json:"used_primary,omitempty"` // The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the @@ -2730,7 +2730,7 @@ func (x *DecryptResponse) GetPlaintext() []byte { return nil } -func (x *DecryptResponse) GetPlaintextCrc32C() *wrapperspb.Int64Value { +func (x *DecryptResponse) GetPlaintextCrc32C() *wrappers.Int64Value { if x != nil { return x.PlaintextCrc32C } @@ -2773,7 +2773,7 @@ type AsymmetricSignResponse struct { // across different languages. However, it is a non-negative integer, which // will never exceed 2^32-1, and can be safely downconverted to uint32 in // languages that support this type. - SignatureCrc32C *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=signature_crc32c,json=signatureCrc32c,proto3" json:"signature_crc32c,omitempty"` + SignatureCrc32C *wrappers.Int64Value `protobuf:"bytes,2,opt,name=signature_crc32c,json=signatureCrc32c,proto3" json:"signature_crc32c,omitempty"` // Integrity verification field. A flag indicating whether // [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c] // was received by @@ -2852,7 +2852,7 @@ func (x *AsymmetricSignResponse) GetSignature() []byte { return nil } -func (x *AsymmetricSignResponse) GetSignatureCrc32C() *wrapperspb.Int64Value { +func (x *AsymmetricSignResponse) GetSignatureCrc32C() *wrappers.Int64Value { if x != nil { return x.SignatureCrc32C } @@ -2909,7 +2909,7 @@ type AsymmetricDecryptResponse struct { // across different languages. However, it is a non-negative integer, which // will never exceed 2^32-1, and can be safely downconverted to uint32 in // languages that support this type. - PlaintextCrc32C *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` + PlaintextCrc32C *wrappers.Int64Value `protobuf:"bytes,2,opt,name=plaintext_crc32c,json=plaintextCrc32c,proto3" json:"plaintext_crc32c,omitempty"` // Integrity verification field. A flag indicating whether // [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c] // was received by @@ -2970,7 +2970,7 @@ func (x *AsymmetricDecryptResponse) GetPlaintext() []byte { return nil } -func (x *AsymmetricDecryptResponse) GetPlaintextCrc32C() *wrapperspb.Int64Value { +func (x *AsymmetricDecryptResponse) GetPlaintextCrc32C() *wrappers.Int64Value { if x != nil { return x.PlaintextCrc32C } @@ -3017,7 +3017,7 @@ type MacSignResponse struct { // across different languages. However, it is a non-negative integer, which // will never exceed 2^32-1, and can be safely downconverted to uint32 in // languages that support this type. - MacCrc32C *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=mac_crc32c,json=macCrc32c,proto3" json:"mac_crc32c,omitempty"` + MacCrc32C *wrappers.Int64Value `protobuf:"bytes,3,opt,name=mac_crc32c,json=macCrc32c,proto3" json:"mac_crc32c,omitempty"` // Integrity verification field. A flag indicating whether // [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] // was received by @@ -3084,7 +3084,7 @@ func (x *MacSignResponse) GetMac() []byte { return nil } -func (x *MacSignResponse) GetMacCrc32C() *wrapperspb.Int64Value { +func (x *MacSignResponse) GetMacCrc32C() *wrappers.Int64Value { if x != nil { return x.MacCrc32C } @@ -3259,7 +3259,7 @@ type GenerateRandomBytesResponse struct { // across different languages. However, it is a non-negative integer, which // will never exceed 2^32-1, and can be safely downconverted to uint32 in // languages that support this type. - DataCrc32C *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` + DataCrc32C *wrappers.Int64Value `protobuf:"bytes,3,opt,name=data_crc32c,json=dataCrc32c,proto3" json:"data_crc32c,omitempty"` } func (x *GenerateRandomBytesResponse) Reset() { @@ -3301,7 +3301,7 @@ func (x *GenerateRandomBytesResponse) GetData() []byte { return nil } -func (x *GenerateRandomBytesResponse) GetDataCrc32C() *wrapperspb.Int64Value { +func (x *GenerateRandomBytesResponse) GetDataCrc32C() *wrappers.Int64Value { if x != nil { return x.DataCrc32C } @@ -4419,8 +4419,8 @@ var file_google_cloud_kms_v1_service_proto_goTypes = []interface{}{ (*CryptoKeyVersion)(nil), // 42: google.cloud.kms.v1.CryptoKeyVersion (*ImportJob)(nil), // 43: google.cloud.kms.v1.ImportJob (CryptoKeyVersion_CryptoKeyVersionAlgorithm)(0), // 44: google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - (*fieldmaskpb.FieldMask)(nil), // 45: google.protobuf.FieldMask - (*wrapperspb.Int64Value)(nil), // 46: google.protobuf.Int64Value + (*field_mask.FieldMask)(nil), // 45: google.protobuf.FieldMask + (*wrappers.Int64Value)(nil), // 46: google.protobuf.Int64Value (ProtectionLevel)(0), // 47: google.cloud.kms.v1.ProtectionLevel (*PublicKey)(nil), // 48: google.cloud.kms.v1.PublicKey } diff --git a/kms/go.mod b/kms/go.mod index 6ddead899425..8714cc9e0799 100644 --- a/kms/go.mod +++ b/kms/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 cloud.google.com/go/iam v0.5.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.100.0 google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e @@ -15,7 +16,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/language/apiv1/languagepb/language_service.pb.go b/language/apiv1/languagepb/language_service.pb.go index 72737c7de614..bdefa605098e 100644 --- a/language/apiv1/languagepb/language_service.pb.go +++ b/language/apiv1/languagepb/language_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/language/v1/language_service.proto package languagepb diff --git a/longrunning/autogen/longrunningpb/operations.pb.go b/longrunning/autogen/longrunningpb/operations.pb.go index 6f3ae542be88..ce4694c900ee 100644 --- a/longrunning/autogen/longrunningpb/operations.pb.go +++ b/longrunning/autogen/longrunningpb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/longrunning/operations.proto package longrunningpb @@ -25,6 +25,10 @@ import ( reflect "reflect" sync "sync" + descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + any1 "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" grpc "google.golang.org/grpc" @@ -32,10 +36,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" - anypb "google.golang.org/protobuf/types/known/anypb" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -60,7 +60,7 @@ type Operation struct { // contains progress information and common metadata such as create time. // Some services might not provide such metadata. Any method that returns a // long-running operation should document the metadata type, if any. - Metadata *anypb.Any `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata *any1.Any `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // If the value is `false`, it means the operation is still in progress. // If `true`, the operation is completed, and either `error` or `response` is // available. @@ -115,7 +115,7 @@ func (x *Operation) GetName() string { return "" } -func (x *Operation) GetMetadata() *anypb.Any { +func (x *Operation) GetMetadata() *any1.Any { if x != nil { return x.Metadata } @@ -143,7 +143,7 @@ func (x *Operation) GetError() *status.Status { return nil } -func (x *Operation) GetResponse() *anypb.Any { +func (x *Operation) GetResponse() *any1.Any { if x, ok := x.GetResult().(*Operation_Response); ok { return x.Response } @@ -168,7 +168,7 @@ type Operation_Response struct { // is the original method name. For example, if the original method name // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. - Response *anypb.Any `protobuf:"bytes,5,opt,name=response,proto3,oneof"` + Response *any1.Any `protobuf:"bytes,5,opt,name=response,proto3,oneof"` } func (*Operation_Error) isOperation_Result() {} @@ -467,7 +467,7 @@ type WaitOperationRequest struct { // The maximum duration to wait before timing out. If left blank, the wait // will be at most the time permitted by the underlying HTTP/RPC protocol. // If RPC context deadline is also specified, the shorter one will be used. - Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` } func (x *WaitOperationRequest) Reset() { @@ -509,7 +509,7 @@ func (x *WaitOperationRequest) GetName() string { return "" } -func (x *WaitOperationRequest) GetTimeout() *durationpb.Duration { +func (x *WaitOperationRequest) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -599,7 +599,7 @@ func (x *OperationInfo) GetMetadataType() string { var file_google_longrunning_operations_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptorpb.MethodOptions)(nil), + ExtendedType: (*descriptor.MethodOptions)(nil), ExtensionType: (*OperationInfo)(nil), Field: 1049, Name: "google.longrunning.operation_info", @@ -608,7 +608,7 @@ var file_google_longrunning_operations_proto_extTypes = []protoimpl.ExtensionInf }, } -// Extension fields to descriptorpb.MethodOptions. +// Extension fields to descriptor.MethodOptions. var ( // Additional information regarding long-running operations. // In particular, this specifies the types that are returned from @@ -766,19 +766,19 @@ func file_google_longrunning_operations_proto_rawDescGZIP() []byte { var file_google_longrunning_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_google_longrunning_operations_proto_goTypes = []interface{}{ - (*Operation)(nil), // 0: google.longrunning.Operation - (*GetOperationRequest)(nil), // 1: google.longrunning.GetOperationRequest - (*ListOperationsRequest)(nil), // 2: google.longrunning.ListOperationsRequest - (*ListOperationsResponse)(nil), // 3: google.longrunning.ListOperationsResponse - (*CancelOperationRequest)(nil), // 4: google.longrunning.CancelOperationRequest - (*DeleteOperationRequest)(nil), // 5: google.longrunning.DeleteOperationRequest - (*WaitOperationRequest)(nil), // 6: google.longrunning.WaitOperationRequest - (*OperationInfo)(nil), // 7: google.longrunning.OperationInfo - (*anypb.Any)(nil), // 8: google.protobuf.Any - (*status.Status)(nil), // 9: google.rpc.Status - (*durationpb.Duration)(nil), // 10: google.protobuf.Duration - (*descriptorpb.MethodOptions)(nil), // 11: google.protobuf.MethodOptions - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*Operation)(nil), // 0: google.longrunning.Operation + (*GetOperationRequest)(nil), // 1: google.longrunning.GetOperationRequest + (*ListOperationsRequest)(nil), // 2: google.longrunning.ListOperationsRequest + (*ListOperationsResponse)(nil), // 3: google.longrunning.ListOperationsResponse + (*CancelOperationRequest)(nil), // 4: google.longrunning.CancelOperationRequest + (*DeleteOperationRequest)(nil), // 5: google.longrunning.DeleteOperationRequest + (*WaitOperationRequest)(nil), // 6: google.longrunning.WaitOperationRequest + (*OperationInfo)(nil), // 7: google.longrunning.OperationInfo + (*any1.Any)(nil), // 8: google.protobuf.Any + (*status.Status)(nil), // 9: google.rpc.Status + (*duration.Duration)(nil), // 10: google.protobuf.Duration + (*descriptor.MethodOptions)(nil), // 11: google.protobuf.MethodOptions + (*empty.Empty)(nil), // 12: google.protobuf.Empty } var file_google_longrunning_operations_proto_depIdxs = []int32{ 8, // 0: google.longrunning.Operation.metadata:type_name -> google.protobuf.Any @@ -964,7 +964,7 @@ type OperationsClient interface { // no longer interested in the operation result. It does not cancel the // operation. If the server doesn't support this method, it returns // `google.rpc.Code.UNIMPLEMENTED`. - DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Starts asynchronous cancellation on a long-running operation. The server // makes a best effort to cancel the operation, but success is not // guaranteed. If the server doesn't support this method, it returns @@ -975,7 +975,7 @@ type OperationsClient interface { // the operation is not deleted; instead, it becomes an operation with // an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. - CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Waits until the specified long-running operation is done or reaches at most // a specified timeout, returning the latest state. If the operation is // already done, the latest state is immediately returned. If the timeout @@ -1014,8 +1014,8 @@ func (c *operationsClient) GetOperation(ctx context.Context, in *GetOperationReq return out, nil } -func (c *operationsClient) DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *operationsClient) DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.longrunning.Operations/DeleteOperation", in, out, opts...) if err != nil { return nil, err @@ -1023,8 +1023,8 @@ func (c *operationsClient) DeleteOperation(ctx context.Context, in *DeleteOperat return out, nil } -func (c *operationsClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *operationsClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.longrunning.Operations/CancelOperation", in, out, opts...) if err != nil { return nil, err @@ -1062,7 +1062,7 @@ type OperationsServer interface { // no longer interested in the operation result. It does not cancel the // operation. If the server doesn't support this method, it returns // `google.rpc.Code.UNIMPLEMENTED`. - DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error) + DeleteOperation(context.Context, *DeleteOperationRequest) (*empty.Empty, error) // Starts asynchronous cancellation on a long-running operation. The server // makes a best effort to cancel the operation, but success is not // guaranteed. If the server doesn't support this method, it returns @@ -1073,7 +1073,7 @@ type OperationsServer interface { // the operation is not deleted; instead, it becomes an operation with // an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. - CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) + CancelOperation(context.Context, *CancelOperationRequest) (*empty.Empty, error) // Waits until the specified long-running operation is done or reaches at most // a specified timeout, returning the latest state. If the operation is // already done, the latest state is immediately returned. If the timeout @@ -1096,10 +1096,10 @@ func (*UnimplementedOperationsServer) ListOperations(context.Context, *ListOpera func (*UnimplementedOperationsServer) GetOperation(context.Context, *GetOperationRequest) (*Operation, error) { return nil, status1.Errorf(codes.Unimplemented, "method GetOperation not implemented") } -func (*UnimplementedOperationsServer) DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error) { +func (*UnimplementedOperationsServer) DeleteOperation(context.Context, *DeleteOperationRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteOperation not implemented") } -func (*UnimplementedOperationsServer) CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) { +func (*UnimplementedOperationsServer) CancelOperation(context.Context, *CancelOperationRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CancelOperation not implemented") } func (*UnimplementedOperationsServer) WaitOperation(context.Context, *WaitOperationRequest) (*Operation, error) { diff --git a/managedidentities/apiv1/managedidentitiespb/managed_identities_service.pb.go b/managedidentities/apiv1/managedidentitiespb/managed_identities_service.pb.go index 8afafbf9a15b..59d978c4b33b 100644 --- a/managedidentities/apiv1/managedidentitiespb/managed_identities_service.pb.go +++ b/managedidentities/apiv1/managedidentitiespb/managed_identities_service.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/managedidentities/v1/managed_identities_service.proto package managedidentitiespb @@ -26,15 +26,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -51,9 +51,9 @@ type OpMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -99,14 +99,14 @@ func (*OpMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_managedidentities_v1_managed_identities_service_proto_rawDescGZIP(), []int{0} } -func (x *OpMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OpMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OpMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OpMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -551,7 +551,7 @@ type UpdateDomainRequest struct { // - `labels` // - `locations` // - `authorized_networks` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Domain message with updated fields. Only supported fields specified in // update_mask are updated. Domain *Domain `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` @@ -589,7 +589,7 @@ func (*UpdateDomainRequest) Descriptor() ([]byte, []int) { return file_google_cloud_managedidentities_v1_managed_identities_service_proto_rawDescGZIP(), []int{7} } -func (x *UpdateDomainRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateDomainRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1253,9 +1253,9 @@ var file_google_cloud_managedidentities_v1_managed_identities_service_proto_goTy (*ReconfigureTrustRequest)(nil), // 10: google.cloud.managedidentities.v1.ReconfigureTrustRequest (*DetachTrustRequest)(nil), // 11: google.cloud.managedidentities.v1.DetachTrustRequest (*ValidateTrustRequest)(nil), // 12: google.cloud.managedidentities.v1.ValidateTrustRequest - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp (*Domain)(nil), // 14: google.cloud.managedidentities.v1.Domain - (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask (*Trust)(nil), // 16: google.cloud.managedidentities.v1.Trust (*longrunning.Operation)(nil), // 17: google.longrunning.Operation } diff --git a/managedidentities/apiv1/managedidentitiespb/resource.pb.go b/managedidentities/apiv1/managedidentitiespb/resource.pb.go index 16dea801be91..e46a01da7b2b 100644 --- a/managedidentities/apiv1/managedidentitiespb/resource.pb.go +++ b/managedidentities/apiv1/managedidentitiespb/resource.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/managedidentities/v1/resource.proto package managedidentitiespb @@ -25,10 +25,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -326,9 +326,9 @@ type Domain struct { // Active Directory set up on an internal network. Fqdn string `protobuf:"bytes,10,opt,name=fqdn,proto3" json:"fqdn,omitempty"` // Output only. The time the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The current state of this domain. State Domain_State `protobuf:"varint,13,opt,name=state,proto3,enum=google.cloud.managedidentities.v1.Domain_State" json:"state,omitempty"` // Output only. Additional information about the current status of this @@ -419,14 +419,14 @@ func (x *Domain) GetFqdn() string { return "" } -func (x *Domain) GetCreateTime() *timestamppb.Timestamp { +func (x *Domain) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Domain) GetUpdateTime() *timestamppb.Timestamp { +func (x *Domain) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -480,15 +480,15 @@ type Trust struct { // not be stored. TrustHandshakeSecret string `protobuf:"bytes,6,opt,name=trust_handshake_secret,json=trustHandshakeSecret,proto3" json:"trust_handshake_secret,omitempty"` // Output only. The time the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The current state of the trust. State Trust_State `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.managedidentities.v1.Trust_State" json:"state,omitempty"` // Output only. Additional information about the current state of the trust, if available. StateDescription string `protobuf:"bytes,11,opt,name=state_description,json=stateDescription,proto3" json:"state_description,omitempty"` // Output only. The last heartbeat time when the trust was known to be connected. - LastTrustHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_trust_heartbeat_time,json=lastTrustHeartbeatTime,proto3" json:"last_trust_heartbeat_time,omitempty"` + LastTrustHeartbeatTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=last_trust_heartbeat_time,json=lastTrustHeartbeatTime,proto3" json:"last_trust_heartbeat_time,omitempty"` } func (x *Trust) Reset() { @@ -565,14 +565,14 @@ func (x *Trust) GetTrustHandshakeSecret() string { return "" } -func (x *Trust) GetCreateTime() *timestamppb.Timestamp { +func (x *Trust) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Trust) GetUpdateTime() *timestamppb.Timestamp { +func (x *Trust) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -593,7 +593,7 @@ func (x *Trust) GetStateDescription() string { return "" } -func (x *Trust) GetLastTrustHeartbeatTime() *timestamppb.Timestamp { +func (x *Trust) GetLastTrustHeartbeatTime() *timestamp.Timestamp { if x != nil { return x.LastTrustHeartbeatTime } @@ -773,14 +773,14 @@ func file_google_cloud_managedidentities_v1_resource_proto_rawDescGZIP() []byte var file_google_cloud_managedidentities_v1_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_google_cloud_managedidentities_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_managedidentities_v1_resource_proto_goTypes = []interface{}{ - (Domain_State)(0), // 0: google.cloud.managedidentities.v1.Domain.State - (Trust_State)(0), // 1: google.cloud.managedidentities.v1.Trust.State - (Trust_TrustType)(0), // 2: google.cloud.managedidentities.v1.Trust.TrustType - (Trust_TrustDirection)(0), // 3: google.cloud.managedidentities.v1.Trust.TrustDirection - (*Domain)(nil), // 4: google.cloud.managedidentities.v1.Domain - (*Trust)(nil), // 5: google.cloud.managedidentities.v1.Trust - nil, // 6: google.cloud.managedidentities.v1.Domain.LabelsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (Domain_State)(0), // 0: google.cloud.managedidentities.v1.Domain.State + (Trust_State)(0), // 1: google.cloud.managedidentities.v1.Trust.State + (Trust_TrustType)(0), // 2: google.cloud.managedidentities.v1.Trust.TrustType + (Trust_TrustDirection)(0), // 3: google.cloud.managedidentities.v1.Trust.TrustDirection + (*Domain)(nil), // 4: google.cloud.managedidentities.v1.Domain + (*Trust)(nil), // 5: google.cloud.managedidentities.v1.Trust + nil, // 6: google.cloud.managedidentities.v1.Domain.LabelsEntry + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp } var file_google_cloud_managedidentities_v1_resource_proto_depIdxs = []int32{ 6, // 0: google.cloud.managedidentities.v1.Domain.labels:type_name -> google.cloud.managedidentities.v1.Domain.LabelsEntry diff --git a/managedidentities/go.mod b/managedidentities/go.mod index 2f766edd830c..98c527de5ff7 100644 --- a/managedidentities/go.mod +++ b/managedidentities/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/memcache/apiv1/memcachepb/cloud_memcache.pb.go b/memcache/apiv1/memcachepb/cloud_memcache.pb.go index cf5c8506538d..d836c8472f6d 100644 --- a/memcache/apiv1/memcachepb/cloud_memcache.pb.go +++ b/memcache/apiv1/memcachepb/cloud_memcache.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/memcache/v1/cloud_memcache.proto package memcachepb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -310,9 +310,9 @@ type Instance struct { // Refer to [Node] message for more details. MemcacheNodes []*Instance_Node `protobuf:"bytes,12,rep,name=memcache_nodes,json=memcacheNodes,proto3" json:"memcache_nodes,omitempty"` // Output only. The time the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the instance was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The state of this Memcached instance. State Instance_State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.memcache.v1.Instance_State" json:"state,omitempty"` // Output only. The full version of memcached server running on this instance. @@ -428,14 +428,14 @@ func (x *Instance) GetMemcacheNodes() []*Instance_Node { return nil } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Instance) GetUpdateTime() *timestamppb.Timestamp { +func (x *Instance) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -780,7 +780,7 @@ type UpdateInstanceRequest struct { // Required. Mask of fields to update. // - `displayName` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. A Memcached Instance. // Only fields specified in update_mask are updated. Instance *Instance `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` @@ -818,7 +818,7 @@ func (*UpdateInstanceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_memcache_v1_cloud_memcache_proto_rawDescGZIP(), []int{5} } -func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -965,7 +965,7 @@ type UpdateParametersRequest struct { // updated. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. Mask of fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The parameters to apply to the instance. Parameters *MemcacheParameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"` } @@ -1009,7 +1009,7 @@ func (x *UpdateParametersRequest) GetName() string { return "" } -func (x *UpdateParametersRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateParametersRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1090,9 +1090,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. Time when the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1140,14 +1140,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_memcache_v1_cloud_memcache_proto_rawDescGZIP(), []int{10} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1812,8 +1812,8 @@ var file_google_cloud_memcache_v1_cloud_memcache_proto_goTypes = []interface{}{ (*Instance_InstanceMessage)(nil), // 17: google.cloud.memcache.v1.Instance.InstanceMessage nil, // 18: google.cloud.memcache.v1.Instance.LabelsEntry nil, // 19: google.cloud.memcache.v1.MemcacheParameters.ParamsEntry - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 21: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 22: google.longrunning.Operation } var file_google_cloud_memcache_v1_cloud_memcache_proto_depIdxs = []int32{ diff --git a/metastore/apiv1/metastorepb/metastore.pb.go b/metastore/apiv1/metastorepb/metastore.pb.go index d8ab28ac834f..b00c0ca04868 100644 --- a/metastore/apiv1/metastorepb/metastore.pb.go +++ b/metastore/apiv1/metastorepb/metastore.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/metastore/v1/metastore.proto package metastorepb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -656,9 +656,9 @@ type Service struct { // `projects/{project_number}/locations/{location_id}/services/{service_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when the metastore service was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the metastore service was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User-defined labels for the metastore service. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Immutable. The relative resource name of the VPC network on which the instance can be @@ -745,14 +745,14 @@ func (x *Service) GetName() string { return "" } -func (x *Service) GetCreateTime() *timestamppb.Timestamp { +func (x *Service) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Service) GetUpdateTime() *timestamppb.Timestamp { +func (x *Service) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -863,7 +863,7 @@ type MaintenanceWindow struct { unknownFields protoimpl.UnknownFields // The hour of day (0-23) when the window starts. - HourOfDay *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=hour_of_day,json=hourOfDay,proto3" json:"hour_of_day,omitempty"` + HourOfDay *wrappers.Int32Value `protobuf:"bytes,1,opt,name=hour_of_day,json=hourOfDay,proto3" json:"hour_of_day,omitempty"` // The day of week, when the window starts. DayOfWeek dayofweek.DayOfWeek `protobuf:"varint,2,opt,name=day_of_week,json=dayOfWeek,proto3,enum=google.type.DayOfWeek" json:"day_of_week,omitempty"` } @@ -900,7 +900,7 @@ func (*MaintenanceWindow) Descriptor() ([]byte, []int) { return file_google_cloud_metastore_v1_metastore_proto_rawDescGZIP(), []int{1} } -func (x *MaintenanceWindow) GetHourOfDay() *wrapperspb.Int32Value { +func (x *MaintenanceWindow) GetHourOfDay() *wrappers.Int32Value { if x != nil { return x.HourOfDay } @@ -1209,11 +1209,11 @@ type MetadataImport struct { // The description of the metadata import. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The time when the metadata import was started. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the metadata import was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The time when the metadata import finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The current state of the metadata import. State MetadataImport_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.metastore.v1.MetadataImport_State" json:"state,omitempty"` } @@ -1278,21 +1278,21 @@ func (x *MetadataImport) GetDescription() string { return "" } -func (x *MetadataImport) GetCreateTime() *timestamppb.Timestamp { +func (x *MetadataImport) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MetadataImport) GetUpdateTime() *timestamppb.Timestamp { +func (x *MetadataImport) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *MetadataImport) GetEndTime() *timestamppb.Timestamp { +func (x *MetadataImport) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1328,9 +1328,9 @@ type MetadataExport struct { // *MetadataExport_DestinationGcsUri Destination isMetadataExport_Destination `protobuf_oneof:"destination"` // Output only. The time when the export started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time when the export ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The current state of the export. State MetadataExport_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.metastore.v1.MetadataExport_State" json:"state,omitempty"` // Output only. The type of the database dump. @@ -1383,14 +1383,14 @@ func (x *MetadataExport) GetDestinationGcsUri() string { return "" } -func (x *MetadataExport) GetStartTime() *timestamppb.Timestamp { +func (x *MetadataExport) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *MetadataExport) GetEndTime() *timestamppb.Timestamp { +func (x *MetadataExport) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1435,9 +1435,9 @@ type Backup struct { // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when the backup was started. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the backup finished creating. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The current state of the backup. State Backup_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.metastore.v1.Backup_State" json:"state,omitempty"` // Output only. The revision of the service at the time of backup. @@ -1487,14 +1487,14 @@ func (x *Backup) GetName() string { return "" } -func (x *Backup) GetCreateTime() *timestamppb.Timestamp { +func (x *Backup) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Backup) GetEndTime() *timestamppb.Timestamp { +func (x *Backup) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1536,9 +1536,9 @@ type Restore struct { unknownFields protoimpl.UnknownFields // Output only. The time when the restore started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time when the restore ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The current state of the restore. State Restore_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.metastore.v1.Restore_State" json:"state,omitempty"` // Output only. The relative resource name of the metastore service backup to restore @@ -1585,14 +1585,14 @@ func (*Restore) Descriptor() ([]byte, []int) { return file_google_cloud_metastore_v1_metastore_proto_rawDescGZIP(), []int{9} } -func (x *Restore) GetStartTime() *timestamppb.Timestamp { +func (x *Restore) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Restore) GetEndTime() *timestamppb.Timestamp { +func (x *Restore) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1953,7 +1953,7 @@ type UpdateServiceRequest struct { // metastore service resource by the update. // Fields specified in the `update_mask` are relative to the resource (not // to the full request). A field is overwritten if it is in the mask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The metastore service to update. The server only merges fields // in the service if they are specified in `update_mask`. // @@ -2007,7 +2007,7 @@ func (*UpdateServiceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_metastore_v1_metastore_proto_rawDescGZIP(), []int{14} } -func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServiceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2426,7 +2426,7 @@ type UpdateMetadataImportRequest struct { // metadata import resource by the update. // Fields specified in the `update_mask` are relative to the resource (not // to the full request). A field is overwritten if it is in the mask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The metadata import to update. The server only merges fields // in the import if they are specified in `update_mask`. // @@ -2480,7 +2480,7 @@ func (*UpdateMetadataImportRequest) Descriptor() ([]byte, []int) { return file_google_cloud_metastore_v1_metastore_proto_rawDescGZIP(), []int{20} } -func (x *UpdateMetadataImportRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateMetadataImportRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3102,9 +3102,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -3152,14 +3152,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_metastore_v1_metastore_proto_rawDescGZIP(), []int{28} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -4290,10 +4290,10 @@ var file_google_cloud_metastore_v1_metastore_proto_goTypes = []interface{}{ nil, // 42: google.cloud.metastore.v1.HiveMetastoreConfig.ConfigOverridesEntry (*MetadataImport_DatabaseDump)(nil), // 43: google.cloud.metastore.v1.MetadataImport.DatabaseDump (*LocationMetadata_HiveMetastoreVersion)(nil), // 44: google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion - (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp - (*wrapperspb.Int32Value)(nil), // 46: google.protobuf.Int32Value + (*timestamp.Timestamp)(nil), // 45: google.protobuf.Timestamp + (*wrappers.Int32Value)(nil), // 46: google.protobuf.Int32Value (dayofweek.DayOfWeek)(0), // 47: google.type.DayOfWeek - (*fieldmaskpb.FieldMask)(nil), // 48: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 48: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 49: google.longrunning.Operation } var file_google_cloud_metastore_v1_metastore_proto_depIdxs = []int32{ diff --git a/monitoring/apiv3/v2/monitoringpb/alert.pb.go b/monitoring/apiv3/v2/monitoringpb/alert.pb.go index fb5e35f5d5d5..8f989e7a4f57 100644 --- a/monitoring/apiv3/v2/monitoringpb/alert.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/alert.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/alert.proto package monitoringpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -220,7 +220,7 @@ type AlertPolicy struct { // any assumption about the state if it has not been populated. The // field should always be populated on List and Get operations, unless // a field projection has been specified that strips it out. - Enabled *wrapperspb.BoolValue `protobuf:"bytes,17,opt,name=enabled,proto3" json:"enabled,omitempty"` + Enabled *wrappers.BoolValue `protobuf:"bytes,17,opt,name=enabled,proto3" json:"enabled,omitempty"` // Read-only description of how the alert policy is invalid. OK if the alert // policy is valid. If not OK, the alert policy will not generate incidents. Validity *status.Status `protobuf:"bytes,18,opt,name=validity,proto3" json:"validity,omitempty"` @@ -319,7 +319,7 @@ func (x *AlertPolicy) GetCombiner() AlertPolicy_ConditionCombinerType { return AlertPolicy_COMBINE_UNSPECIFIED } -func (x *AlertPolicy) GetEnabled() *wrapperspb.BoolValue { +func (x *AlertPolicy) GetEnabled() *wrappers.BoolValue { if x != nil { return x.Enabled } @@ -604,7 +604,7 @@ type AlertPolicy_AlertStrategy struct { NotificationRateLimit *AlertPolicy_AlertStrategy_NotificationRateLimit `protobuf:"bytes,1,opt,name=notification_rate_limit,json=notificationRateLimit,proto3" json:"notification_rate_limit,omitempty"` // If an alert policy that was active has no data for this long, any open // incidents will close - AutoClose *durationpb.Duration `protobuf:"bytes,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` + AutoClose *duration.Duration `protobuf:"bytes,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` } func (x *AlertPolicy_AlertStrategy) Reset() { @@ -646,7 +646,7 @@ func (x *AlertPolicy_AlertStrategy) GetNotificationRateLimit() *AlertPolicy_Aler return nil } -func (x *AlertPolicy_AlertStrategy) GetAutoClose() *durationpb.Duration { +func (x *AlertPolicy_AlertStrategy) GetAutoClose() *duration.Duration { if x != nil { return x.AutoClose } @@ -812,7 +812,7 @@ type AlertPolicy_Condition_MetricThreshold struct { // `aggregations` field); a good duration is long enough so that a single // outlier does not generate spurious alerts, but short enough that // unhealthy states are detected and alerted on quickly. - Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` // The number/percent of time series for which the comparison must hold // in order for the condition to trigger. If unspecified, then the // condition will trigger if the comparison is true for any of the @@ -899,7 +899,7 @@ func (x *AlertPolicy_Condition_MetricThreshold) GetThresholdValue() float64 { return 0 } -func (x *AlertPolicy_Condition_MetricThreshold) GetDuration() *durationpb.Duration { +func (x *AlertPolicy_Condition_MetricThreshold) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -960,7 +960,7 @@ type AlertPolicy_Condition_MetricAbsence struct { // If an invalid value is given, an // error will be returned. The `Duration.nanos` field is // ignored. - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // The number/percent of time series for which the comparison must hold // in order for the condition to trigger. If unspecified, then the // condition will trigger if the comparison is true for any of the @@ -1014,7 +1014,7 @@ func (x *AlertPolicy_Condition_MetricAbsence) GetAggregations() []*Aggregation { return nil } -func (x *AlertPolicy_Condition_MetricAbsence) GetDuration() *durationpb.Duration { +func (x *AlertPolicy_Condition_MetricAbsence) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1121,7 +1121,7 @@ type AlertPolicy_Condition_MonitoringQueryLanguageCondition struct { // `aggregations` field); a good duration is long enough so that a single // outlier does not generate spurious alerts, but short enough that // unhealthy states are detected and alerted on quickly. - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // The number/percent of time series for which the comparison must hold // in order for the condition to trigger. If unspecified, then the // condition will trigger if the comparison is true for any of the @@ -1173,7 +1173,7 @@ func (x *AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetQuery() stri return "" } -func (x *AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetDuration() *durationpb.Duration { +func (x *AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1202,7 +1202,7 @@ type AlertPolicy_AlertStrategy_NotificationRateLimit struct { unknownFields protoimpl.UnknownFields // Not more than one notification per `period`. - Period *durationpb.Duration `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"` + Period *duration.Duration `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"` } func (x *AlertPolicy_AlertStrategy_NotificationRateLimit) Reset() { @@ -1237,7 +1237,7 @@ func (*AlertPolicy_AlertStrategy_NotificationRateLimit) Descriptor() ([]byte, [] return file_google_monitoring_v3_alert_proto_rawDescGZIP(), []int{0, 2, 0} } -func (x *AlertPolicy_AlertStrategy_NotificationRateLimit) GetPeriod() *durationpb.Duration { +func (x *AlertPolicy_AlertStrategy_NotificationRateLimit) GetPeriod() *duration.Duration { if x != nil { return x.Period } @@ -1562,10 +1562,10 @@ var file_google_monitoring_v3_alert_proto_goTypes = []interface{}{ (*AlertPolicy_Condition_MonitoringQueryLanguageCondition)(nil), // 11: google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition nil, // 12: google.monitoring.v3.AlertPolicy.Condition.LogMatch.LabelExtractorsEntry (*AlertPolicy_AlertStrategy_NotificationRateLimit)(nil), // 13: google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - (*wrapperspb.BoolValue)(nil), // 14: google.protobuf.BoolValue + (*wrappers.BoolValue)(nil), // 14: google.protobuf.BoolValue (*status.Status)(nil), // 15: google.rpc.Status (*MutationRecord)(nil), // 16: google.monitoring.v3.MutationRecord - (*durationpb.Duration)(nil), // 17: google.protobuf.Duration + (*duration.Duration)(nil), // 17: google.protobuf.Duration (*Aggregation)(nil), // 18: google.monitoring.v3.Aggregation (ComparisonType)(0), // 19: google.monitoring.v3.ComparisonType } diff --git a/monitoring/apiv3/v2/monitoringpb/alert_service.pb.go b/monitoring/apiv3/v2/monitoringpb/alert_service.pb.go index f47133df0161..46e155af335f 100644 --- a/monitoring/apiv3/v2/monitoringpb/alert_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/alert_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/alert_service.proto package monitoringpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -366,7 +366,7 @@ type UpdateAlertPolicyRequest struct { // the supplied condition includes the `name` field with that // `[CONDITION_ID]`. If the supplied condition omits the `name` field, // then a new `[CONDITION_ID]` is created. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The updated alerting policy or the updated values for the // fields listed in `update_mask`. // If `update_mask` is not empty, any fields in this policy that are @@ -406,7 +406,7 @@ func (*UpdateAlertPolicyRequest) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{4} } -func (x *UpdateAlertPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAlertPolicyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -653,8 +653,8 @@ var file_google_monitoring_v3_alert_service_proto_goTypes = []interface{}{ (*UpdateAlertPolicyRequest)(nil), // 4: google.monitoring.v3.UpdateAlertPolicyRequest (*DeleteAlertPolicyRequest)(nil), // 5: google.monitoring.v3.DeleteAlertPolicyRequest (*AlertPolicy)(nil), // 6: google.monitoring.v3.AlertPolicy - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*empty.Empty)(nil), // 8: google.protobuf.Empty } var file_google_monitoring_v3_alert_service_proto_depIdxs = []int32{ 6, // 0: google.monitoring.v3.CreateAlertPolicyRequest.alert_policy:type_name -> google.monitoring.v3.AlertPolicy @@ -797,7 +797,7 @@ type AlertPolicyServiceClient interface { // Creates a new alerting policy. CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) // Deletes an alerting policy. - DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates an alerting policy. You can either replace the entire policy with // a new one or replace only certain fields in the current alerting policy by // specifying the fields to be updated via `updateMask`. Returns the @@ -840,8 +840,8 @@ func (c *alertPolicyServiceClient) CreateAlertPolicy(ctx context.Context, in *Cr return out, nil } -func (c *alertPolicyServiceClient) DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *alertPolicyServiceClient) DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy", in, out, opts...) if err != nil { return nil, err @@ -867,7 +867,7 @@ type AlertPolicyServiceServer interface { // Creates a new alerting policy. CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error) // Deletes an alerting policy. - DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*emptypb.Empty, error) + DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*empty.Empty, error) // Updates an alerting policy. You can either replace the entire policy with // a new one or replace only certain fields in the current alerting policy by // specifying the fields to be updated via `updateMask`. Returns the @@ -888,7 +888,7 @@ func (*UnimplementedAlertPolicyServiceServer) GetAlertPolicy(context.Context, *G func (*UnimplementedAlertPolicyServiceServer) CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAlertPolicy not implemented") } -func (*UnimplementedAlertPolicyServiceServer) DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*emptypb.Empty, error) { +func (*UnimplementedAlertPolicyServiceServer) DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAlertPolicy not implemented") } func (*UnimplementedAlertPolicyServiceServer) UpdateAlertPolicy(context.Context, *UpdateAlertPolicyRequest) (*AlertPolicy, error) { diff --git a/monitoring/apiv3/v2/monitoringpb/common.pb.go b/monitoring/apiv3/v2/monitoringpb/common.pb.go index d6c40bd7f964..c591428c74c0 100644 --- a/monitoring/apiv3/v2/monitoringpb/common.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/common.proto package monitoringpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" distribution "google.golang.org/genproto/googleapis/api/distribution" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -705,11 +705,11 @@ type TimeInterval struct { unknownFields protoimpl.UnknownFields // Required. The end of the time interval. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Optional. The beginning of the time interval. The default value // for the start time is the end time. The start time must not be // later than the end time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *TimeInterval) Reset() { @@ -744,14 +744,14 @@ func (*TimeInterval) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_common_proto_rawDescGZIP(), []int{1} } -func (x *TimeInterval) GetEndTime() *timestamppb.Timestamp { +func (x *TimeInterval) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } return nil } -func (x *TimeInterval) GetStartTime() *timestamppb.Timestamp { +func (x *TimeInterval) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -802,7 +802,7 @@ type Aggregation struct { // // The maximum value of the `alignment_period` is 104 weeks (2 years) for // charts, and 90,000 seconds (25 hours) for alerting policies. - AlignmentPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"` + AlignmentPeriod *duration.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"` // An `Aligner` describes how to bring the data points in a single // time series into temporal alignment. Except for `ALIGN_NONE`, all // alignments cause all the data points in an `alignment_period` to be @@ -884,7 +884,7 @@ func (*Aggregation) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_common_proto_rawDescGZIP(), []int{2} } -func (x *Aggregation) GetAlignmentPeriod() *durationpb.Duration { +func (x *Aggregation) GetAlignmentPeriod() *duration.Duration { if x != nil { return x.AlignmentPeriod } @@ -1066,8 +1066,8 @@ var file_google_monitoring_v3_common_proto_goTypes = []interface{}{ (*TimeInterval)(nil), // 5: google.monitoring.v3.TimeInterval (*Aggregation)(nil), // 6: google.monitoring.v3.Aggregation (*distribution.Distribution)(nil), // 7: google.api.Distribution - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 9: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*duration.Duration)(nil), // 9: google.protobuf.Duration } var file_google_monitoring_v3_common_proto_depIdxs = []int32{ 7, // 0: google.monitoring.v3.TypedValue.distribution_value:type_name -> google.api.Distribution diff --git a/monitoring/apiv3/v2/monitoringpb/dropped_labels.pb.go b/monitoring/apiv3/v2/monitoringpb/dropped_labels.pb.go index 1bdd70e3d926..233b14f9f1c8 100644 --- a/monitoring/apiv3/v2/monitoringpb/dropped_labels.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/dropped_labels.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/dropped_labels.proto package monitoringpb diff --git a/monitoring/apiv3/v2/monitoringpb/group.pb.go b/monitoring/apiv3/v2/monitoringpb/group.pb.go index df1310325f3a..7648f1ea6fa2 100644 --- a/monitoring/apiv3/v2/monitoringpb/group.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/group.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/group.proto package monitoringpb diff --git a/monitoring/apiv3/v2/monitoringpb/group_service.pb.go b/monitoring/apiv3/v2/monitoringpb/group_service.pb.go index 2340c1cb9c99..76f5394f262f 100644 --- a/monitoring/apiv3/v2/monitoringpb/group_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/group_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/group_service.proto package monitoringpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" monitoredres "google.golang.org/genproto/googleapis/api/monitoredres" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -884,7 +884,7 @@ var file_google_monitoring_v3_group_service_proto_goTypes = []interface{}{ (*Group)(nil), // 8: google.monitoring.v3.Group (*TimeInterval)(nil), // 9: google.monitoring.v3.TimeInterval (*monitoredres.MonitoredResource)(nil), // 10: google.api.MonitoredResource - (*emptypb.Empty)(nil), // 11: google.protobuf.Empty + (*empty.Empty)(nil), // 11: google.protobuf.Empty } var file_google_monitoring_v3_group_service_proto_depIdxs = []int32{ 8, // 0: google.monitoring.v3.ListGroupsResponse.group:type_name -> google.monitoring.v3.Group @@ -1063,7 +1063,7 @@ type GroupServiceClient interface { // You can change any group attributes except `name`. UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*Group, error) // Deletes an existing group. - DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists the monitored resources that are members of a group. ListGroupMembers(ctx context.Context, in *ListGroupMembersRequest, opts ...grpc.CallOption) (*ListGroupMembersResponse, error) } @@ -1112,8 +1112,8 @@ func (c *groupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupReq return out, nil } -func (c *groupServiceClient) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *groupServiceClient) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.GroupService/DeleteGroup", in, out, opts...) if err != nil { return nil, err @@ -1142,7 +1142,7 @@ type GroupServiceServer interface { // You can change any group attributes except `name`. UpdateGroup(context.Context, *UpdateGroupRequest) (*Group, error) // Deletes an existing group. - DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error) + DeleteGroup(context.Context, *DeleteGroupRequest) (*empty.Empty, error) // Lists the monitored resources that are members of a group. ListGroupMembers(context.Context, *ListGroupMembersRequest) (*ListGroupMembersResponse, error) } @@ -1163,7 +1163,7 @@ func (*UnimplementedGroupServiceServer) CreateGroup(context.Context, *CreateGrou func (*UnimplementedGroupServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*Group, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateGroup not implemented") } -func (*UnimplementedGroupServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error) { +func (*UnimplementedGroupServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteGroup not implemented") } func (*UnimplementedGroupServiceServer) ListGroupMembers(context.Context, *ListGroupMembersRequest) (*ListGroupMembersResponse, error) { diff --git a/monitoring/apiv3/v2/monitoringpb/metric.pb.go b/monitoring/apiv3/v2/monitoringpb/metric.pb.go index 321e81afe7a4..89b00ad2c53e 100644 --- a/monitoring/apiv3/v2/monitoringpb/metric.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/metric.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/metric.proto package monitoringpb diff --git a/monitoring/apiv3/v2/monitoringpb/metric_service.pb.go b/monitoring/apiv3/v2/monitoringpb/metric_service.pb.go index 5939178fbbaf..05498d4b528a 100644 --- a/monitoring/apiv3/v2/monitoringpb/metric_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/metric_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/metric_service.proto package monitoringpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" metric "google.golang.org/genproto/googleapis/api/metric" monitoredres "google.golang.org/genproto/googleapis/api/monitoredres" @@ -34,7 +35,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -1782,7 +1782,7 @@ var file_google_monitoring_v3_metric_service_proto_goTypes = []interface{}{ (*TimeSeriesDescriptor)(nil), // 24: google.monitoring.v3.TimeSeriesDescriptor (*TimeSeriesData)(nil), // 25: google.monitoring.v3.TimeSeriesData (*QueryError)(nil), // 26: google.monitoring.v3.QueryError - (*emptypb.Empty)(nil), // 27: google.protobuf.Empty + (*empty.Empty)(nil), // 27: google.protobuf.Empty } var file_google_monitoring_v3_metric_service_proto_depIdxs = []int32{ 18, // 0: google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.resource_descriptors:type_name -> google.api.MonitoredResourceDescriptor @@ -2091,14 +2091,14 @@ type MetricServiceClient interface { // Deletes a metric descriptor. Only user-created // [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be // deleted. - DeleteMetricDescriptor(ctx context.Context, in *DeleteMetricDescriptorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteMetricDescriptor(ctx context.Context, in *DeleteMetricDescriptorRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists time series that match a filter. This method does not require a Workspace. ListTimeSeries(ctx context.Context, in *ListTimeSeriesRequest, opts ...grpc.CallOption) (*ListTimeSeriesResponse, error) // Creates or adds data to one or more time series. // The response is empty if all time series in the request were written. // If any time series could not be written, a corresponding failure message is // included in the error response. - CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates or adds data to one or more service time series. A service time // series is a time series for a metric from a Google Cloud service. The // response is empty if all time series in the request were written. If any @@ -2108,7 +2108,7 @@ type MetricServiceClient interface { // This method is only for use by Google Cloud services. Use // [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] // instead. - CreateServiceTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateServiceTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type metricServiceClient struct { @@ -2164,8 +2164,8 @@ func (c *metricServiceClient) CreateMetricDescriptor(ctx context.Context, in *Cr return out, nil } -func (c *metricServiceClient) DeleteMetricDescriptor(ctx context.Context, in *DeleteMetricDescriptorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *metricServiceClient) DeleteMetricDescriptor(ctx context.Context, in *DeleteMetricDescriptorRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.MetricService/DeleteMetricDescriptor", in, out, opts...) if err != nil { return nil, err @@ -2182,8 +2182,8 @@ func (c *metricServiceClient) ListTimeSeries(ctx context.Context, in *ListTimeSe return out, nil } -func (c *metricServiceClient) CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *metricServiceClient) CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.MetricService/CreateTimeSeries", in, out, opts...) if err != nil { return nil, err @@ -2191,8 +2191,8 @@ func (c *metricServiceClient) CreateTimeSeries(ctx context.Context, in *CreateTi return out, nil } -func (c *metricServiceClient) CreateServiceTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *metricServiceClient) CreateServiceTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.MetricService/CreateServiceTimeSeries", in, out, opts...) if err != nil { return nil, err @@ -2219,14 +2219,14 @@ type MetricServiceServer interface { // Deletes a metric descriptor. Only user-created // [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be // deleted. - DeleteMetricDescriptor(context.Context, *DeleteMetricDescriptorRequest) (*emptypb.Empty, error) + DeleteMetricDescriptor(context.Context, *DeleteMetricDescriptorRequest) (*empty.Empty, error) // Lists time series that match a filter. This method does not require a Workspace. ListTimeSeries(context.Context, *ListTimeSeriesRequest) (*ListTimeSeriesResponse, error) // Creates or adds data to one or more time series. // The response is empty if all time series in the request were written. // If any time series could not be written, a corresponding failure message is // included in the error response. - CreateTimeSeries(context.Context, *CreateTimeSeriesRequest) (*emptypb.Empty, error) + CreateTimeSeries(context.Context, *CreateTimeSeriesRequest) (*empty.Empty, error) // Creates or adds data to one or more service time series. A service time // series is a time series for a metric from a Google Cloud service. The // response is empty if all time series in the request were written. If any @@ -2236,7 +2236,7 @@ type MetricServiceServer interface { // This method is only for use by Google Cloud services. Use // [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] // instead. - CreateServiceTimeSeries(context.Context, *CreateTimeSeriesRequest) (*emptypb.Empty, error) + CreateServiceTimeSeries(context.Context, *CreateTimeSeriesRequest) (*empty.Empty, error) } // UnimplementedMetricServiceServer can be embedded to have forward compatible implementations. @@ -2258,16 +2258,16 @@ func (*UnimplementedMetricServiceServer) GetMetricDescriptor(context.Context, *G func (*UnimplementedMetricServiceServer) CreateMetricDescriptor(context.Context, *CreateMetricDescriptorRequest) (*metric.MetricDescriptor, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateMetricDescriptor not implemented") } -func (*UnimplementedMetricServiceServer) DeleteMetricDescriptor(context.Context, *DeleteMetricDescriptorRequest) (*emptypb.Empty, error) { +func (*UnimplementedMetricServiceServer) DeleteMetricDescriptor(context.Context, *DeleteMetricDescriptorRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteMetricDescriptor not implemented") } func (*UnimplementedMetricServiceServer) ListTimeSeries(context.Context, *ListTimeSeriesRequest) (*ListTimeSeriesResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method ListTimeSeries not implemented") } -func (*UnimplementedMetricServiceServer) CreateTimeSeries(context.Context, *CreateTimeSeriesRequest) (*emptypb.Empty, error) { +func (*UnimplementedMetricServiceServer) CreateTimeSeries(context.Context, *CreateTimeSeriesRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateTimeSeries not implemented") } -func (*UnimplementedMetricServiceServer) CreateServiceTimeSeries(context.Context, *CreateTimeSeriesRequest) (*emptypb.Empty, error) { +func (*UnimplementedMetricServiceServer) CreateServiceTimeSeries(context.Context, *CreateTimeSeriesRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateServiceTimeSeries not implemented") } diff --git a/monitoring/apiv3/v2/monitoringpb/mutation_record.pb.go b/monitoring/apiv3/v2/monitoringpb/mutation_record.pb.go index 79e8485c034a..3b10d4eb5f93 100644 --- a/monitoring/apiv3/v2/monitoringpb/mutation_record.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/mutation_record.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/mutation_record.proto package monitoringpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -43,7 +43,7 @@ type MutationRecord struct { unknownFields protoimpl.UnknownFields // When the change occurred. - MutateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=mutate_time,json=mutateTime,proto3" json:"mutate_time,omitempty"` + MutateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=mutate_time,json=mutateTime,proto3" json:"mutate_time,omitempty"` // The email address of the user making the change. MutatedBy string `protobuf:"bytes,2,opt,name=mutated_by,json=mutatedBy,proto3" json:"mutated_by,omitempty"` } @@ -80,7 +80,7 @@ func (*MutationRecord) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_mutation_record_proto_rawDescGZIP(), []int{0} } -func (x *MutationRecord) GetMutateTime() *timestamppb.Timestamp { +func (x *MutationRecord) GetMutateTime() *timestamp.Timestamp { if x != nil { return x.MutateTime } @@ -140,8 +140,8 @@ func file_google_monitoring_v3_mutation_record_proto_rawDescGZIP() []byte { var file_google_monitoring_v3_mutation_record_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_monitoring_v3_mutation_record_proto_goTypes = []interface{}{ - (*MutationRecord)(nil), // 0: google.monitoring.v3.MutationRecord - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*MutationRecord)(nil), // 0: google.monitoring.v3.MutationRecord + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_monitoring_v3_mutation_record_proto_depIdxs = []int32{ 1, // 0: google.monitoring.v3.MutationRecord.mutate_time:type_name -> google.protobuf.Timestamp diff --git a/monitoring/apiv3/v2/monitoringpb/notification.pb.go b/monitoring/apiv3/v2/monitoringpb/notification.pb.go index 722c98056454..c7267c1a3903 100644 --- a/monitoring/apiv3/v2/monitoringpb/notification.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/notification.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/notification.proto package monitoringpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + wrappers "github.com/golang/protobuf/ptypes/wrappers" api "google.golang.org/genproto/googleapis/api" _ "google.golang.org/genproto/googleapis/api/annotations" label "google.golang.org/genproto/googleapis/api/label" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -295,7 +295,7 @@ type NotificationChannel struct { // the channel. This is a more convenient approach when the change is // temporary and you want to receive notifications from the same set // of alerting policies on the channel at some point in the future. - Enabled *wrapperspb.BoolValue `protobuf:"bytes,11,opt,name=enabled,proto3" json:"enabled,omitempty"` + Enabled *wrappers.BoolValue `protobuf:"bytes,11,opt,name=enabled,proto3" json:"enabled,omitempty"` // Record of the creation of this channel. CreationRecord *MutationRecord `protobuf:"bytes,12,opt,name=creation_record,json=creationRecord,proto3" json:"creation_record,omitempty"` // Records of the modification of this channel. @@ -383,7 +383,7 @@ func (x *NotificationChannel) GetVerificationStatus() NotificationChannel_Verifi return NotificationChannel_VERIFICATION_STATUS_UNSPECIFIED } -func (x *NotificationChannel) GetEnabled() *wrapperspb.BoolValue { +func (x *NotificationChannel) GetEnabled() *wrappers.BoolValue { if x != nil { return x.Enabled } @@ -569,7 +569,7 @@ var file_google_monitoring_v3_notification_proto_goTypes = []interface{}{ (*label.LabelDescriptor)(nil), // 5: google.api.LabelDescriptor (ServiceTier)(0), // 6: google.monitoring.v3.ServiceTier (api.LaunchStage)(0), // 7: google.api.LaunchStage - (*wrapperspb.BoolValue)(nil), // 8: google.protobuf.BoolValue + (*wrappers.BoolValue)(nil), // 8: google.protobuf.BoolValue (*MutationRecord)(nil), // 9: google.monitoring.v3.MutationRecord } var file_google_monitoring_v3_notification_proto_depIdxs = []int32{ diff --git a/monitoring/apiv3/v2/monitoringpb/notification_service.pb.go b/monitoring/apiv3/v2/monitoringpb/notification_service.pb.go index 72821e4bdafa..bc917f7bc704 100644 --- a/monitoring/apiv3/v2/monitoringpb/notification_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/notification_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/notification_service.proto package monitoringpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -540,7 +540,7 @@ type UpdateNotificationChannelRequest struct { unknownFields protoimpl.UnknownFields // The fields to update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. A description of the changes to be applied to the specified // notification channel. The description must provide a definition for // fields to be updated; the names of these fields should also be @@ -580,7 +580,7 @@ func (*UpdateNotificationChannelRequest) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_notification_service_proto_rawDescGZIP(), []int{7} } -func (x *UpdateNotificationChannelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateNotificationChannelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -725,7 +725,7 @@ type GetNotificationChannelVerificationCodeRequest struct { // permissible expiration (so specifying an expiration may extend the // code's lifetime over omitting an expiration, even though the API does // impose an upper limit on the maximum expiration that is permitted). - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *GetNotificationChannelVerificationCodeRequest) Reset() { @@ -767,7 +767,7 @@ func (x *GetNotificationChannelVerificationCodeRequest) GetName() string { return "" } -func (x *GetNotificationChannelVerificationCodeRequest) GetExpireTime() *timestamppb.Timestamp { +func (x *GetNotificationChannelVerificationCodeRequest) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -788,7 +788,7 @@ type GetNotificationChannelVerificationCodeResponse struct { // The expiration time associated with the code that was returned. If // an expiration was provided in the request, this is the minimum of the // requested expiration in the request and the max permitted expiration. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *GetNotificationChannelVerificationCodeResponse) Reset() { @@ -830,7 +830,7 @@ func (x *GetNotificationChannelVerificationCodeResponse) GetCode() string { return "" } -func (x *GetNotificationChannelVerificationCodeResponse) GetExpireTime() *timestamppb.Timestamp { +func (x *GetNotificationChannelVerificationCodeResponse) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1255,9 +1255,9 @@ var file_google_monitoring_v3_notification_service_proto_goTypes = []interface{} (*VerifyNotificationChannelRequest)(nil), // 12: google.monitoring.v3.VerifyNotificationChannelRequest (*NotificationChannelDescriptor)(nil), // 13: google.monitoring.v3.NotificationChannelDescriptor (*NotificationChannel)(nil), // 14: google.monitoring.v3.NotificationChannel - (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 17: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp + (*empty.Empty)(nil), // 17: google.protobuf.Empty } var file_google_monitoring_v3_notification_service_proto_depIdxs = []int32{ 13, // 0: google.monitoring.v3.ListNotificationChannelDescriptorsResponse.channel_descriptors:type_name -> google.monitoring.v3.NotificationChannelDescriptor @@ -1511,10 +1511,10 @@ type NotificationChannelServiceClient interface { // remain unchanged. UpdateNotificationChannel(ctx context.Context, in *UpdateNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error) // Deletes a notification channel. - DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Causes a verification code to be delivered to the channel. The code // can then be supplied in `VerifyNotificationChannel` to verify the channel. - SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Requests a verification code for an already verified channel that can then // be used in a call to VerifyNotificationChannel() on a different channel // with an equivalent identity in the same or in a different project. This @@ -1605,8 +1605,8 @@ func (c *notificationChannelServiceClient) UpdateNotificationChannel(ctx context return out, nil } -func (c *notificationChannelServiceClient) DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *notificationChannelServiceClient) DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel", in, out, opts...) if err != nil { return nil, err @@ -1614,8 +1614,8 @@ func (c *notificationChannelServiceClient) DeleteNotificationChannel(ctx context return out, nil } -func (c *notificationChannelServiceClient) SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *notificationChannelServiceClient) SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode", in, out, opts...) if err != nil { return nil, err @@ -1664,10 +1664,10 @@ type NotificationChannelServiceServer interface { // remain unchanged. UpdateNotificationChannel(context.Context, *UpdateNotificationChannelRequest) (*NotificationChannel, error) // Deletes a notification channel. - DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*emptypb.Empty, error) + DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*empty.Empty, error) // Causes a verification code to be delivered to the channel. The code // can then be supplied in `VerifyNotificationChannel` to verify the channel. - SendNotificationChannelVerificationCode(context.Context, *SendNotificationChannelVerificationCodeRequest) (*emptypb.Empty, error) + SendNotificationChannelVerificationCode(context.Context, *SendNotificationChannelVerificationCodeRequest) (*empty.Empty, error) // Requests a verification code for an already verified channel that can then // be used in a call to VerifyNotificationChannel() on a different channel // with an equivalent identity in the same or in a different project. This @@ -1718,10 +1718,10 @@ func (*UnimplementedNotificationChannelServiceServer) CreateNotificationChannel( func (*UnimplementedNotificationChannelServiceServer) UpdateNotificationChannel(context.Context, *UpdateNotificationChannelRequest) (*NotificationChannel, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNotificationChannel not implemented") } -func (*UnimplementedNotificationChannelServiceServer) DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*emptypb.Empty, error) { +func (*UnimplementedNotificationChannelServiceServer) DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNotificationChannel not implemented") } -func (*UnimplementedNotificationChannelServiceServer) SendNotificationChannelVerificationCode(context.Context, *SendNotificationChannelVerificationCodeRequest) (*emptypb.Empty, error) { +func (*UnimplementedNotificationChannelServiceServer) SendNotificationChannelVerificationCode(context.Context, *SendNotificationChannelVerificationCodeRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SendNotificationChannelVerificationCode not implemented") } func (*UnimplementedNotificationChannelServiceServer) GetNotificationChannelVerificationCode(context.Context, *GetNotificationChannelVerificationCodeRequest) (*GetNotificationChannelVerificationCodeResponse, error) { diff --git a/monitoring/apiv3/v2/monitoringpb/query_service.pb.go b/monitoring/apiv3/v2/monitoringpb/query_service.pb.go index 7c62db39ea58..94378dd3593f 100644 --- a/monitoring/apiv3/v2/monitoringpb/query_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/query_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/query_service.proto package monitoringpb diff --git a/monitoring/apiv3/v2/monitoringpb/service.pb.go b/monitoring/apiv3/v2/monitoringpb/service.pb.go index 5d162598029b..d151ad7bd163 100644 --- a/monitoring/apiv3/v2/monitoringpb/service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/service.proto package monitoringpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" calendarperiod "google.golang.org/genproto/googleapis/type/calendarperiod" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -400,7 +400,7 @@ func (m *ServiceLevelObjective) GetPeriod() isServiceLevelObjective_Period { return nil } -func (x *ServiceLevelObjective) GetRollingPeriod() *durationpb.Duration { +func (x *ServiceLevelObjective) GetRollingPeriod() *duration.Duration { if x, ok := x.GetPeriod().(*ServiceLevelObjective_RollingPeriod); ok { return x.RollingPeriod } @@ -428,7 +428,7 @@ type isServiceLevelObjective_Period interface { type ServiceLevelObjective_RollingPeriod struct { // A rolling time period, semantically "in the past ``". // Must be an integer multiple of 1 day no larger than 30 days. - RollingPeriod *durationpb.Duration `protobuf:"bytes,5,opt,name=rolling_period,json=rollingPeriod,proto3,oneof"` + RollingPeriod *duration.Duration `protobuf:"bytes,5,opt,name=rolling_period,json=rollingPeriod,proto3,oneof"` } type ServiceLevelObjective_CalendarPeriod struct { @@ -1004,7 +1004,7 @@ type WindowsBasedSli struct { WindowCriterion isWindowsBasedSli_WindowCriterion `protobuf_oneof:"window_criterion"` // Duration over which window quality is evaluated. Must be an integer // fraction of a day and at least `60s`. - WindowPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=window_period,json=windowPeriod,proto3" json:"window_period,omitempty"` + WindowPeriod *duration.Duration `protobuf:"bytes,4,opt,name=window_period,json=windowPeriod,proto3" json:"window_period,omitempty"` } func (x *WindowsBasedSli) Reset() { @@ -1074,7 +1074,7 @@ func (x *WindowsBasedSli) GetMetricSumInRange() *WindowsBasedSli_MetricRange { return nil } -func (x *WindowsBasedSli) GetWindowPeriod() *durationpb.Duration { +func (x *WindowsBasedSli) GetWindowPeriod() *duration.Duration { if x != nil { return x.WindowPeriod } @@ -1587,7 +1587,7 @@ type BasicSli_LatencyCriteria struct { // Good service is defined to be the count of requests made to this service // that return in no more than `threshold`. - Threshold *durationpb.Duration `protobuf:"bytes,3,opt,name=threshold,proto3" json:"threshold,omitempty"` + Threshold *duration.Duration `protobuf:"bytes,3,opt,name=threshold,proto3" json:"threshold,omitempty"` } func (x *BasicSli_LatencyCriteria) Reset() { @@ -1622,7 +1622,7 @@ func (*BasicSli_LatencyCriteria) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_service_proto_rawDescGZIP(), []int{3, 1} } -func (x *BasicSli_LatencyCriteria) GetThreshold() *durationpb.Duration { +func (x *BasicSli_LatencyCriteria) GetThreshold() *duration.Duration { if x != nil { return x.Threshold } @@ -2133,7 +2133,7 @@ var file_google_monitoring_v3_service_proto_goTypes = []interface{}{ (*BasicSli_LatencyCriteria)(nil), // 20: google.monitoring.v3.BasicSli.LatencyCriteria (*WindowsBasedSli_PerformanceThreshold)(nil), // 21: google.monitoring.v3.WindowsBasedSli.PerformanceThreshold (*WindowsBasedSli_MetricRange)(nil), // 22: google.monitoring.v3.WindowsBasedSli.MetricRange - (*durationpb.Duration)(nil), // 23: google.protobuf.Duration + (*duration.Duration)(nil), // 23: google.protobuf.Duration (calendarperiod.CalendarPeriod)(0), // 24: google.type.CalendarPeriod } var file_google_monitoring_v3_service_proto_depIdxs = []int32{ diff --git a/monitoring/apiv3/v2/monitoringpb/service_service.pb.go b/monitoring/apiv3/v2/monitoringpb/service_service.pb.go index e714a59b6a2b..34d0160dc68e 100644 --- a/monitoring/apiv3/v2/monitoringpb/service_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/service_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/service_service.proto package monitoringpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -336,7 +336,7 @@ type UpdateServiceRequest struct { // The given `name` specifies the resource to update. Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // A set of field paths defining which fields to use for the update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateServiceRequest) Reset() { @@ -378,7 +378,7 @@ func (x *UpdateServiceRequest) GetService() *Service { return nil } -func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServiceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -737,7 +737,7 @@ type UpdateServiceLevelObjectiveRequest struct { // The given `name` specifies the resource to update. ServiceLevelObjective *ServiceLevelObjective `protobuf:"bytes,1,opt,name=service_level_objective,json=serviceLevelObjective,proto3" json:"service_level_objective,omitempty"` // A set of field paths defining which fields to use for the update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateServiceLevelObjectiveRequest) Reset() { @@ -779,7 +779,7 @@ func (x *UpdateServiceLevelObjectiveRequest) GetServiceLevelObjective() *Service return nil } -func (x *UpdateServiceLevelObjectiveRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServiceLevelObjectiveRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1154,10 +1154,10 @@ var file_google_monitoring_v3_service_service_proto_goTypes = []interface{}{ (*UpdateServiceLevelObjectiveRequest)(nil), // 10: google.monitoring.v3.UpdateServiceLevelObjectiveRequest (*DeleteServiceLevelObjectiveRequest)(nil), // 11: google.monitoring.v3.DeleteServiceLevelObjectiveRequest (*Service)(nil), // 12: google.monitoring.v3.Service - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask (*ServiceLevelObjective)(nil), // 14: google.monitoring.v3.ServiceLevelObjective (ServiceLevelObjective_View)(0), // 15: google.monitoring.v3.ServiceLevelObjective.View - (*emptypb.Empty)(nil), // 16: google.protobuf.Empty + (*empty.Empty)(nil), // 16: google.protobuf.Empty } var file_google_monitoring_v3_service_service_proto_depIdxs = []int32{ 12, // 0: google.monitoring.v3.CreateServiceRequest.service:type_name -> google.monitoring.v3.Service @@ -1390,7 +1390,7 @@ type ServiceMonitoringServiceClient interface { // Update this `Service`. UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*Service, error) // Soft delete this `Service`. - DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Create a `ServiceLevelObjective` for the given `Service`. CreateServiceLevelObjective(ctx context.Context, in *CreateServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*ServiceLevelObjective, error) // Get a `ServiceLevelObjective` by name. @@ -1400,7 +1400,7 @@ type ServiceMonitoringServiceClient interface { // Update the given `ServiceLevelObjective`. UpdateServiceLevelObjective(ctx context.Context, in *UpdateServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*ServiceLevelObjective, error) // Delete the given `ServiceLevelObjective`. - DeleteServiceLevelObjective(ctx context.Context, in *DeleteServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteServiceLevelObjective(ctx context.Context, in *DeleteServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type serviceMonitoringServiceClient struct { @@ -1447,8 +1447,8 @@ func (c *serviceMonitoringServiceClient) UpdateService(ctx context.Context, in * return out, nil } -func (c *serviceMonitoringServiceClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *serviceMonitoringServiceClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.ServiceMonitoringService/DeleteService", in, out, opts...) if err != nil { return nil, err @@ -1492,8 +1492,8 @@ func (c *serviceMonitoringServiceClient) UpdateServiceLevelObjective(ctx context return out, nil } -func (c *serviceMonitoringServiceClient) DeleteServiceLevelObjective(ctx context.Context, in *DeleteServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *serviceMonitoringServiceClient) DeleteServiceLevelObjective(ctx context.Context, in *DeleteServiceLevelObjectiveRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.ServiceMonitoringService/DeleteServiceLevelObjective", in, out, opts...) if err != nil { return nil, err @@ -1512,7 +1512,7 @@ type ServiceMonitoringServiceServer interface { // Update this `Service`. UpdateService(context.Context, *UpdateServiceRequest) (*Service, error) // Soft delete this `Service`. - DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error) + DeleteService(context.Context, *DeleteServiceRequest) (*empty.Empty, error) // Create a `ServiceLevelObjective` for the given `Service`. CreateServiceLevelObjective(context.Context, *CreateServiceLevelObjectiveRequest) (*ServiceLevelObjective, error) // Get a `ServiceLevelObjective` by name. @@ -1522,7 +1522,7 @@ type ServiceMonitoringServiceServer interface { // Update the given `ServiceLevelObjective`. UpdateServiceLevelObjective(context.Context, *UpdateServiceLevelObjectiveRequest) (*ServiceLevelObjective, error) // Delete the given `ServiceLevelObjective`. - DeleteServiceLevelObjective(context.Context, *DeleteServiceLevelObjectiveRequest) (*emptypb.Empty, error) + DeleteServiceLevelObjective(context.Context, *DeleteServiceLevelObjectiveRequest) (*empty.Empty, error) } // UnimplementedServiceMonitoringServiceServer can be embedded to have forward compatible implementations. @@ -1541,7 +1541,7 @@ func (*UnimplementedServiceMonitoringServiceServer) ListServices(context.Context func (*UnimplementedServiceMonitoringServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateService not implemented") } -func (*UnimplementedServiceMonitoringServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error) { +func (*UnimplementedServiceMonitoringServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteService not implemented") } func (*UnimplementedServiceMonitoringServiceServer) CreateServiceLevelObjective(context.Context, *CreateServiceLevelObjectiveRequest) (*ServiceLevelObjective, error) { @@ -1556,7 +1556,7 @@ func (*UnimplementedServiceMonitoringServiceServer) ListServiceLevelObjectives(c func (*UnimplementedServiceMonitoringServiceServer) UpdateServiceLevelObjective(context.Context, *UpdateServiceLevelObjectiveRequest) (*ServiceLevelObjective, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceLevelObjective not implemented") } -func (*UnimplementedServiceMonitoringServiceServer) DeleteServiceLevelObjective(context.Context, *DeleteServiceLevelObjectiveRequest) (*emptypb.Empty, error) { +func (*UnimplementedServiceMonitoringServiceServer) DeleteServiceLevelObjective(context.Context, *DeleteServiceLevelObjectiveRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteServiceLevelObjective not implemented") } diff --git a/monitoring/apiv3/v2/monitoringpb/span_context.pb.go b/monitoring/apiv3/v2/monitoringpb/span_context.pb.go index cf2bc553642b..905b4579baec 100644 --- a/monitoring/apiv3/v2/monitoringpb/span_context.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/span_context.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/span_context.proto package monitoringpb diff --git a/monitoring/apiv3/v2/monitoringpb/uptime.pb.go b/monitoring/apiv3/v2/monitoringpb/uptime.pb.go index 03b27696317e..0952a5f4eab0 100644 --- a/monitoring/apiv3/v2/monitoringpb/uptime.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/uptime.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/uptime.proto package monitoringpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" monitoredres "google.golang.org/genproto/googleapis/api/monitoredres" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -545,10 +545,10 @@ type UptimeCheckConfig struct { // Currently, the only supported values are `60s` (1 minute), `300s` // (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional, // defaults to `60s`. - Period *durationpb.Duration `protobuf:"bytes,7,opt,name=period,proto3" json:"period,omitempty"` + Period *duration.Duration `protobuf:"bytes,7,opt,name=period,proto3" json:"period,omitempty"` // The maximum amount of time to wait for the request to complete (must be // between 1 and 60 seconds). Required. - Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // The content that is expected to appear in the data returned by the target // server against which the check is run. Currently, only the first entry // in the `content_matchers` list is supported, and additional entries will @@ -665,14 +665,14 @@ func (x *UptimeCheckConfig) GetTcpCheck() *UptimeCheckConfig_TcpCheck { return nil } -func (x *UptimeCheckConfig) GetPeriod() *durationpb.Duration { +func (x *UptimeCheckConfig) GetPeriod() *duration.Duration { if x != nil { return x.Period } return nil } -func (x *UptimeCheckConfig) GetTimeout() *durationpb.Duration { +func (x *UptimeCheckConfig) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -1481,7 +1481,7 @@ var file_google_monitoring_v3_uptime_proto_goTypes = []interface{}{ (*UptimeCheckConfig_HttpCheck_BasicAuthentication)(nil), // 13: google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication nil, // 14: google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry (*monitoredres.MonitoredResource)(nil), // 15: google.api.MonitoredResource - (*durationpb.Duration)(nil), // 16: google.protobuf.Duration + (*duration.Duration)(nil), // 16: google.protobuf.Duration } var file_google_monitoring_v3_uptime_proto_depIdxs = []int32{ 2, // 0: google.monitoring.v3.InternalChecker.state:type_name -> google.monitoring.v3.InternalChecker.State diff --git a/monitoring/apiv3/v2/monitoringpb/uptime_service.pb.go b/monitoring/apiv3/v2/monitoringpb/uptime_service.pb.go index f56305af5357..a0d2d355ede1 100644 --- a/monitoring/apiv3/v2/monitoringpb/uptime_service.pb.go +++ b/monitoring/apiv3/v2/monitoringpb/uptime_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/v3/uptime_service.proto package monitoringpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -313,7 +313,7 @@ type UpdateUptimeCheckConfigRequest struct { // configuration are updated with values from the new configuration. If this // field is empty, then the current configuration is completely replaced with // the new configuration. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. If an `updateMask` has been specified, this field gives // the values for the set of fields mentioned in the `updateMask`. If an // `updateMask` has not been given, this Uptime check configuration replaces @@ -360,7 +360,7 @@ func (*UpdateUptimeCheckConfigRequest) Descriptor() ([]byte, []int) { return file_google_monitoring_v3_uptime_service_proto_rawDescGZIP(), []int{4} } -func (x *UpdateUptimeCheckConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateUptimeCheckConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -773,9 +773,9 @@ var file_google_monitoring_v3_uptime_service_proto_goTypes = []interface{}{ (*ListUptimeCheckIpsRequest)(nil), // 6: google.monitoring.v3.ListUptimeCheckIpsRequest (*ListUptimeCheckIpsResponse)(nil), // 7: google.monitoring.v3.ListUptimeCheckIpsResponse (*UptimeCheckConfig)(nil), // 8: google.monitoring.v3.UptimeCheckConfig - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask (*UptimeCheckIp)(nil), // 10: google.monitoring.v3.UptimeCheckIp - (*emptypb.Empty)(nil), // 11: google.protobuf.Empty + (*empty.Empty)(nil), // 11: google.protobuf.Empty } var file_google_monitoring_v3_uptime_service_proto_depIdxs = []int32{ 8, // 0: google.monitoring.v3.ListUptimeCheckConfigsResponse.uptime_check_configs:type_name -> google.monitoring.v3.UptimeCheckConfig @@ -953,7 +953,7 @@ type UptimeCheckServiceClient interface { // Deletes an Uptime check configuration. Note that this method will fail // if the Uptime check configuration is referenced by an alert policy or // other dependent configs that would be rendered invalid by the deletion. - DeleteUptimeCheckConfig(ctx context.Context, in *DeleteUptimeCheckConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteUptimeCheckConfig(ctx context.Context, in *DeleteUptimeCheckConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Returns the list of IP addresses that checkers run from ListUptimeCheckIps(ctx context.Context, in *ListUptimeCheckIpsRequest, opts ...grpc.CallOption) (*ListUptimeCheckIpsResponse, error) } @@ -1002,8 +1002,8 @@ func (c *uptimeCheckServiceClient) UpdateUptimeCheckConfig(ctx context.Context, return out, nil } -func (c *uptimeCheckServiceClient) DeleteUptimeCheckConfig(ctx context.Context, in *DeleteUptimeCheckConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *uptimeCheckServiceClient) DeleteUptimeCheckConfig(ctx context.Context, in *DeleteUptimeCheckConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.v3.UptimeCheckService/DeleteUptimeCheckConfig", in, out, opts...) if err != nil { return nil, err @@ -1037,7 +1037,7 @@ type UptimeCheckServiceServer interface { // Deletes an Uptime check configuration. Note that this method will fail // if the Uptime check configuration is referenced by an alert policy or // other dependent configs that would be rendered invalid by the deletion. - DeleteUptimeCheckConfig(context.Context, *DeleteUptimeCheckConfigRequest) (*emptypb.Empty, error) + DeleteUptimeCheckConfig(context.Context, *DeleteUptimeCheckConfigRequest) (*empty.Empty, error) // Returns the list of IP addresses that checkers run from ListUptimeCheckIps(context.Context, *ListUptimeCheckIpsRequest) (*ListUptimeCheckIpsResponse, error) } @@ -1058,7 +1058,7 @@ func (*UnimplementedUptimeCheckServiceServer) CreateUptimeCheckConfig(context.Co func (*UnimplementedUptimeCheckServiceServer) UpdateUptimeCheckConfig(context.Context, *UpdateUptimeCheckConfigRequest) (*UptimeCheckConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateUptimeCheckConfig not implemented") } -func (*UnimplementedUptimeCheckServiceServer) DeleteUptimeCheckConfig(context.Context, *DeleteUptimeCheckConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedUptimeCheckServiceServer) DeleteUptimeCheckConfig(context.Context, *DeleteUptimeCheckConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteUptimeCheckConfig not implemented") } func (*UnimplementedUptimeCheckServiceServer) ListUptimeCheckIps(context.Context, *ListUptimeCheckIpsRequest) (*ListUptimeCheckIpsResponse, error) { diff --git a/monitoring/dashboard/apiv1/dashboardpb/alertchart.pb.go b/monitoring/dashboard/apiv1/dashboardpb/alertchart.pb.go index 6d79333ae4a6..cf1f62574b43 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/alertchart.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/alertchart.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/alertchart.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/collapsible_group.pb.go b/monitoring/dashboard/apiv1/dashboardpb/collapsible_group.pb.go index e4568cb484b5..b7cb5f63ef72 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/collapsible_group.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/collapsible_group.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/collapsible_group.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/common.pb.go b/monitoring/dashboard/apiv1/dashboardpb/common.pb.go index 67640af5661b..977d9d19b81f 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/common.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/common.proto package dashboardpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -611,7 +611,7 @@ type Aggregation struct { // specified, then this field is ignored. // // The maximum value of the `alignment_period` is 2 years, or 104 weeks. - AlignmentPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"` + AlignmentPeriod *duration.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"` // An `Aligner` describes how to bring the data points in a single // time series into temporal alignment. Except for `ALIGN_NONE`, all // alignments cause all the data points in an `alignment_period` to be @@ -693,7 +693,7 @@ func (*Aggregation) Descriptor() ([]byte, []int) { return file_google_monitoring_dashboard_v1_common_proto_rawDescGZIP(), []int{0} } -func (x *Aggregation) GetAlignmentPeriod() *durationpb.Duration { +func (x *Aggregation) GetAlignmentPeriod() *duration.Duration { if x != nil { return x.AlignmentPeriod } @@ -1018,7 +1018,7 @@ var file_google_monitoring_dashboard_v1_common_proto_goTypes = []interface{}{ (*Aggregation)(nil), // 5: google.monitoring.dashboard.v1.Aggregation (*PickTimeSeriesFilter)(nil), // 6: google.monitoring.dashboard.v1.PickTimeSeriesFilter (*StatisticalTimeSeriesFilter)(nil), // 7: google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - (*durationpb.Duration)(nil), // 8: google.protobuf.Duration + (*duration.Duration)(nil), // 8: google.protobuf.Duration } var file_google_monitoring_dashboard_v1_common_proto_depIdxs = []int32{ 8, // 0: google.monitoring.dashboard.v1.Aggregation.alignment_period:type_name -> google.protobuf.Duration diff --git a/monitoring/dashboard/apiv1/dashboardpb/dashboard.pb.go b/monitoring/dashboard/apiv1/dashboardpb/dashboard.pb.go index b4a86487ac53..18f2fb8682de 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/dashboard.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/dashboard.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/dashboard.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/dashboard_filter.pb.go b/monitoring/dashboard/apiv1/dashboardpb/dashboard_filter.pb.go index c77b9e194286..37362038e8cc 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/dashboard_filter.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/dashboard_filter.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/dashboard_filter.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/dashboards_service.pb.go b/monitoring/dashboard/apiv1/dashboardpb/dashboards_service.pb.go index a2ce5bde2f8a..67e8ae8735cf 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/dashboards_service.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/dashboards_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/dashboards_service.proto package dashboardpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -586,7 +586,7 @@ var file_google_monitoring_dashboard_v1_dashboards_service_proto_goTypes = []int (*DeleteDashboardRequest)(nil), // 4: google.monitoring.dashboard.v1.DeleteDashboardRequest (*UpdateDashboardRequest)(nil), // 5: google.monitoring.dashboard.v1.UpdateDashboardRequest (*Dashboard)(nil), // 6: google.monitoring.dashboard.v1.Dashboard - (*emptypb.Empty)(nil), // 7: google.protobuf.Empty + (*empty.Empty)(nil), // 7: google.protobuf.Empty } var file_google_monitoring_dashboard_v1_dashboards_service_proto_depIdxs = []int32{ 6, // 0: google.monitoring.dashboard.v1.CreateDashboardRequest.dashboard:type_name -> google.monitoring.dashboard.v1.Dashboard @@ -741,7 +741,7 @@ type DashboardsServiceClient interface { // This method requires the `monitoring.dashboards.delete` permission // on the specified dashboard. For more information, see // [Cloud Identity and Access Management](https://cloud.google.com/iam). - DeleteDashboard(ctx context.Context, in *DeleteDashboardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDashboard(ctx context.Context, in *DeleteDashboardRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Replaces an existing custom dashboard with a new definition. // // This method requires the `monitoring.dashboards.update` permission @@ -785,8 +785,8 @@ func (c *dashboardsServiceClient) GetDashboard(ctx context.Context, in *GetDashb return out, nil } -func (c *dashboardsServiceClient) DeleteDashboard(ctx context.Context, in *DeleteDashboardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *dashboardsServiceClient) DeleteDashboard(ctx context.Context, in *DeleteDashboardRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.monitoring.dashboard.v1.DashboardsService/DeleteDashboard", in, out, opts...) if err != nil { return nil, err @@ -825,7 +825,7 @@ type DashboardsServiceServer interface { // This method requires the `monitoring.dashboards.delete` permission // on the specified dashboard. For more information, see // [Cloud Identity and Access Management](https://cloud.google.com/iam). - DeleteDashboard(context.Context, *DeleteDashboardRequest) (*emptypb.Empty, error) + DeleteDashboard(context.Context, *DeleteDashboardRequest) (*empty.Empty, error) // Replaces an existing custom dashboard with a new definition. // // This method requires the `monitoring.dashboards.update` permission @@ -847,7 +847,7 @@ func (*UnimplementedDashboardsServiceServer) ListDashboards(context.Context, *Li func (*UnimplementedDashboardsServiceServer) GetDashboard(context.Context, *GetDashboardRequest) (*Dashboard, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDashboard not implemented") } -func (*UnimplementedDashboardsServiceServer) DeleteDashboard(context.Context, *DeleteDashboardRequest) (*emptypb.Empty, error) { +func (*UnimplementedDashboardsServiceServer) DeleteDashboard(context.Context, *DeleteDashboardRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDashboard not implemented") } func (*UnimplementedDashboardsServiceServer) UpdateDashboard(context.Context, *UpdateDashboardRequest) (*Dashboard, error) { diff --git a/monitoring/dashboard/apiv1/dashboardpb/drilldowns.pb.go b/monitoring/dashboard/apiv1/dashboardpb/drilldowns.pb.go index 4371246da871..08524e18c10b 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/drilldowns.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/drilldowns.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/drilldowns.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/layouts.pb.go b/monitoring/dashboard/apiv1/dashboardpb/layouts.pb.go index 3fc53f64d6a7..f95d77fe4a5e 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/layouts.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/layouts.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/layouts.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/logs_panel.pb.go b/monitoring/dashboard/apiv1/dashboardpb/logs_panel.pb.go index 85f1e57520d4..cc4608a2120a 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/logs_panel.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/logs_panel.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/logs_panel.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/metrics.pb.go b/monitoring/dashboard/apiv1/dashboardpb/metrics.pb.go index 6b35f028f895..1c22c967cc33 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/metrics.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/metrics.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/metrics.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/scorecard.pb.go b/monitoring/dashboard/apiv1/dashboardpb/scorecard.pb.go index 26a91b84c6bb..ca05a8c5f7ab 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/scorecard.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/scorecard.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/scorecard.proto package dashboardpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -260,7 +260,7 @@ type Scorecard_SparkChartView struct { // For example, if the data is published once every 10 minutes it would not // make sense to fetch and align data at one minute intervals. This field is // optional and exists only as a hint. - MinAlignmentPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` + MinAlignmentPeriod *duration.Duration `protobuf:"bytes,2,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` } func (x *Scorecard_SparkChartView) Reset() { @@ -302,7 +302,7 @@ func (x *Scorecard_SparkChartView) GetSparkChartType() SparkChartType { return SparkChartType_SPARK_CHART_TYPE_UNSPECIFIED } -func (x *Scorecard_SparkChartView) GetMinAlignmentPeriod() *durationpb.Duration { +func (x *Scorecard_SparkChartView) GetMinAlignmentPeriod() *duration.Duration { if x != nil { return x.MinAlignmentPeriod } @@ -404,7 +404,7 @@ var file_google_monitoring_dashboard_v1_scorecard_proto_goTypes = []interface{}{ (*TimeSeriesQuery)(nil), // 3: google.monitoring.dashboard.v1.TimeSeriesQuery (*Threshold)(nil), // 4: google.monitoring.dashboard.v1.Threshold (SparkChartType)(0), // 5: google.monitoring.dashboard.v1.SparkChartType - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (*duration.Duration)(nil), // 6: google.protobuf.Duration } var file_google_monitoring_dashboard_v1_scorecard_proto_depIdxs = []int32{ 3, // 0: google.monitoring.dashboard.v1.Scorecard.time_series_query:type_name -> google.monitoring.dashboard.v1.TimeSeriesQuery diff --git a/monitoring/dashboard/apiv1/dashboardpb/service.pb.go b/monitoring/dashboard/apiv1/dashboardpb/service.pb.go index 7902da1cb7e6..18aab2e9b5b5 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/service.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/service.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/table.pb.go b/monitoring/dashboard/apiv1/dashboardpb/table.pb.go index 6cad36ff3050..348f2e38c951 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/table.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/table.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/table.proto package dashboardpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -105,7 +105,7 @@ type TimeSeriesTable_TableDataSet struct { // For example, if the data is published once every 10 minutes, the // `min_alignment_period` should be at least 10 minutes. It would not // make sense to fetch and align data at one minute intervals. - MinAlignmentPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` + MinAlignmentPeriod *duration.Duration `protobuf:"bytes,3,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` // Optional. Table display options for configuring how the table is rendered. TableDisplayOptions *TableDisplayOptions `protobuf:"bytes,4,opt,name=table_display_options,json=tableDisplayOptions,proto3" json:"table_display_options,omitempty"` } @@ -156,7 +156,7 @@ func (x *TimeSeriesTable_TableDataSet) GetTableTemplate() string { return "" } -func (x *TimeSeriesTable_TableDataSet) GetMinAlignmentPeriod() *durationpb.Duration { +func (x *TimeSeriesTable_TableDataSet) GetMinAlignmentPeriod() *duration.Duration { if x != nil { return x.MinAlignmentPeriod } @@ -253,7 +253,7 @@ var file_google_monitoring_dashboard_v1_table_proto_goTypes = []interface{}{ (*TimeSeriesTable)(nil), // 0: google.monitoring.dashboard.v1.TimeSeriesTable (*TimeSeriesTable_TableDataSet)(nil), // 1: google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet (*TimeSeriesQuery)(nil), // 2: google.monitoring.dashboard.v1.TimeSeriesQuery - (*durationpb.Duration)(nil), // 3: google.protobuf.Duration + (*duration.Duration)(nil), // 3: google.protobuf.Duration (*TableDisplayOptions)(nil), // 4: google.monitoring.dashboard.v1.TableDisplayOptions } var file_google_monitoring_dashboard_v1_table_proto_depIdxs = []int32{ diff --git a/monitoring/dashboard/apiv1/dashboardpb/table_display_options.pb.go b/monitoring/dashboard/apiv1/dashboardpb/table_display_options.pb.go index 92721e6cce76..1808d29446fc 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/table_display_options.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/table_display_options.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/table_display_options.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/text.pb.go b/monitoring/dashboard/apiv1/dashboardpb/text.pb.go index e3d38d213ae1..e6cfdd96c275 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/text.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/text.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/text.proto package dashboardpb diff --git a/monitoring/dashboard/apiv1/dashboardpb/widget.pb.go b/monitoring/dashboard/apiv1/dashboardpb/widget.pb.go index 741e0e1d10ee..f9cb56c95550 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/widget.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/widget.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/widget.proto package dashboardpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -128,7 +128,7 @@ func (x *Widget) GetText() *Text { return nil } -func (x *Widget) GetBlank() *emptypb.Empty { +func (x *Widget) GetBlank() *empty.Empty { if x, ok := x.GetContent().(*Widget_Blank); ok { return x.Blank } @@ -184,7 +184,7 @@ type Widget_Text struct { type Widget_Blank struct { // A blank space. - Blank *emptypb.Empty `protobuf:"bytes,5,opt,name=blank,proto3,oneof"` + Blank *empty.Empty `protobuf:"bytes,5,opt,name=blank,proto3,oneof"` } type Widget_AlertChart struct { @@ -334,7 +334,7 @@ var file_google_monitoring_dashboard_v1_widget_proto_goTypes = []interface{}{ (*XyChart)(nil), // 1: google.monitoring.dashboard.v1.XyChart (*Scorecard)(nil), // 2: google.monitoring.dashboard.v1.Scorecard (*Text)(nil), // 3: google.monitoring.dashboard.v1.Text - (*emptypb.Empty)(nil), // 4: google.protobuf.Empty + (*empty.Empty)(nil), // 4: google.protobuf.Empty (*AlertChart)(nil), // 5: google.monitoring.dashboard.v1.AlertChart (*TimeSeriesTable)(nil), // 6: google.monitoring.dashboard.v1.TimeSeriesTable (*CollapsibleGroup)(nil), // 7: google.monitoring.dashboard.v1.CollapsibleGroup diff --git a/monitoring/dashboard/apiv1/dashboardpb/xychart.pb.go b/monitoring/dashboard/apiv1/dashboardpb/xychart.pb.go index 64116618875b..3bf286e0e45c 100644 --- a/monitoring/dashboard/apiv1/dashboardpb/xychart.pb.go +++ b/monitoring/dashboard/apiv1/dashboardpb/xychart.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/dashboard/v1/xychart.proto package dashboardpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -286,7 +286,7 @@ type XyChart struct { // (e.g., week-over-week metrics). // The duration must be positive, and it can only be applied to charts with // data sets of LINE plot type. - TimeshiftDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=timeshift_duration,json=timeshiftDuration,proto3" json:"timeshift_duration,omitempty"` + TimeshiftDuration *duration.Duration `protobuf:"bytes,4,opt,name=timeshift_duration,json=timeshiftDuration,proto3" json:"timeshift_duration,omitempty"` // Threshold lines drawn horizontally across the chart. Thresholds []*Threshold `protobuf:"bytes,5,rep,name=thresholds,proto3" json:"thresholds,omitempty"` // The properties applied to the X axis. @@ -338,7 +338,7 @@ func (x *XyChart) GetDataSets() []*XyChart_DataSet { return nil } -func (x *XyChart) GetTimeshiftDuration() *durationpb.Duration { +func (x *XyChart) GetTimeshiftDuration() *duration.Duration { if x != nil { return x.TimeshiftDuration } @@ -449,7 +449,7 @@ type XyChart_DataSet struct { // For example, if the data is published once every 10 minutes, the // `min_alignment_period` should be at least 10 minutes. It would not // make sense to fetch and align data at one minute intervals. - MinAlignmentPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` + MinAlignmentPeriod *duration.Duration `protobuf:"bytes,4,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"` // Optional. The target axis to use for plotting the metric. TargetAxis XyChart_DataSet_TargetAxis `protobuf:"varint,5,opt,name=target_axis,json=targetAxis,proto3,enum=google.monitoring.dashboard.v1.XyChart_DataSet_TargetAxis" json:"target_axis,omitempty"` } @@ -507,7 +507,7 @@ func (x *XyChart_DataSet) GetLegendTemplate() string { return "" } -func (x *XyChart_DataSet) GetMinAlignmentPeriod() *durationpb.Duration { +func (x *XyChart_DataSet) GetMinAlignmentPeriod() *duration.Duration { if x != nil { return x.MinAlignmentPeriod } @@ -724,7 +724,7 @@ var file_google_monitoring_dashboard_v1_xychart_proto_goTypes = []interface{}{ (*ChartOptions)(nil), // 5: google.monitoring.dashboard.v1.ChartOptions (*XyChart_DataSet)(nil), // 6: google.monitoring.dashboard.v1.XyChart.DataSet (*XyChart_Axis)(nil), // 7: google.monitoring.dashboard.v1.XyChart.Axis - (*durationpb.Duration)(nil), // 8: google.protobuf.Duration + (*duration.Duration)(nil), // 8: google.protobuf.Duration (*Threshold)(nil), // 9: google.monitoring.dashboard.v1.Threshold (*TimeSeriesQuery)(nil), // 10: google.monitoring.dashboard.v1.TimeSeriesQuery } diff --git a/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scope.pb.go b/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scope.pb.go index 300ac8facfb8..208fe83fcbc9 100644 --- a/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scope.pb.go +++ b/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scope.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/metricsscope/v1/metrics_scope.proto package metricsscopepb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -54,9 +54,9 @@ type MetricsScope struct { // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when this `Metrics Scope` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when this `Metrics Scope` record was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The list of projects monitored by this `Metrics Scope`. MonitoredProjects []*MonitoredProject `protobuf:"bytes,4,rep,name=monitored_projects,json=monitoredProjects,proto3" json:"monitored_projects,omitempty"` } @@ -100,14 +100,14 @@ func (x *MetricsScope) GetName() string { return "" } -func (x *MetricsScope) GetCreateTime() *timestamppb.Timestamp { +func (x *MetricsScope) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MetricsScope) GetUpdateTime() *timestamppb.Timestamp { +func (x *MetricsScope) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -136,7 +136,7 @@ type MonitoredProject struct { // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when this `MonitoredProject` was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *MonitoredProject) Reset() { @@ -178,7 +178,7 @@ func (x *MonitoredProject) GetName() string { return "" } -func (x *MonitoredProject) GetCreateTime() *timestamppb.Timestamp { +func (x *MonitoredProject) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -271,9 +271,9 @@ func file_google_monitoring_metricsscope_v1_metrics_scope_proto_rawDescGZIP() [] var file_google_monitoring_metricsscope_v1_metrics_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_monitoring_metricsscope_v1_metrics_scope_proto_goTypes = []interface{}{ - (*MetricsScope)(nil), // 0: google.monitoring.metricsscope.v1.MetricsScope - (*MonitoredProject)(nil), // 1: google.monitoring.metricsscope.v1.MonitoredProject - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*MetricsScope)(nil), // 0: google.monitoring.metricsscope.v1.MetricsScope + (*MonitoredProject)(nil), // 1: google.monitoring.metricsscope.v1.MonitoredProject + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_google_monitoring_metricsscope_v1_metrics_scope_proto_depIdxs = []int32{ 2, // 0: google.monitoring.metricsscope.v1.MetricsScope.create_time:type_name -> google.protobuf.Timestamp diff --git a/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scopes.pb.go b/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scopes.pb.go index 5243ad7f9a5b..f9534acb2622 100644 --- a/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scopes.pb.go +++ b/monitoring/metricsscope/apiv1/metricsscopepb/metrics_scopes.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/monitoring/metricsscope/v1/metrics_scopes.proto package metricsscopepb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -384,9 +384,9 @@ type OperationMetadata struct { // Current state of the batch operation. State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.monitoring.metricsscope.v1.OperationMetadata_State" json:"state,omitempty"` // The time when the batch request was received. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the operation result was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *OperationMetadata) Reset() { @@ -428,14 +428,14 @@ func (x *OperationMetadata) GetState() OperationMetadata_State { return OperationMetadata_STATE_UNSPECIFIED } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -647,7 +647,7 @@ var file_google_monitoring_metricsscope_v1_metrics_scopes_proto_goTypes = []inte (*OperationMetadata)(nil), // 6: google.monitoring.metricsscope.v1.OperationMetadata (*MetricsScope)(nil), // 7: google.monitoring.metricsscope.v1.MetricsScope (*MonitoredProject)(nil), // 8: google.monitoring.metricsscope.v1.MonitoredProject - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 10: google.longrunning.Operation } var file_google_monitoring_metricsscope_v1_metrics_scopes_proto_depIdxs = []int32{ diff --git a/networkconnectivity/apiv1/networkconnectivitypb/common.pb.go b/networkconnectivity/apiv1/networkconnectivitypb/common.pb.go index 48ccab271d05..1afdfa83dc95 100644 --- a/networkconnectivity/apiv1/networkconnectivitypb/common.pb.go +++ b/networkconnectivity/apiv1/networkconnectivitypb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/networkconnectivity/v1/common.proto package networkconnectivitypb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -44,9 +44,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -94,14 +94,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_networkconnectivity_v1_common_proto_rawDescGZIP(), []int{0} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -211,8 +211,8 @@ func file_google_cloud_networkconnectivity_v1_common_proto_rawDescGZIP() []byte var file_google_cloud_networkconnectivity_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_networkconnectivity_v1_common_proto_goTypes = []interface{}{ - (*OperationMetadata)(nil), // 0: google.cloud.networkconnectivity.v1.OperationMetadata - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*OperationMetadata)(nil), // 0: google.cloud.networkconnectivity.v1.OperationMetadata + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_networkconnectivity_v1_common_proto_depIdxs = []int32{ 1, // 0: google.cloud.networkconnectivity.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp diff --git a/networkconnectivity/apiv1/networkconnectivitypb/hub.pb.go b/networkconnectivity/apiv1/networkconnectivitypb/hub.pb.go index 72bcf1682edb..d118d8556a43 100644 --- a/networkconnectivity/apiv1/networkconnectivitypb/hub.pb.go +++ b/networkconnectivity/apiv1/networkconnectivitypb/hub.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/networkconnectivity/v1/hub.proto package networkconnectivitypb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -170,9 +170,9 @@ type Hub struct { // `projects/{project_number}/locations/global/hubs/{hub_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time the hub was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the hub was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional labels in key:value format. For more information about labels, see // [Requirements for // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). @@ -231,14 +231,14 @@ func (x *Hub) GetName() string { return "" } -func (x *Hub) GetCreateTime() *timestamppb.Timestamp { +func (x *Hub) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Hub) GetUpdateTime() *timestamppb.Timestamp { +func (x *Hub) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -363,9 +363,9 @@ type Spoke struct { // `projects/{project_number}/locations/{region}/spokes/{spoke_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time the spoke was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the spoke was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional labels in key:value format. For more information about labels, see // [Requirements for // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). @@ -427,14 +427,14 @@ func (x *Spoke) GetName() string { return "" } -func (x *Spoke) GetCreateTime() *timestamppb.Timestamp { +func (x *Spoke) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Spoke) GetUpdateTime() *timestamppb.Timestamp { +func (x *Spoke) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -799,7 +799,7 @@ type UpdateHubRequest struct { // relative to the resource, not the full request. A field is overwritten if // it is in the mask. If the user does not provide a mask, then all fields are // overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The state that the hub should be in after the update. Hub *Hub `protobuf:"bytes,2,opt,name=hub,proto3" json:"hub,omitempty"` // Optional. A unique request ID (optional). If you specify this ID, you can use it @@ -851,7 +851,7 @@ func (*UpdateHubRequest) Descriptor() ([]byte, []int) { return file_google_cloud_networkconnectivity_v1_hub_proto_rawDescGZIP(), []int{7} } -func (x *UpdateHubRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateHubRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1245,7 +1245,7 @@ type UpdateSpokeRequest struct { // update_mask are relative to the resource, not the full request. A field is // overwritten if it is in the mask. If the user does not provide a mask, then // all fields are overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The state that the spoke should be in after the update. Spoke *Spoke `protobuf:"bytes,2,opt,name=spoke,proto3" json:"spoke,omitempty"` // Optional. A unique request ID (optional). If you specify this ID, you can use it @@ -1297,7 +1297,7 @@ func (*UpdateSpokeRequest) Descriptor() ([]byte, []int) { return file_google_cloud_networkconnectivity_v1_hub_proto_rawDescGZIP(), []int{13} } -func (x *UpdateSpokeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSpokeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2217,8 +2217,8 @@ var file_google_cloud_networkconnectivity_v1_hub_proto_goTypes = []interface{}{ (*LocationMetadata)(nil), // 21: google.cloud.networkconnectivity.v1.LocationMetadata nil, // 22: google.cloud.networkconnectivity.v1.Hub.LabelsEntry nil, // 23: google.cloud.networkconnectivity.v1.Spoke.LabelsEntry - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 25: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 26: google.longrunning.Operation } var file_google_cloud_networkconnectivity_v1_hub_proto_depIdxs = []int32{ diff --git a/networkmanagement/apiv1/networkmanagementpb/connectivity_test.pb.go b/networkmanagement/apiv1/networkmanagementpb/connectivity_test.pb.go index 0d8690de6d1f..b01afdc803f2 100644 --- a/networkmanagement/apiv1/networkmanagementpb/connectivity_test.pb.go +++ b/networkmanagement/apiv1/networkmanagementpb/connectivity_test.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/networkmanagement/v1/connectivity_test.proto package networkmanagementpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -238,9 +238,9 @@ type ConnectivityTest struct { // Resource labels to represent user-provided metadata. Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. The time the test was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the test's configuration was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The reachability details of this test from the latest run. // The details are updated when creating a new test, updating an // existing test, or triggering a one-time rerun of an existing test. @@ -335,14 +335,14 @@ func (x *ConnectivityTest) GetLabels() map[string]string { return nil } -func (x *ConnectivityTest) GetCreateTime() *timestamppb.Timestamp { +func (x *ConnectivityTest) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ConnectivityTest) GetUpdateTime() *timestamppb.Timestamp { +func (x *ConnectivityTest) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -491,7 +491,7 @@ type ReachabilityDetails struct { // The overall result of the test's configuration analysis. Result ReachabilityDetails_Result `protobuf:"varint,1,opt,name=result,proto3,enum=google.cloud.networkmanagement.v1.ReachabilityDetails_Result" json:"result,omitempty"` // The time of the configuration analysis. - VerifyTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=verify_time,json=verifyTime,proto3" json:"verify_time,omitempty"` + VerifyTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=verify_time,json=verifyTime,proto3" json:"verify_time,omitempty"` // The details of a failure or a cancellation of reachability analysis. Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // Result may contain a list of traces if a test has multiple possible @@ -539,7 +539,7 @@ func (x *ReachabilityDetails) GetResult() ReachabilityDetails_Result { return ReachabilityDetails_RESULT_UNSPECIFIED } -func (x *ReachabilityDetails) GetVerifyTime() *timestamppb.Timestamp { +func (x *ReachabilityDetails) GetVerifyTime() *timestamp.Timestamp { if x != nil { return x.VerifyTime } @@ -722,7 +722,7 @@ var file_google_cloud_networkmanagement_v1_connectivity_test_proto_goTypes = []i (*Endpoint)(nil), // 3: google.cloud.networkmanagement.v1.Endpoint (*ReachabilityDetails)(nil), // 4: google.cloud.networkmanagement.v1.ReachabilityDetails nil, // 5: google.cloud.networkmanagement.v1.ConnectivityTest.LabelsEntry - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp (*status.Status)(nil), // 7: google.rpc.Status (*Trace)(nil), // 8: google.cloud.networkmanagement.v1.Trace } diff --git a/networkmanagement/apiv1/networkmanagementpb/reachability.pb.go b/networkmanagement/apiv1/networkmanagementpb/reachability.pb.go index a8c22935d584..1bcd0e8a5d44 100644 --- a/networkmanagement/apiv1/networkmanagementpb/reachability.pb.go +++ b/networkmanagement/apiv1/networkmanagementpb/reachability.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/networkmanagement/v1/reachability.proto package networkmanagementpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -349,7 +349,7 @@ type UpdateConnectivityTestRequest struct { // Required. Mask of fields to update. At least one path must be supplied in // this field. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Only fields specified in update_mask are updated. Resource *ConnectivityTest `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` } @@ -386,7 +386,7 @@ func (*UpdateConnectivityTestRequest) Descriptor() ([]byte, []int) { return file_google_cloud_networkmanagement_v1_reachability_proto_rawDescGZIP(), []int{4} } -func (x *UpdateConnectivityTestRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateConnectivityTestRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -509,9 +509,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Target of the operation - for example // projects/project-1/locations/global/connectivityTests/test-1 Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` @@ -557,14 +557,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_networkmanagement_v1_reachability_proto_rawDescGZIP(), []int{7} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -853,8 +853,8 @@ var file_google_cloud_networkmanagement_v1_reachability_proto_goTypes = []interf (*RerunConnectivityTestRequest)(nil), // 6: google.cloud.networkmanagement.v1.RerunConnectivityTestRequest (*OperationMetadata)(nil), // 7: google.cloud.networkmanagement.v1.OperationMetadata (*ConnectivityTest)(nil), // 8: google.cloud.networkmanagement.v1.ConnectivityTest - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 11: google.longrunning.Operation } var file_google_cloud_networkmanagement_v1_reachability_proto_depIdxs = []int32{ diff --git a/networkmanagement/apiv1/networkmanagementpb/trace.pb.go b/networkmanagement/apiv1/networkmanagementpb/trace.pb.go index 367d0e7649bf..a8b7bb5aeb6d 100644 --- a/networkmanagement/apiv1/networkmanagementpb/trace.pb.go +++ b/networkmanagement/apiv1/networkmanagementpb/trace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/networkmanagement/v1/trace.proto package networkmanagementpb diff --git a/networkmanagement/go.mod b/networkmanagement/go.mod index 24c78edfd3df..fb2699f5391f 100644 --- a/networkmanagement/go.mod +++ b/networkmanagement/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/notebooks/apiv1/notebookspb/environment.pb.go b/notebooks/apiv1/notebookspb/environment.pb.go index d32034ad644e..b6e7a96c275d 100644 --- a/notebooks/apiv1/notebookspb/environment.pb.go +++ b/notebooks/apiv1/notebookspb/environment.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/environment.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -64,7 +64,7 @@ type Environment struct { // Cloud Storage path. Example: `"gs://path-to-file/file-name"` PostStartupScript string `protobuf:"bytes,8,opt,name=post_startup_script,json=postStartupScript,proto3" json:"post_startup_script,omitempty"` // Output only. The time at which this environment was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *Environment) Reset() { @@ -148,7 +148,7 @@ func (x *Environment) GetPostStartupScript() string { return "" } -func (x *Environment) GetCreateTime() *timestamppb.Timestamp { +func (x *Environment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -417,10 +417,10 @@ func file_google_cloud_notebooks_v1_environment_proto_rawDescGZIP() []byte { var file_google_cloud_notebooks_v1_environment_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_notebooks_v1_environment_proto_goTypes = []interface{}{ - (*Environment)(nil), // 0: google.cloud.notebooks.v1.Environment - (*VmImage)(nil), // 1: google.cloud.notebooks.v1.VmImage - (*ContainerImage)(nil), // 2: google.cloud.notebooks.v1.ContainerImage - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*Environment)(nil), // 0: google.cloud.notebooks.v1.Environment + (*VmImage)(nil), // 1: google.cloud.notebooks.v1.VmImage + (*ContainerImage)(nil), // 2: google.cloud.notebooks.v1.ContainerImage + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_notebooks_v1_environment_proto_depIdxs = []int32{ 1, // 0: google.cloud.notebooks.v1.Environment.vm_image:type_name -> google.cloud.notebooks.v1.VmImage diff --git a/notebooks/apiv1/notebookspb/event.pb.go b/notebooks/apiv1/notebookspb/event.pb.go index 0079fc1f2c47..d3e2925c29fb 100644 --- a/notebooks/apiv1/notebookspb/event.pb.go +++ b/notebooks/apiv1/notebookspb/event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/event.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -111,7 +111,7 @@ type Event struct { unknownFields protoimpl.UnknownFields // Event report time. - ReportTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=report_time,json=reportTime,proto3" json:"report_time,omitempty"` + ReportTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=report_time,json=reportTime,proto3" json:"report_time,omitempty"` // Event type. Type Event_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.notebooks.v1.Event_EventType" json:"type,omitempty"` // Optional. Event details. This field is used to pass event information. @@ -150,7 +150,7 @@ func (*Event) Descriptor() ([]byte, []int) { return file_google_cloud_notebooks_v1_event_proto_rawDescGZIP(), []int{0} } -func (x *Event) GetReportTime() *timestamppb.Timestamp { +func (x *Event) GetReportTime() *timestamp.Timestamp { if x != nil { return x.ReportTime } @@ -230,10 +230,10 @@ func file_google_cloud_notebooks_v1_event_proto_rawDescGZIP() []byte { var file_google_cloud_notebooks_v1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_notebooks_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_notebooks_v1_event_proto_goTypes = []interface{}{ - (Event_EventType)(0), // 0: google.cloud.notebooks.v1.Event.EventType - (*Event)(nil), // 1: google.cloud.notebooks.v1.Event - nil, // 2: google.cloud.notebooks.v1.Event.DetailsEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (Event_EventType)(0), // 0: google.cloud.notebooks.v1.Event.EventType + (*Event)(nil), // 1: google.cloud.notebooks.v1.Event + nil, // 2: google.cloud.notebooks.v1.Event.DetailsEntry + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_notebooks_v1_event_proto_depIdxs = []int32{ 3, // 0: google.cloud.notebooks.v1.Event.report_time:type_name -> google.protobuf.Timestamp diff --git a/notebooks/apiv1/notebookspb/execution.pb.go b/notebooks/apiv1/notebookspb/execution.pb.go index 8c99e93aca31..abd0f8a91a88 100644 --- a/notebooks/apiv1/notebookspb/execution.pb.go +++ b/notebooks/apiv1/notebookspb/execution.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/execution.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -626,9 +626,9 @@ type Execution struct { // A brief description of this execution. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Output only. Time the Execution was instantiated. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the Execution was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. State of the underlying AI Platform job. State Execution_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.notebooks.v1.Execution_State" json:"state,omitempty"` // Output notebook file generated by this execution @@ -697,14 +697,14 @@ func (x *Execution) GetDescription() string { return "" } -func (x *Execution) GetCreateTime() *timestamppb.Timestamp { +func (x *Execution) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Execution) GetUpdateTime() *timestamppb.Timestamp { +func (x *Execution) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1137,9 +1137,9 @@ var file_google_cloud_notebooks_v1_execution_proto_goTypes = []interface{}{ (*ExecutionTemplate_SchedulerAcceleratorConfig)(nil), // 6: google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig (*ExecutionTemplate_DataprocParameters)(nil), // 7: google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters (*ExecutionTemplate_VertexAIParameters)(nil), // 8: google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters - nil, // 9: google.cloud.notebooks.v1.ExecutionTemplate.LabelsEntry - nil, // 10: google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.EnvEntry - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + nil, // 9: google.cloud.notebooks.v1.ExecutionTemplate.LabelsEntry + nil, // 10: google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.EnvEntry + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_google_cloud_notebooks_v1_execution_proto_depIdxs = []int32{ 0, // 0: google.cloud.notebooks.v1.ExecutionTemplate.scale_tier:type_name -> google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier diff --git a/notebooks/apiv1/notebookspb/instance.pb.go b/notebooks/apiv1/notebookspb/instance.pb.go index 974fefe64908..4ebce0df5ae8 100644 --- a/notebooks/apiv1/notebookspb/instance.pb.go +++ b/notebooks/apiv1/notebookspb/instance.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/instance.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -756,9 +756,9 @@ type Instance struct { // https://cloud.google.com/vpc/docs/using-routes#canipforward CanIpForward bool `protobuf:"varint,39,opt,name=can_ip_forward,json=canIpForward,proto3" json:"can_ip_forward,omitempty"` // Output only. Instance creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,23,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Instance update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,24,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Instance) Reset() { @@ -1038,14 +1038,14 @@ func (x *Instance) GetCanIpForward() bool { return false } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Instance) GetUpdateTime() *timestamppb.Timestamp { +func (x *Instance) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1411,7 +1411,7 @@ type Instance_UpgradeHistoryEntry struct { // The state of this instance upgrade history entry. State Instance_UpgradeHistoryEntry_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.notebooks.v1.Instance_UpgradeHistoryEntry_State" json:"state,omitempty"` // The time that this instance upgrade history entry is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Target VM Image. Format: ainotebooks-vm/project/image-name/name. // // Deprecated: Do not use. @@ -1496,7 +1496,7 @@ func (x *Instance_UpgradeHistoryEntry) GetState() Instance_UpgradeHistoryEntry_S return Instance_UpgradeHistoryEntry_STATE_UNSPECIFIED } -func (x *Instance_UpgradeHistoryEntry) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance_UpgradeHistoryEntry) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1945,7 +1945,7 @@ var file_google_cloud_notebooks_v1_instance_proto_goTypes = []interface{}{ (*Instance_Disk_GuestOsFeature)(nil), // 16: google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature (*VmImage)(nil), // 17: google.cloud.notebooks.v1.VmImage (*ContainerImage)(nil), // 18: google.cloud.notebooks.v1.ContainerImage - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 19: google.protobuf.Timestamp } var file_google_cloud_notebooks_v1_instance_proto_depIdxs = []int32{ 0, // 0: google.cloud.notebooks.v1.ReservationAffinity.consume_reservation_type:type_name -> google.cloud.notebooks.v1.ReservationAffinity.Type diff --git a/notebooks/apiv1/notebookspb/instance_config.pb.go b/notebooks/apiv1/notebookspb/instance_config.pb.go index 28959c0f64fc..45356894530f 100644 --- a/notebooks/apiv1/notebookspb/instance_config.pb.go +++ b/notebooks/apiv1/notebookspb/instance_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/instance_config.proto package notebookspb diff --git a/notebooks/apiv1/notebookspb/managed_service.pb.go b/notebooks/apiv1/notebookspb/managed_service.pb.go index f309572d653e..04c97cf8fa95 100644 --- a/notebooks/apiv1/notebookspb/managed_service.pb.go +++ b/notebooks/apiv1/notebookspb/managed_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/managed_service.proto package notebookspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -759,7 +759,7 @@ type RefreshRuntimeTokenInternalResponse struct { // The OAuth 2.0 access token. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Output only. Token expiration time. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *RefreshRuntimeTokenInternalResponse) Reset() { @@ -801,7 +801,7 @@ func (x *RefreshRuntimeTokenInternalResponse) GetAccessToken() string { return "" } -func (x *RefreshRuntimeTokenInternalResponse) GetExpireTime() *timestamppb.Timestamp { +func (x *RefreshRuntimeTokenInternalResponse) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1113,7 +1113,7 @@ var file_google_cloud_notebooks_v1_managed_service_proto_goTypes = []interface{} (*Runtime)(nil), // 12: google.cloud.notebooks.v1.Runtime (*RuntimeAcceleratorConfig)(nil), // 13: google.cloud.notebooks.v1.RuntimeAcceleratorConfig (*Event)(nil), // 14: google.cloud.notebooks.v1.Event - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 16: google.longrunning.Operation } var file_google_cloud_notebooks_v1_managed_service_proto_depIdxs = []int32{ diff --git a/notebooks/apiv1/notebookspb/runtime.pb.go b/notebooks/apiv1/notebookspb/runtime.pb.go index 27c571cee39c..ea3b4251a8c3 100644 --- a/notebooks/apiv1/notebookspb/runtime.pb.go +++ b/notebooks/apiv1/notebookspb/runtime.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/runtime.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -471,9 +471,9 @@ type Runtime struct { // stats. Metrics *RuntimeMetrics `protobuf:"bytes,7,opt,name=metrics,proto3" json:"metrics,omitempty"` // Output only. Runtime creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Runtime update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,21,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Runtime) Reset() { @@ -564,14 +564,14 @@ func (x *Runtime) GetMetrics() *RuntimeMetrics { return nil } -func (x *Runtime) GetCreateTime() *timestamppb.Timestamp { +func (x *Runtime) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Runtime) GetUpdateTime() *timestamppb.Timestamp { +func (x *Runtime) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2164,7 +2164,7 @@ var file_google_cloud_notebooks_v1_runtime_proto_goTypes = []interface{}{ nil, // 21: google.cloud.notebooks.v1.VirtualMachineConfig.GuestAttributesEntry nil, // 22: google.cloud.notebooks.v1.VirtualMachineConfig.MetadataEntry nil, // 23: google.cloud.notebooks.v1.VirtualMachineConfig.LabelsEntry - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp (*ContainerImage)(nil), // 25: google.cloud.notebooks.v1.ContainerImage } var file_google_cloud_notebooks_v1_runtime_proto_depIdxs = []int32{ diff --git a/notebooks/apiv1/notebookspb/schedule.pb.go b/notebooks/apiv1/notebookspb/schedule.pb.go index cb7c39fe7445..5501a7225451 100644 --- a/notebooks/apiv1/notebookspb/schedule.pb.go +++ b/notebooks/apiv1/notebookspb/schedule.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/schedule.proto package notebookspb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -142,9 +142,9 @@ type Schedule struct { // the default will be in UTC (also known as GMT). TimeZone string `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` // Output only. Time the schedule was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the schedule was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Notebook Execution Template corresponding to this schedule. ExecutionTemplate *ExecutionTemplate `protobuf:"bytes,9,opt,name=execution_template,json=executionTemplate,proto3" json:"execution_template,omitempty"` // Output only. The most recent execution names triggered from this schedule and their @@ -226,14 +226,14 @@ func (x *Schedule) GetTimeZone() string { return "" } -func (x *Schedule) GetCreateTime() *timestamppb.Timestamp { +func (x *Schedule) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Schedule) GetUpdateTime() *timestamppb.Timestamp { +func (x *Schedule) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -344,11 +344,11 @@ func file_google_cloud_notebooks_v1_schedule_proto_rawDescGZIP() []byte { var file_google_cloud_notebooks_v1_schedule_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_notebooks_v1_schedule_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_notebooks_v1_schedule_proto_goTypes = []interface{}{ - (Schedule_State)(0), // 0: google.cloud.notebooks.v1.Schedule.State - (*Schedule)(nil), // 1: google.cloud.notebooks.v1.Schedule - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*ExecutionTemplate)(nil), // 3: google.cloud.notebooks.v1.ExecutionTemplate - (*Execution)(nil), // 4: google.cloud.notebooks.v1.Execution + (Schedule_State)(0), // 0: google.cloud.notebooks.v1.Schedule.State + (*Schedule)(nil), // 1: google.cloud.notebooks.v1.Schedule + (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*ExecutionTemplate)(nil), // 3: google.cloud.notebooks.v1.ExecutionTemplate + (*Execution)(nil), // 4: google.cloud.notebooks.v1.Execution } var file_google_cloud_notebooks_v1_schedule_proto_depIdxs = []int32{ 0, // 0: google.cloud.notebooks.v1.Schedule.state:type_name -> google.cloud.notebooks.v1.Schedule.State diff --git a/notebooks/apiv1/notebookspb/service.pb.go b/notebooks/apiv1/notebookspb/service.pb.go index eb7e9e8a3d12..57ea3dcd8839 100644 --- a/notebooks/apiv1/notebookspb/service.pb.go +++ b/notebooks/apiv1/notebookspb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/notebooks/v1/service.proto package notebookspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -178,9 +178,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the verb executed by the operation. @@ -230,14 +230,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_notebooks_v1_service_proto_rawDescGZIP(), []int{0} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3668,7 +3668,7 @@ var file_google_cloud_notebooks_v1_service_proto_goTypes = []interface{}{ nil, // 45: google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.ItemsEntry nil, // 46: google.cloud.notebooks.v1.ReportInstanceInfoRequest.MetadataEntry nil, // 47: google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthInfoEntry - (*timestamppb.Timestamp)(nil), // 48: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 48: google.protobuf.Timestamp (*Instance)(nil), // 49: google.cloud.notebooks.v1.Instance (Instance_AcceleratorType)(0), // 50: google.cloud.notebooks.v1.Instance.AcceleratorType (*InstanceConfig)(nil), // 51: google.cloud.notebooks.v1.InstanceConfig diff --git a/optimization/apiv1/optimizationpb/async_model.pb.go b/optimization/apiv1/optimizationpb/async_model.pb.go index 5ddeb2a55f08..429e549dc319 100644 --- a/optimization/apiv1/optimizationpb/async_model.pb.go +++ b/optimization/apiv1/optimizationpb/async_model.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/optimization/v1/async_model.proto package optimizationpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -424,9 +424,9 @@ type AsyncModelMetadata struct { // For example, the error message if the operation is failed. StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` // The creation time of the operation. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update time of the operation. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *AsyncModelMetadata) Reset() { @@ -475,14 +475,14 @@ func (x *AsyncModelMetadata) GetStateMessage() string { return "" } -func (x *AsyncModelMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *AsyncModelMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *AsyncModelMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *AsyncModelMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -588,7 +588,7 @@ var file_google_cloud_optimization_v1_async_model_proto_goTypes = []interface{}{ (*GcsSource)(nil), // 4: google.cloud.optimization.v1.GcsSource (*GcsDestination)(nil), // 5: google.cloud.optimization.v1.GcsDestination (*AsyncModelMetadata)(nil), // 6: google.cloud.optimization.v1.AsyncModelMetadata - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp } var file_google_cloud_optimization_v1_async_model_proto_depIdxs = []int32{ 4, // 0: google.cloud.optimization.v1.InputConfig.gcs_source:type_name -> google.cloud.optimization.v1.GcsSource diff --git a/optimization/apiv1/optimizationpb/fleet_routing.pb.go b/optimization/apiv1/optimizationpb/fleet_routing.pb.go index 5eacf1741afa..011e4bfe5b1a 100644 --- a/optimization/apiv1/optimizationpb/fleet_routing.pb.go +++ b/optimization/apiv1/optimizationpb/fleet_routing.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/optimization/v1/fleet_routing.proto package optimizationpb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" latlng "google.golang.org/genproto/googleapis/type/latlng" @@ -33,8 +35,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -584,7 +584,7 @@ type OptimizeToursRequest struct { // // For asynchronous requests, the server will generate a solution (if // possible) before the timeout has elapsed. - Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Shipment model to solve. Model *ShipmentModel `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` // By default, the solving mode is `DEFAULT_SOLVE` (0). @@ -783,7 +783,7 @@ func (x *OptimizeToursRequest) GetParent() string { return "" } -func (x *OptimizeToursRequest) GetTimeout() *durationpb.Duration { +func (x *OptimizeToursRequest) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -1150,10 +1150,10 @@ type ShipmentModel struct { // you should set the global time limits to that day). // If unset, 00:00:00 UTC, January 1, 1970 (i.e. seconds: 0, nanos: 0) is used // as default. - GlobalStartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=global_start_time,json=globalStartTime,proto3" json:"global_start_time,omitempty"` + GlobalStartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=global_start_time,json=globalStartTime,proto3" json:"global_start_time,omitempty"` // If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) // is used as default. - GlobalEndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=global_end_time,json=globalEndTime,proto3" json:"global_end_time,omitempty"` + GlobalEndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=global_end_time,json=globalEndTime,proto3" json:"global_end_time,omitempty"` // The "global duration" of the overall plan is the difference between the // earliest effective start time and the latest effective end time of // all vehicles. Users can assign a cost per hour to that quantity to try @@ -1351,14 +1351,14 @@ func (x *ShipmentModel) GetMaxActiveVehicles() int32 { return 0 } -func (x *ShipmentModel) GetGlobalStartTime() *timestamppb.Timestamp { +func (x *ShipmentModel) GetGlobalStartTime() *timestamp.Timestamp { if x != nil { return x.GlobalStartTime } return nil } -func (x *ShipmentModel) GetGlobalEndTime() *timestamppb.Timestamp { +func (x *ShipmentModel) GetGlobalEndTime() *timestamp.Timestamp { if x != nil { return x.GlobalEndTime } @@ -1517,14 +1517,14 @@ type Shipment struct { // the more constraining limit is used for each possible pickup/delivery pair. // As of 2017/10, detours are only supported when travel durations do not // depend on vehicles. - PickupToDeliveryAbsoluteDetourLimit *durationpb.Duration `protobuf:"bytes,9,opt,name=pickup_to_delivery_absolute_detour_limit,json=pickupToDeliveryAbsoluteDetourLimit,proto3" json:"pickup_to_delivery_absolute_detour_limit,omitempty"` + PickupToDeliveryAbsoluteDetourLimit *duration.Duration `protobuf:"bytes,9,opt,name=pickup_to_delivery_absolute_detour_limit,json=pickupToDeliveryAbsoluteDetourLimit,proto3" json:"pickup_to_delivery_absolute_detour_limit,omitempty"` // Specifies the maximum duration from start of pickup to start of delivery of // a shipment. If specified, it must be nonnegative, and the shipment must // contain at least a pickup and a delivery. This does not depend on which // alternatives are selected for pickup and delivery, nor on vehicle speed. // This can be specified alongside maximum detour constraints: the solution // will respect both specifications. - PickupToDeliveryTimeLimit *durationpb.Duration `protobuf:"bytes,10,opt,name=pickup_to_delivery_time_limit,json=pickupToDeliveryTimeLimit,proto3" json:"pickup_to_delivery_time_limit,omitempty"` + PickupToDeliveryTimeLimit *duration.Duration `protobuf:"bytes,10,opt,name=pickup_to_delivery_time_limit,json=pickupToDeliveryTimeLimit,proto3" json:"pickup_to_delivery_time_limit,omitempty"` // Non-empty string specifying a "type" for this shipment. // This feature can be used to define incompatibilities or requirements // between `shipment_types` (see `shipment_type_incompatibilities` and @@ -1641,14 +1641,14 @@ func (x *Shipment) GetPickupToDeliveryRelativeDetourLimit() float64 { return 0 } -func (x *Shipment) GetPickupToDeliveryAbsoluteDetourLimit() *durationpb.Duration { +func (x *Shipment) GetPickupToDeliveryAbsoluteDetourLimit() *duration.Duration { if x != nil { return x.PickupToDeliveryAbsoluteDetourLimit } return nil } -func (x *Shipment) GetPickupToDeliveryTimeLimit() *durationpb.Duration { +func (x *Shipment) GetPickupToDeliveryTimeLimit() *duration.Duration { if x != nil { return x.PickupToDeliveryTimeLimit } @@ -1964,7 +1964,7 @@ type Vehicle struct { // // If a visit request has multiple types, a duration will be added for each // type in the map. - ExtraVisitDurationForVisitType map[string]*durationpb.Duration `protobuf:"bytes,24,rep,name=extra_visit_duration_for_visit_type,json=extraVisitDurationForVisitType,proto3" json:"extra_visit_duration_for_visit_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ExtraVisitDurationForVisitType map[string]*duration.Duration `protobuf:"bytes,24,rep,name=extra_visit_duration_for_visit_type,json=extraVisitDurationForVisitType,proto3" json:"extra_visit_duration_for_visit_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Describes the break schedule to be enforced on this vehicle. // If empty, no breaks will be scheduled for this vehicle. BreakRule *BreakRule `protobuf:"bytes,25,opt,name=break_rule,json=breakRule,proto3" json:"break_rule,omitempty"` @@ -2179,7 +2179,7 @@ func (x *Vehicle) GetRouteDistanceLimit() *DistanceLimit { return nil } -func (x *Vehicle) GetExtraVisitDurationForVisitType() map[string]*durationpb.Duration { +func (x *Vehicle) GetExtraVisitDurationForVisitType() map[string]*duration.Duration { if x != nil { return x.ExtraVisitDurationForVisitType } @@ -2266,14 +2266,14 @@ type TimeWindow struct { // The hard time window start time. If unspecified it will be set to // `ShipmentModel.global_start_time`. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The hard time window end time. If unspecified it will be set to // `ShipmentModel.global_end_time`. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The soft start time of the time window. - SoftStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=soft_start_time,json=softStartTime,proto3" json:"soft_start_time,omitempty"` + SoftStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=soft_start_time,json=softStartTime,proto3" json:"soft_start_time,omitempty"` // The soft end time of the time window. - SoftEndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=soft_end_time,json=softEndTime,proto3" json:"soft_end_time,omitempty"` + SoftEndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=soft_end_time,json=softEndTime,proto3" json:"soft_end_time,omitempty"` // A cost per hour added to other costs in the model if the event occurs // before soft_start_time, computed as: // @@ -2336,28 +2336,28 @@ func (*TimeWindow) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{9} } -func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } return nil } -func (x *TimeWindow) GetSoftStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetSoftStartTime() *timestamp.Timestamp { if x != nil { return x.SoftStartTime } return nil } -func (x *TimeWindow) GetSoftEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetSoftEndTime() *timestamp.Timestamp { if x != nil { return x.SoftEndTime } @@ -2633,7 +2633,7 @@ type TransitionAttributes struct { // // This delay always occurs *after* finishing the source visit and *before* // starting the destination visit. - Delay *durationpb.Duration `protobuf:"bytes,8,opt,name=delay,proto3" json:"delay,omitempty"` + Delay *duration.Duration `protobuf:"bytes,8,opt,name=delay,proto3" json:"delay,omitempty"` } func (x *TransitionAttributes) Reset() { @@ -2717,7 +2717,7 @@ func (x *TransitionAttributes) GetDistanceLimit() *DistanceLimit { return nil } -func (x *TransitionAttributes) GetDelay() *durationpb.Duration { +func (x *TransitionAttributes) GetDelay() *duration.Duration { if x != nil { return x.Delay } @@ -3063,9 +3063,9 @@ type ShipmentRoute struct { // `ShipmentModel.vehicles(vehicle_index).label`, if specified. VehicleLabel string `protobuf:"bytes,2,opt,name=vehicle_label,json=vehicleLabel,proto3" json:"vehicle_label,omitempty"` // Time at which the vehicle starts its route. - VehicleStartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=vehicle_start_time,json=vehicleStartTime,proto3" json:"vehicle_start_time,omitempty"` + VehicleStartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=vehicle_start_time,json=vehicleStartTime,proto3" json:"vehicle_start_time,omitempty"` // Time at which the vehicle finishes its route. - VehicleEndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=vehicle_end_time,json=vehicleEndTime,proto3" json:"vehicle_end_time,omitempty"` + VehicleEndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=vehicle_end_time,json=vehicleEndTime,proto3" json:"vehicle_end_time,omitempty"` // Ordered sequence of visits representing a route. // visits[i] is the i-th visit in the route. // If this field is empty, the vehicle is considered as unused. @@ -3136,7 +3136,7 @@ type ShipmentRoute struct { // from the vehicle's start_location to its `end_location`. // // Deprecated: Do not use. - VehicleDetour *durationpb.Duration `protobuf:"bytes,15,opt,name=vehicle_detour,json=vehicleDetour,proto3" json:"vehicle_detour,omitempty"` + VehicleDetour *duration.Duration `protobuf:"bytes,15,opt,name=vehicle_detour,json=vehicleDetour,proto3" json:"vehicle_detour,omitempty"` // Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead. // Delay occurring before the vehicle end. See // [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay]. @@ -3191,14 +3191,14 @@ func (x *ShipmentRoute) GetVehicleLabel() string { return "" } -func (x *ShipmentRoute) GetVehicleStartTime() *timestamppb.Timestamp { +func (x *ShipmentRoute) GetVehicleStartTime() *timestamp.Timestamp { if x != nil { return x.VehicleStartTime } return nil } -func (x *ShipmentRoute) GetVehicleEndTime() *timestamppb.Timestamp { +func (x *ShipmentRoute) GetVehicleEndTime() *timestamp.Timestamp { if x != nil { return x.VehicleEndTime } @@ -3278,7 +3278,7 @@ func (x *ShipmentRoute) GetTravelSteps() []*ShipmentRoute_TravelStep { } // Deprecated: Do not use. -func (x *ShipmentRoute) GetVehicleDetour() *durationpb.Duration { +func (x *ShipmentRoute) GetVehicleDetour() *duration.Duration { if x != nil { return x.VehicleDetour } @@ -3378,19 +3378,19 @@ type AggregatedMetrics struct { // counts once. PerformedShipmentCount int32 `protobuf:"varint,1,opt,name=performed_shipment_count,json=performedShipmentCount,proto3" json:"performed_shipment_count,omitempty"` // Total travel duration for a route or a solution. - TravelDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` + TravelDuration *duration.Duration `protobuf:"bytes,2,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` // Total wait duration for a route or a solution. - WaitDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=wait_duration,json=waitDuration,proto3" json:"wait_duration,omitempty"` + WaitDuration *duration.Duration `protobuf:"bytes,3,opt,name=wait_duration,json=waitDuration,proto3" json:"wait_duration,omitempty"` // Total delay duration for a route or a solution. - DelayDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=delay_duration,json=delayDuration,proto3" json:"delay_duration,omitempty"` + DelayDuration *duration.Duration `protobuf:"bytes,4,opt,name=delay_duration,json=delayDuration,proto3" json:"delay_duration,omitempty"` // Total break duration for a route or a solution. - BreakDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=break_duration,json=breakDuration,proto3" json:"break_duration,omitempty"` + BreakDuration *duration.Duration `protobuf:"bytes,5,opt,name=break_duration,json=breakDuration,proto3" json:"break_duration,omitempty"` // Total visit duration for a route or a solution. - VisitDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=visit_duration,json=visitDuration,proto3" json:"visit_duration,omitempty"` + VisitDuration *duration.Duration `protobuf:"bytes,6,opt,name=visit_duration,json=visitDuration,proto3" json:"visit_duration,omitempty"` // The total duration should be equal to the sum of all durations above. // For routes, it also corresponds to [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] - // [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]. - TotalDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` + TotalDuration *duration.Duration `protobuf:"bytes,7,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` // Total travel distance for a route or a solution. TravelDistanceMeters float64 `protobuf:"fixed64,8,opt,name=travel_distance_meters,json=travelDistanceMeters,proto3" json:"travel_distance_meters,omitempty"` // Maximum load achieved over the entire route (resp. solution), for each of @@ -3449,42 +3449,42 @@ func (x *AggregatedMetrics) GetPerformedShipmentCount() int32 { return 0 } -func (x *AggregatedMetrics) GetTravelDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetTravelDuration() *duration.Duration { if x != nil { return x.TravelDuration } return nil } -func (x *AggregatedMetrics) GetWaitDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetWaitDuration() *duration.Duration { if x != nil { return x.WaitDuration } return nil } -func (x *AggregatedMetrics) GetDelayDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetDelayDuration() *duration.Duration { if x != nil { return x.DelayDuration } return nil } -func (x *AggregatedMetrics) GetBreakDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetBreakDuration() *duration.Duration { if x != nil { return x.BreakDuration } return nil } -func (x *AggregatedMetrics) GetVisitDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetVisitDuration() *duration.Duration { if x != nil { return x.VisitDuration } return nil } -func (x *AggregatedMetrics) GetTotalDuration() *durationpb.Duration { +func (x *AggregatedMetrics) GetTotalDuration() *duration.Duration { if x != nil { return x.TotalDuration } @@ -3954,10 +3954,10 @@ type OptimizeToursResponse_Metrics struct { UsedVehicleCount int32 `protobuf:"varint,3,opt,name=used_vehicle_count,json=usedVehicleCount,proto3" json:"used_vehicle_count,omitempty"` // The earliest start time for a used vehicle, computed as the minimum over // all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]. - EarliestVehicleStartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_vehicle_start_time,json=earliestVehicleStartTime,proto3" json:"earliest_vehicle_start_time,omitempty"` + EarliestVehicleStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=earliest_vehicle_start_time,json=earliestVehicleStartTime,proto3" json:"earliest_vehicle_start_time,omitempty"` // The latest end time for a used vehicle, computed as the maximum over all // used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]. - LatestVehicleEndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=latest_vehicle_end_time,json=latestVehicleEndTime,proto3" json:"latest_vehicle_end_time,omitempty"` + LatestVehicleEndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=latest_vehicle_end_time,json=latestVehicleEndTime,proto3" json:"latest_vehicle_end_time,omitempty"` // Cost of the solution, broken down by cost-related request fields. // The keys are proto paths, relative to the input OptimizeToursRequest, // e.g. "model.shipments.pickups.cost", and the values are the total cost @@ -4025,14 +4025,14 @@ func (x *OptimizeToursResponse_Metrics) GetUsedVehicleCount() int32 { return 0 } -func (x *OptimizeToursResponse_Metrics) GetEarliestVehicleStartTime() *timestamppb.Timestamp { +func (x *OptimizeToursResponse_Metrics) GetEarliestVehicleStartTime() *timestamp.Timestamp { if x != nil { return x.EarliestVehicleStartTime } return nil } -func (x *OptimizeToursResponse_Metrics) GetLatestVehicleEndTime() *timestamppb.Timestamp { +func (x *OptimizeToursResponse_Metrics) GetLatestVehicleEndTime() *timestamp.Timestamp { if x != nil { return x.LatestVehicleEndTime } @@ -4229,7 +4229,7 @@ type ShipmentModel_PrecedenceRule struct { // Indicates if the "second" event is a delivery. SecondIsDelivery bool `protobuf:"varint,4,opt,name=second_is_delivery,json=secondIsDelivery,proto3" json:"second_is_delivery,omitempty"` // The offset between the "first" and "second" event. It can be negative. - OffsetDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=offset_duration,json=offsetDuration,proto3" json:"offset_duration,omitempty"` + OffsetDuration *duration.Duration `protobuf:"bytes,5,opt,name=offset_duration,json=offsetDuration,proto3" json:"offset_duration,omitempty"` } func (x *ShipmentModel_PrecedenceRule) Reset() { @@ -4292,7 +4292,7 @@ func (x *ShipmentModel_PrecedenceRule) GetSecondIsDelivery() bool { return false } -func (x *ShipmentModel_PrecedenceRule) GetOffsetDuration() *durationpb.Duration { +func (x *ShipmentModel_PrecedenceRule) GetOffsetDuration() *duration.Duration { if x != nil { return x.OffsetDuration } @@ -4379,7 +4379,7 @@ type ShipmentModel_DurationDistanceMatrix_Row struct { // Duration values for a given row. It must have as many elements as // [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags]. - Durations []*durationpb.Duration `protobuf:"bytes,1,rep,name=durations,proto3" json:"durations,omitempty"` + Durations []*duration.Duration `protobuf:"bytes,1,rep,name=durations,proto3" json:"durations,omitempty"` // Distance values for a given row. If no costs or constraints refer to // distances in the model, this can be left empty; otherwise it must have // as many elements as `durations`. @@ -4418,7 +4418,7 @@ func (*ShipmentModel_DurationDistanceMatrix_Row) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{4, 0, 0} } -func (x *ShipmentModel_DurationDistanceMatrix_Row) GetDurations() []*durationpb.Duration { +func (x *ShipmentModel_DurationDistanceMatrix_Row) GetDurations() []*duration.Duration { if x != nil { return x.Durations } @@ -4443,11 +4443,11 @@ type ShipmentModel_BreakRule_BreakRequest struct { unknownFields protoimpl.UnknownFields // Required. Lower bound (inclusive) on the start of the break. - EarliestStartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest_start_time,json=earliestStartTime,proto3" json:"earliest_start_time,omitempty"` + EarliestStartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=earliest_start_time,json=earliestStartTime,proto3" json:"earliest_start_time,omitempty"` // Required. Upper bound (inclusive) on the start of the break. - LatestStartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_start_time,json=latestStartTime,proto3" json:"latest_start_time,omitempty"` + LatestStartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=latest_start_time,json=latestStartTime,proto3" json:"latest_start_time,omitempty"` // Required. Minimum duration of the break. Must be positive. - MinDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` + MinDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` } func (x *ShipmentModel_BreakRule_BreakRequest) Reset() { @@ -4482,21 +4482,21 @@ func (*ShipmentModel_BreakRule_BreakRequest) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{4, 2, 0} } -func (x *ShipmentModel_BreakRule_BreakRequest) GetEarliestStartTime() *timestamppb.Timestamp { +func (x *ShipmentModel_BreakRule_BreakRequest) GetEarliestStartTime() *timestamp.Timestamp { if x != nil { return x.EarliestStartTime } return nil } -func (x *ShipmentModel_BreakRule_BreakRequest) GetLatestStartTime() *timestamppb.Timestamp { +func (x *ShipmentModel_BreakRule_BreakRequest) GetLatestStartTime() *timestamp.Timestamp { if x != nil { return x.LatestStartTime } return nil } -func (x *ShipmentModel_BreakRule_BreakRequest) GetMinDuration() *durationpb.Duration { +func (x *ShipmentModel_BreakRule_BreakRequest) GetMinDuration() *duration.Duration { if x != nil { return x.MinDuration } @@ -4547,11 +4547,11 @@ type ShipmentModel_BreakRule_FrequencyConstraint struct { // Required. Minimum break duration for this constraint. Nonnegative. // See description of `FrequencyConstraint`. - MinBreakDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=min_break_duration,json=minBreakDuration,proto3" json:"min_break_duration,omitempty"` + MinBreakDuration *duration.Duration `protobuf:"bytes,1,opt,name=min_break_duration,json=minBreakDuration,proto3" json:"min_break_duration,omitempty"` // Required. Maximum allowed span of any interval of time in the route that does not // include at least partially a break of `duration >= // min_break_duration`. Must be positive. - MaxInterBreakDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_inter_break_duration,json=maxInterBreakDuration,proto3" json:"max_inter_break_duration,omitempty"` + MaxInterBreakDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_inter_break_duration,json=maxInterBreakDuration,proto3" json:"max_inter_break_duration,omitempty"` } func (x *ShipmentModel_BreakRule_FrequencyConstraint) Reset() { @@ -4586,14 +4586,14 @@ func (*ShipmentModel_BreakRule_FrequencyConstraint) Descriptor() ([]byte, []int) return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{4, 2, 1} } -func (x *ShipmentModel_BreakRule_FrequencyConstraint) GetMinBreakDuration() *durationpb.Duration { +func (x *ShipmentModel_BreakRule_FrequencyConstraint) GetMinBreakDuration() *duration.Duration { if x != nil { return x.MinBreakDuration } return nil } -func (x *ShipmentModel_BreakRule_FrequencyConstraint) GetMaxInterBreakDuration() *durationpb.Duration { +func (x *ShipmentModel_BreakRule_FrequencyConstraint) GetMaxInterBreakDuration() *duration.Duration { if x != nil { return x.MaxInterBreakDuration } @@ -4648,7 +4648,7 @@ type Shipment_VisitRequest struct { // Duration of the visit, i.e. time spent by the vehicle between arrival // and departure (to be added to the possible waiting time; see // `time_windows`). - Duration *durationpb.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` // Cost to service this visit request on a vehicle route. This can be used // to pay different costs for each alternative pickup or delivery of a // shipment. This cost must be in the same unit as `Shipment.penalty_cost` @@ -4749,7 +4749,7 @@ func (x *Shipment_VisitRequest) GetTimeWindows() []*TimeWindow { return nil } -func (x *Shipment_VisitRequest) GetDuration() *durationpb.Duration { +func (x *Shipment_VisitRequest) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -4945,14 +4945,14 @@ type Vehicle_DurationLimit struct { unknownFields protoimpl.UnknownFields // A hard limit constraining the duration to be at most max_duration. - MaxDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=max_duration,json=maxDuration,proto3" json:"max_duration,omitempty"` + MaxDuration *duration.Duration `protobuf:"bytes,1,opt,name=max_duration,json=maxDuration,proto3" json:"max_duration,omitempty"` // A soft limit not enforcing a maximum duration limit, but when violated // makes the route incur a cost. This cost adds up to other costs defined in // the model, with the same unit. // // If defined, `soft_max_duration` must be nonnegative. If max_duration is // also defined, `soft_max_duration` must be less than max_duration. - SoftMaxDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=soft_max_duration,json=softMaxDuration,proto3" json:"soft_max_duration,omitempty"` + SoftMaxDuration *duration.Duration `protobuf:"bytes,2,opt,name=soft_max_duration,json=softMaxDuration,proto3" json:"soft_max_duration,omitempty"` // Cost per hour incurred if the `soft_max_duration` threshold is violated. // The additional cost is 0 if the duration is under the threshold, // otherwise the cost depends on the duration as follows: @@ -4973,7 +4973,7 @@ type Vehicle_DurationLimit struct { // day: // // `max_duration - quadratic_soft_max_duration <= 86400 seconds` - QuadraticSoftMaxDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=quadratic_soft_max_duration,json=quadraticSoftMaxDuration,proto3" json:"quadratic_soft_max_duration,omitempty"` + QuadraticSoftMaxDuration *duration.Duration `protobuf:"bytes,4,opt,name=quadratic_soft_max_duration,json=quadraticSoftMaxDuration,proto3" json:"quadratic_soft_max_duration,omitempty"` // Cost per square hour incurred if the // `quadratic_soft_max_duration` threshold is violated. // @@ -5023,14 +5023,14 @@ func (*Vehicle_DurationLimit) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{8, 1} } -func (x *Vehicle_DurationLimit) GetMaxDuration() *durationpb.Duration { +func (x *Vehicle_DurationLimit) GetMaxDuration() *duration.Duration { if x != nil { return x.MaxDuration } return nil } -func (x *Vehicle_DurationLimit) GetSoftMaxDuration() *durationpb.Duration { +func (x *Vehicle_DurationLimit) GetSoftMaxDuration() *duration.Duration { if x != nil { return x.SoftMaxDuration } @@ -5044,7 +5044,7 @@ func (x *Vehicle_DurationLimit) GetCostPerHourAfterSoftMax() float64 { return 0 } -func (x *Vehicle_DurationLimit) GetQuadraticSoftMaxDuration() *durationpb.Duration { +func (x *Vehicle_DurationLimit) GetQuadraticSoftMaxDuration() *duration.Duration { if x != nil { return x.QuadraticSoftMaxDuration } @@ -5130,11 +5130,11 @@ type BreakRule_BreakRequest struct { unknownFields protoimpl.UnknownFields // Required. Lower bound (inclusive) on the start of the break. - EarliestStartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest_start_time,json=earliestStartTime,proto3" json:"earliest_start_time,omitempty"` + EarliestStartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=earliest_start_time,json=earliestStartTime,proto3" json:"earliest_start_time,omitempty"` // Required. Upper bound (inclusive) on the start of the break. - LatestStartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_start_time,json=latestStartTime,proto3" json:"latest_start_time,omitempty"` + LatestStartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=latest_start_time,json=latestStartTime,proto3" json:"latest_start_time,omitempty"` // Required. Minimum duration of the break. Must be positive. - MinDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` + MinDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_duration,json=minDuration,proto3" json:"min_duration,omitempty"` } func (x *BreakRule_BreakRequest) Reset() { @@ -5169,21 +5169,21 @@ func (*BreakRule_BreakRequest) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{16, 0} } -func (x *BreakRule_BreakRequest) GetEarliestStartTime() *timestamppb.Timestamp { +func (x *BreakRule_BreakRequest) GetEarliestStartTime() *timestamp.Timestamp { if x != nil { return x.EarliestStartTime } return nil } -func (x *BreakRule_BreakRequest) GetLatestStartTime() *timestamppb.Timestamp { +func (x *BreakRule_BreakRequest) GetLatestStartTime() *timestamp.Timestamp { if x != nil { return x.LatestStartTime } return nil } -func (x *BreakRule_BreakRequest) GetMinDuration() *durationpb.Duration { +func (x *BreakRule_BreakRequest) GetMinDuration() *duration.Duration { if x != nil { return x.MinDuration } @@ -5234,11 +5234,11 @@ type BreakRule_FrequencyConstraint struct { // Required. Minimum break duration for this constraint. Nonnegative. // See description of `FrequencyConstraint`. - MinBreakDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=min_break_duration,json=minBreakDuration,proto3" json:"min_break_duration,omitempty"` + MinBreakDuration *duration.Duration `protobuf:"bytes,1,opt,name=min_break_duration,json=minBreakDuration,proto3" json:"min_break_duration,omitempty"` // Required. Maximum allowed span of any interval of time in the route that does not // include at least partially a break of `duration >= // min_break_duration`. Must be positive. - MaxInterBreakDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_inter_break_duration,json=maxInterBreakDuration,proto3" json:"max_inter_break_duration,omitempty"` + MaxInterBreakDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_inter_break_duration,json=maxInterBreakDuration,proto3" json:"max_inter_break_duration,omitempty"` } func (x *BreakRule_FrequencyConstraint) Reset() { @@ -5273,14 +5273,14 @@ func (*BreakRule_FrequencyConstraint) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{16, 1} } -func (x *BreakRule_FrequencyConstraint) GetMinBreakDuration() *durationpb.Duration { +func (x *BreakRule_FrequencyConstraint) GetMinBreakDuration() *duration.Duration { if x != nil { return x.MinBreakDuration } return nil } -func (x *BreakRule_FrequencyConstraint) GetMaxInterBreakDuration() *durationpb.Duration { +func (x *BreakRule_FrequencyConstraint) GetMaxInterBreakDuration() *duration.Duration { if x != nil { return x.MaxInterBreakDuration } @@ -5298,9 +5298,9 @@ type ShipmentRoute_Delay struct { unknownFields protoimpl.UnknownFields // Start of the delay. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Duration of the delay. - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *ShipmentRoute_Delay) Reset() { @@ -5335,14 +5335,14 @@ func (*ShipmentRoute_Delay) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{17, 0} } -func (x *ShipmentRoute_Delay) GetStartTime() *timestamppb.Timestamp { +func (x *ShipmentRoute_Delay) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ShipmentRoute_Delay) GetDuration() *durationpb.Duration { +func (x *ShipmentRoute_Delay) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -5367,7 +5367,7 @@ type ShipmentRoute_Visit struct { // Time at which the visit starts. Note that the vehicle may arrive earlier // than this at the visit location. Times are consistent with the // `ShipmentModel`. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Total visit load demand as the sum of the shipment and the visit request // `load_demands`. The values are negative if the visit is a delivery. // Demands are reported for the same types as the @@ -5389,7 +5389,7 @@ type ShipmentRoute_Visit struct { // start_time - vehicle_start_time - travel duration from // the vehicle's `start_location` to the visit. // ``` - Detour *durationpb.Duration `protobuf:"bytes,6,opt,name=detour,proto3" json:"detour,omitempty"` + Detour *duration.Duration `protobuf:"bytes,6,opt,name=detour,proto3" json:"detour,omitempty"` // Copy of the corresponding `Shipment.label`, if specified in the // `Shipment`. ShipmentLabel string `protobuf:"bytes,7,opt,name=shipment_label,json=shipmentLabel,proto3" json:"shipment_label,omitempty"` @@ -5470,7 +5470,7 @@ func (x *ShipmentRoute_Visit) GetVisitRequestIndex() int32 { return 0 } -func (x *ShipmentRoute_Visit) GetStartTime() *timestamppb.Timestamp { +func (x *ShipmentRoute_Visit) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -5484,7 +5484,7 @@ func (x *ShipmentRoute_Visit) GetLoadDemands() map[string]*Shipment_Load { return nil } -func (x *ShipmentRoute_Visit) GetDetour() *durationpb.Duration { +func (x *ShipmentRoute_Visit) GetDetour() *duration.Duration { if x != nil { return x.Detour } @@ -5540,7 +5540,7 @@ type ShipmentRoute_Transition struct { unknownFields protoimpl.UnknownFields // Travel duration during this transition. - TravelDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` + TravelDuration *duration.Duration `protobuf:"bytes,1,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` // Distance traveled during the transition. TravelDistanceMeters float64 `protobuf:"fixed64,2,opt,name=travel_distance_meters,json=travelDistanceMeters,proto3" json:"travel_distance_meters,omitempty"` // When traffic is requested via @@ -5554,15 +5554,15 @@ type ShipmentRoute_Transition struct { // starts exactly `delay_duration` seconds before the next event (visit or // vehicle end). See // [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay]. - DelayDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=delay_duration,json=delayDuration,proto3" json:"delay_duration,omitempty"` + DelayDuration *duration.Duration `protobuf:"bytes,4,opt,name=delay_duration,json=delayDuration,proto3" json:"delay_duration,omitempty"` // Sum of the duration of the breaks occurring during this transition, if // any. Details about each break's start time and duration are stored in // [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks]. - BreakDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=break_duration,json=breakDuration,proto3" json:"break_duration,omitempty"` + BreakDuration *duration.Duration `protobuf:"bytes,5,opt,name=break_duration,json=breakDuration,proto3" json:"break_duration,omitempty"` // Time spent waiting during this transition. Wait duration corresponds to // idle time and does not include break time. Also note that this wait time // may be split into several non-contiguous intervals. - WaitDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=wait_duration,json=waitDuration,proto3" json:"wait_duration,omitempty"` + WaitDuration *duration.Duration `protobuf:"bytes,6,opt,name=wait_duration,json=waitDuration,proto3" json:"wait_duration,omitempty"` // Total duration of the transition, provided for convenience. It is equal // to: // @@ -5571,9 +5571,9 @@ type ShipmentRoute_Transition struct { // * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following // additionally holds: `total_duration = travel_duration + delay_duration // + break_duration + wait_duration`. - TotalDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` + TotalDuration *duration.Duration `protobuf:"bytes,7,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` // Start time of this transition. - StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The encoded polyline representation of the route followed during the // transition. // This field is only populated if [populate_transition_polylines] @@ -5627,7 +5627,7 @@ func (*ShipmentRoute_Transition) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{17, 2} } -func (x *ShipmentRoute_Transition) GetTravelDuration() *durationpb.Duration { +func (x *ShipmentRoute_Transition) GetTravelDuration() *duration.Duration { if x != nil { return x.TravelDuration } @@ -5648,35 +5648,35 @@ func (x *ShipmentRoute_Transition) GetTrafficInfoUnavailable() bool { return false } -func (x *ShipmentRoute_Transition) GetDelayDuration() *durationpb.Duration { +func (x *ShipmentRoute_Transition) GetDelayDuration() *duration.Duration { if x != nil { return x.DelayDuration } return nil } -func (x *ShipmentRoute_Transition) GetBreakDuration() *durationpb.Duration { +func (x *ShipmentRoute_Transition) GetBreakDuration() *duration.Duration { if x != nil { return x.BreakDuration } return nil } -func (x *ShipmentRoute_Transition) GetWaitDuration() *durationpb.Duration { +func (x *ShipmentRoute_Transition) GetWaitDuration() *duration.Duration { if x != nil { return x.WaitDuration } return nil } -func (x *ShipmentRoute_Transition) GetTotalDuration() *durationpb.Duration { +func (x *ShipmentRoute_Transition) GetTotalDuration() *duration.Duration { if x != nil { return x.TotalDuration } return nil } -func (x *ShipmentRoute_Transition) GetStartTime() *timestamppb.Timestamp { +func (x *ShipmentRoute_Transition) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -5815,9 +5815,9 @@ type ShipmentRoute_Break struct { unknownFields protoimpl.UnknownFields // Start time of a break. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Duration of a break. - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *ShipmentRoute_Break) Reset() { @@ -5852,14 +5852,14 @@ func (*ShipmentRoute_Break) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{17, 5} } -func (x *ShipmentRoute_Break) GetStartTime() *timestamppb.Timestamp { +func (x *ShipmentRoute_Break) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ShipmentRoute_Break) GetDuration() *durationpb.Duration { +func (x *ShipmentRoute_Break) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -5887,7 +5887,7 @@ type ShipmentRoute_TravelStep struct { unknownFields protoimpl.UnknownFields // Duration of the travel step. - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` // Distance traveled during the step. DistanceMeters float64 `protobuf:"fixed64,2,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"` // When traffic is requested via @@ -5937,7 +5937,7 @@ func (*ShipmentRoute_TravelStep) Descriptor() ([]byte, []int) { return file_google_cloud_optimization_v1_fleet_routing_proto_rawDescGZIP(), []int{17, 6} } -func (x *ShipmentRoute_TravelStep) GetDuration() *durationpb.Duration { +func (x *ShipmentRoute_TravelStep) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -6181,7 +6181,7 @@ type InjectedSolutionConstraint_ConstraintRelaxation_Relaxation struct { // satified. Level InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_Level `protobuf:"varint,1,opt,name=level,proto3,enum=google.cloud.optimization.v1.InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_Level" json:"level,omitempty"` // The time at or after which the relaxation `level` may be applied. - ThresholdTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=threshold_time,json=thresholdTime,proto3" json:"threshold_time,omitempty"` + ThresholdTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=threshold_time,json=thresholdTime,proto3" json:"threshold_time,omitempty"` // The number of visits at or after which the relaxation `level` may be // applied. If `threshold_visit_count` is 0 (or unset), the `level` may be // applied directly at the vehicle start. @@ -6231,7 +6231,7 @@ func (x *InjectedSolutionConstraint_ConstraintRelaxation_Relaxation) GetLevel() return InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_LEVEL_UNSPECIFIED } -func (x *InjectedSolutionConstraint_ConstraintRelaxation_Relaxation) GetThresholdTime() *timestamppb.Timestamp { +func (x *InjectedSolutionConstraint_ConstraintRelaxation_Relaxation) GetThresholdTime() *timestamp.Timestamp { if x != nil { return x.ThresholdTime } @@ -7793,8 +7793,8 @@ var file_google_cloud_optimization_v1_fleet_routing_proto_goTypes = []interface{ (*InjectedSolutionConstraint_ConstraintRelaxation)(nil), // 63: google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation (*InjectedSolutionConstraint_ConstraintRelaxation_Relaxation)(nil), // 64: google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation (*OptimizeToursValidationError_FieldReference)(nil), // 65: google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - (*durationpb.Duration)(nil), // 66: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 67: google.protobuf.Timestamp + (*duration.Duration)(nil), // 66: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 67: google.protobuf.Timestamp (*latlng.LatLng)(nil), // 68: google.type.LatLng (*InputConfig)(nil), // 69: google.cloud.optimization.v1.InputConfig (*OutputConfig)(nil), // 70: google.cloud.optimization.v1.OutputConfig diff --git a/optimization/go.mod b/optimization/go.mod index bad7d15339ab..47f7a57e2d80 100644 --- a/optimization/go.mod +++ b/optimization/go.mod @@ -4,16 +4,17 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect @@ -22,5 +23,4 @@ require ( golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/orchestration/airflow/service/apiv1/servicepb/environments.pb.go b/orchestration/airflow/service/apiv1/servicepb/environments.pb.go index 8789fc1c21f7..284e292f4dee 100644 --- a/orchestration/airflow/service/apiv1/servicepb/environments.pb.go +++ b/orchestration/airflow/service/apiv1/servicepb/environments.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/orchestration/airflow/service/v1/environments.proto package servicepb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -582,7 +582,7 @@ type UpdateEnvironmentRequest struct { // variables are cleared. // It is an error to provide both this mask and a mask specifying one or // more individual environment variables. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEnvironmentRequest) Reset() { @@ -631,7 +631,7 @@ func (x *UpdateEnvironmentRequest) GetEnvironment() *Environment { return nil } -func (x *UpdateEnvironmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEnvironmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1687,9 +1687,9 @@ type Environment struct { // The current state of the environment. State Environment_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.orchestration.airflow.service.v1.Environment_State" json:"state,omitempty"` // Output only. The time at which this environment was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this environment was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. User-defined labels for this environment. // The labels map can contain no more than 64 entries. Entries of the labels // map are UTF8 strings that comply with the following restrictions: @@ -1761,14 +1761,14 @@ func (x *Environment) GetState() Environment_State { return Environment_STATE_UNSPECIFIED } -func (x *Environment) GetCreateTime() *timestamppb.Timestamp { +func (x *Environment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Environment) GetUpdateTime() *timestamppb.Timestamp { +func (x *Environment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2451,8 +2451,8 @@ var file_google_cloud_orchestration_airflow_service_v1_environments_proto_goType nil, // 23: google.cloud.orchestration.airflow.service.v1.SoftwareConfig.EnvVariablesEntry nil, // 24: google.cloud.orchestration.airflow.service.v1.Environment.LabelsEntry nil, // 25: google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.PypiDependenciesEntry - (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 26: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 27: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 28: google.longrunning.Operation } var file_google_cloud_orchestration_airflow_service_v1_environments_proto_depIdxs = []int32{ diff --git a/orchestration/airflow/service/apiv1/servicepb/image_versions.pb.go b/orchestration/airflow/service/apiv1/servicepb/image_versions.pb.go index dafd39538155..706b422f393f 100644 --- a/orchestration/airflow/service/apiv1/servicepb/image_versions.pb.go +++ b/orchestration/airflow/service/apiv1/servicepb/image_versions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/orchestration/airflow/service/v1/image_versions.proto package servicepb diff --git a/orchestration/airflow/service/apiv1/servicepb/operations.pb.go b/orchestration/airflow/service/apiv1/servicepb/operations.pb.go index 418b1101190e..3a2087ac933c 100644 --- a/orchestration/airflow/service/apiv1/servicepb/operations.pb.go +++ b/orchestration/airflow/service/apiv1/servicepb/operations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/orchestration/airflow/service/v1/operations.proto package servicepb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -177,10 +177,10 @@ type OperationMetadata struct { // Output only. The UUID of the resource being operated on. ResourceUuid string `protobuf:"bytes,4,opt,name=resource_uuid,json=resourceUuid,proto3" json:"resource_uuid,omitempty"` // Output only. The time the operation was submitted to the server. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the operation terminated, regardless of its success. // This field is unset if the operation is still ongoing. - EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *OperationMetadata) Reset() { @@ -243,14 +243,14 @@ func (x *OperationMetadata) GetResourceUuid() string { return "" } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -334,10 +334,10 @@ func file_google_cloud_orchestration_airflow_service_v1_operations_proto_rawDesc var file_google_cloud_orchestration_airflow_service_v1_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_google_cloud_orchestration_airflow_service_v1_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_orchestration_airflow_service_v1_operations_proto_goTypes = []interface{}{ - (OperationMetadata_State)(0), // 0: google.cloud.orchestration.airflow.service.v1.OperationMetadata.State - (OperationMetadata_Type)(0), // 1: google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type - (*OperationMetadata)(nil), // 2: google.cloud.orchestration.airflow.service.v1.OperationMetadata - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (OperationMetadata_State)(0), // 0: google.cloud.orchestration.airflow.service.v1.OperationMetadata.State + (OperationMetadata_Type)(0), // 1: google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type + (*OperationMetadata)(nil), // 2: google.cloud.orchestration.airflow.service.v1.OperationMetadata + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_orchestration_airflow_service_v1_operations_proto_depIdxs = []int32{ 0, // 0: google.cloud.orchestration.airflow.service.v1.OperationMetadata.state:type_name -> google.cloud.orchestration.airflow.service.v1.OperationMetadata.State diff --git a/orchestration/go.mod b/orchestration/go.mod index 087e88eeaaab..6f07ee212cfb 100644 --- a/orchestration/go.mod +++ b/orchestration/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/orgpolicy/apiv2/orgpolicypb/constraint.pb.go b/orgpolicy/apiv2/orgpolicypb/constraint.pb.go index a6ebda4dcdd9..c3b4ceff3d46 100644 --- a/orgpolicy/apiv2/orgpolicypb/constraint.pb.go +++ b/orgpolicy/apiv2/orgpolicypb/constraint.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/orgpolicy/v2/constraint.proto package orgpolicypb diff --git a/orgpolicy/apiv2/orgpolicypb/orgpolicy.pb.go b/orgpolicy/apiv2/orgpolicypb/orgpolicy.pb.go index f70575e16fb3..5d3d57b69f83 100644 --- a/orgpolicy/apiv2/orgpolicypb/orgpolicy.pb.go +++ b/orgpolicy/apiv2/orgpolicypb/orgpolicy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/orgpolicy/v2/orgpolicy.proto package orgpolicypb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" expr "google.golang.org/genproto/googleapis/type/expr" grpc "google.golang.org/grpc" @@ -32,8 +34,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -208,7 +208,7 @@ type PolicySpec struct { // Output only. The time stamp this was previously updated. This // represents the last time a call to `CreatePolicy` or `UpdatePolicy` was // made for that `Policy`. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Up to 10 PolicyRules are allowed. // // In Policies for boolean constraints, the following requirements apply: @@ -274,7 +274,7 @@ func (x *PolicySpec) GetEtag() string { return "" } -func (x *PolicySpec) GetUpdateTime() *timestamppb.Timestamp { +func (x *PolicySpec) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1367,10 +1367,10 @@ var file_google_cloud_orgpolicy_v2_orgpolicy_proto_goTypes = []interface{}{ (*DeletePolicyRequest)(nil), // 11: google.cloud.orgpolicy.v2.DeletePolicyRequest (*PolicySpec_PolicyRule)(nil), // 12: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule (*PolicySpec_PolicyRule_StringValues)(nil), // 13: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp (*Constraint)(nil), // 15: google.cloud.orgpolicy.v2.Constraint (*expr.Expr)(nil), // 16: google.type.Expr - (*emptypb.Empty)(nil), // 17: google.protobuf.Empty + (*empty.Empty)(nil), // 17: google.protobuf.Empty } var file_google_cloud_orgpolicy_v2_orgpolicy_proto_depIdxs = []int32{ 2, // 0: google.cloud.orgpolicy.v2.Policy.spec:type_name -> google.cloud.orgpolicy.v2.PolicySpec @@ -1657,7 +1657,7 @@ type OrgPolicyClient interface { // // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the // constraint or Org Policy does not exist. - DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type orgPolicyClient struct { @@ -1722,8 +1722,8 @@ func (c *orgPolicyClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequ return out, nil } -func (c *orgPolicyClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *orgPolicyClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/DeletePolicy", in, out, opts...) if err != nil { return nil, err @@ -1771,7 +1771,7 @@ type OrgPolicyServer interface { // // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the // constraint or Org Policy does not exist. - DeletePolicy(context.Context, *DeletePolicyRequest) (*emptypb.Empty, error) + DeletePolicy(context.Context, *DeletePolicyRequest) (*empty.Empty, error) } // UnimplementedOrgPolicyServer can be embedded to have forward compatible implementations. @@ -1796,7 +1796,7 @@ func (*UnimplementedOrgPolicyServer) CreatePolicy(context.Context, *CreatePolicy func (*UnimplementedOrgPolicyServer) UpdatePolicy(context.Context, *UpdatePolicyRequest) (*Policy, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePolicy not implemented") } -func (*UnimplementedOrgPolicyServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*emptypb.Empty, error) { +func (*UnimplementedOrgPolicyServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePolicy not implemented") } diff --git a/orgpolicy/go.mod b/orgpolicy/go.mod index f3deba744102..c1ee0fd47226 100644 --- a/orgpolicy/go.mod +++ b/orgpolicy/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/orgpolicy go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/agentendpoint.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/agentendpoint.pb.go index 50051544b272..60760b3b0024 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/agentendpoint.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/agentendpoint.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto package agentendpointpb diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/config_common.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/config_common.pb.go index a0b88f27c1d4..a8e871f3fb3e 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/config_common.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/config_common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/config_common.proto package agentendpointpb diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/inventory.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/inventory.pb.go index 2973005d5e87..02fc3d344814 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/inventory.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/inventory.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/inventory.proto package agentendpointpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" date "google.golang.org/genproto/googleapis/type/date" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -601,7 +601,7 @@ type Inventory_WindowsUpdatePackage struct { // The revision number of this update package. RevisionNumber int32 `protobuf:"varint,8,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` // The last published date of the update, in (UTC) date and time. - LastDeploymentChangeTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_deployment_change_time,json=lastDeploymentChangeTime,proto3" json:"last_deployment_change_time,omitempty"` + LastDeploymentChangeTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_deployment_change_time,json=lastDeploymentChangeTime,proto3" json:"last_deployment_change_time,omitempty"` } func (x *Inventory_WindowsUpdatePackage) Reset() { @@ -692,7 +692,7 @@ func (x *Inventory_WindowsUpdatePackage) GetRevisionNumber() int32 { return 0 } -func (x *Inventory_WindowsUpdatePackage) GetLastDeploymentChangeTime() *timestamppb.Timestamp { +func (x *Inventory_WindowsUpdatePackage) GetLastDeploymentChangeTime() *timestamp.Timestamp { if x != nil { return x.LastDeploymentChangeTime } @@ -715,7 +715,7 @@ type Inventory_WindowsQuickFixEngineeringPackage struct { // Unique identifier associated with a particular QFE update. HotFixId string `protobuf:"bytes,3,opt,name=hot_fix_id,json=hotFixId,proto3" json:"hot_fix_id,omitempty"` // Date that the QFE update was installed. Mapped from installed_on field. - InstallTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"` + InstallTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"` } func (x *Inventory_WindowsQuickFixEngineeringPackage) Reset() { @@ -771,7 +771,7 @@ func (x *Inventory_WindowsQuickFixEngineeringPackage) GetHotFixId() string { return "" } -func (x *Inventory_WindowsQuickFixEngineeringPackage) GetInstallTime() *timestamppb.Timestamp { +func (x *Inventory_WindowsQuickFixEngineeringPackage) GetInstallTime() *timestamp.Timestamp { if x != nil { return x.InstallTime } @@ -1147,7 +1147,7 @@ var file_google_cloud_osconfig_agentendpoint_v1_inventory_proto_goTypes = []inte (*Inventory_WindowsQuickFixEngineeringPackage)(nil), // 6: google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsQuickFixEngineeringPackage (*Inventory_WindowsApplication)(nil), // 7: google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsApplication (*Inventory_WindowsUpdatePackage_WindowsUpdateCategory)(nil), // 8: google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp (*date.Date)(nil), // 10: google.type.Date } var file_google_cloud_osconfig_agentendpoint_v1_inventory_proto_depIdxs = []int32{ diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/os_policy.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/os_policy.pb.go index 56a1d9f4490c..71e1d6d282e5 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/os_policy.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/os_policy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/os_policy.proto package agentendpointpb diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/patch_jobs.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/patch_jobs.pb.go index b5ee363d8c25..e06b7f9e642d 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/patch_jobs.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/patch_jobs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/patch_jobs.proto package agentendpointpb diff --git a/osconfig/agentendpoint/apiv1/agentendpointpb/tasks.pb.go b/osconfig/agentendpoint/apiv1/agentendpointpb/tasks.pb.go index e1a788e460b9..247f404b8258 100644 --- a/osconfig/agentendpoint/apiv1/agentendpointpb/tasks.pb.go +++ b/osconfig/agentendpoint/apiv1/agentendpointpb/tasks.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/agentendpoint/v1/tasks.proto package agentendpointpb diff --git a/osconfig/apiv1/osconfigpb/inventory.pb.go b/osconfig/apiv1/osconfigpb/inventory.pb.go index 9f9f50850820..973e1b2a7f3a 100644 --- a/osconfig/apiv1/osconfigpb/inventory.pb.go +++ b/osconfig/apiv1/osconfigpb/inventory.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/inventory.proto package osconfigpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" date "google.golang.org/genproto/googleapis/type/date" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -220,7 +220,7 @@ type Inventory struct { // version. Items map[string]*Inventory_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Timestamp of the last reported inventory for the VM. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Inventory) Reset() { @@ -276,7 +276,7 @@ func (x *Inventory) GetItems() map[string]*Inventory_Item { return nil } -func (x *Inventory) GetUpdateTime() *timestamppb.Timestamp { +func (x *Inventory) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -628,9 +628,9 @@ type Inventory_Item struct { // The origin of this inventory item. OriginType Inventory_Item_OriginType `protobuf:"varint,2,opt,name=origin_type,json=originType,proto3,enum=google.cloud.osconfig.v1.Inventory_Item_OriginType" json:"origin_type,omitempty"` // When this inventory item was first detected. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // When this inventory item was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The specific type of inventory, correlating to its specific details. Type Inventory_Item_Type `protobuf:"varint,5,opt,name=type,proto3,enum=google.cloud.osconfig.v1.Inventory_Item_Type" json:"type,omitempty"` // Specific details of this inventory item based on its type. @@ -688,14 +688,14 @@ func (x *Inventory_Item) GetOriginType() Inventory_Item_OriginType { return Inventory_Item_ORIGIN_TYPE_UNSPECIFIED } -func (x *Inventory_Item) GetCreateTime() *timestamppb.Timestamp { +func (x *Inventory_Item) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Inventory_Item) GetUpdateTime() *timestamppb.Timestamp { +func (x *Inventory_Item) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1129,7 +1129,7 @@ type Inventory_WindowsUpdatePackage struct { // The revision number of this update package. RevisionNumber int32 `protobuf:"varint,7,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` // The last published date of the update, in (UTC) date and time. - LastDeploymentChangeTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_deployment_change_time,json=lastDeploymentChangeTime,proto3" json:"last_deployment_change_time,omitempty"` + LastDeploymentChangeTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_deployment_change_time,json=lastDeploymentChangeTime,proto3" json:"last_deployment_change_time,omitempty"` } func (x *Inventory_WindowsUpdatePackage) Reset() { @@ -1220,7 +1220,7 @@ func (x *Inventory_WindowsUpdatePackage) GetRevisionNumber() int32 { return 0 } -func (x *Inventory_WindowsUpdatePackage) GetLastDeploymentChangeTime() *timestamppb.Timestamp { +func (x *Inventory_WindowsUpdatePackage) GetLastDeploymentChangeTime() *timestamp.Timestamp { if x != nil { return x.LastDeploymentChangeTime } @@ -1243,7 +1243,7 @@ type Inventory_WindowsQuickFixEngineeringPackage struct { // Unique identifier associated with a particular QFE update. HotFixId string `protobuf:"bytes,3,opt,name=hot_fix_id,json=hotFixId,proto3" json:"hot_fix_id,omitempty"` // Date that the QFE update was installed. Mapped from installed_on field. - InstallTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"` + InstallTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=install_time,json=installTime,proto3" json:"install_time,omitempty"` } func (x *Inventory_WindowsQuickFixEngineeringPackage) Reset() { @@ -1299,7 +1299,7 @@ func (x *Inventory_WindowsQuickFixEngineeringPackage) GetHotFixId() string { return "" } -func (x *Inventory_WindowsQuickFixEngineeringPackage) GetInstallTime() *timestamppb.Timestamp { +func (x *Inventory_WindowsQuickFixEngineeringPackage) GetInstallTime() *timestamp.Timestamp { if x != nil { return x.InstallTime } @@ -1768,7 +1768,7 @@ var file_google_cloud_osconfig_v1_inventory_proto_goTypes = []interface{}{ (*Inventory_WindowsApplication)(nil), // 14: google.cloud.osconfig.v1.Inventory.WindowsApplication nil, // 15: google.cloud.osconfig.v1.Inventory.ItemsEntry (*Inventory_WindowsUpdatePackage_WindowsUpdateCategory)(nil), // 16: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp (*date.Date)(nil), // 18: google.type.Date } var file_google_cloud_osconfig_v1_inventory_proto_depIdxs = []int32{ diff --git a/osconfig/apiv1/osconfigpb/os_policy.pb.go b/osconfig/apiv1/osconfigpb/os_policy.pb.go index 22c228fcf845..db0d5c0e2b16 100644 --- a/osconfig/apiv1/osconfigpb/os_policy.pb.go +++ b/osconfig/apiv1/osconfigpb/os_policy.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/os_policy.proto package osconfigpb diff --git a/osconfig/apiv1/osconfigpb/os_policy_assignment_reports.pb.go b/osconfig/apiv1/osconfigpb/os_policy_assignment_reports.pb.go index 32d62c380e8e..969f23dce06b 100644 --- a/osconfig/apiv1/osconfigpb/os_policy_assignment_reports.pb.go +++ b/osconfig/apiv1/osconfigpb/os_policy_assignment_reports.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/os_policy_assignment_reports.proto package osconfigpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -466,7 +466,7 @@ type OSPolicyAssignmentReport struct { // Compliance data for each `OSPolicy` that is applied to the VM. OsPolicyCompliances []*OSPolicyAssignmentReport_OSPolicyCompliance `protobuf:"bytes,4,rep,name=os_policy_compliances,json=osPolicyCompliances,proto3" json:"os_policy_compliances,omitempty"` // Timestamp for when the report was last generated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Unique identifier of the last attempted run to apply the OS policies // associated with this assignment on the VM. // @@ -537,7 +537,7 @@ func (x *OSPolicyAssignmentReport) GetOsPolicyCompliances() []*OSPolicyAssignmen return nil } -func (x *OSPolicyAssignmentReport) GetUpdateTime() *timestamppb.Timestamp { +func (x *OSPolicyAssignmentReport) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1115,7 +1115,7 @@ var file_google_cloud_osconfig_v1_os_policy_assignment_reports_proto_goTypes = [ (*OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance)(nil), // 8: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance (*OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep)(nil), // 9: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep (*OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput)(nil), // 10: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_google_cloud_osconfig_v1_os_policy_assignment_reports_proto_depIdxs = []int32{ 6, // 0: google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.os_policy_assignment_reports:type_name -> google.cloud.osconfig.v1.OSPolicyAssignmentReport diff --git a/osconfig/apiv1/osconfigpb/os_policy_assignments.pb.go b/osconfig/apiv1/osconfigpb/os_policy_assignments.pb.go index 6170718d71e2..cd29d96fbd00 100644 --- a/osconfig/apiv1/osconfigpb/os_policy_assignments.pb.go +++ b/osconfig/apiv1/osconfigpb/os_policy_assignments.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/os_policy_assignments.proto package osconfigpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -263,7 +263,7 @@ type OSPolicyAssignment struct { // assignment RevisionId string `protobuf:"bytes,6,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // Output only. The timestamp that the revision was created. - RevisionCreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` + RevisionCreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` // The etag for this OS policy assignment. // If this is provided on update, it must match the server's etag. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` @@ -361,7 +361,7 @@ func (x *OSPolicyAssignment) GetRevisionId() string { return "" } -func (x *OSPolicyAssignment) GetRevisionCreateTime() *timestamppb.Timestamp { +func (x *OSPolicyAssignment) GetRevisionCreateTime() *timestamp.Timestamp { if x != nil { return x.RevisionCreateTime } @@ -427,9 +427,9 @@ type OSPolicyAssignmentOperationMetadata struct { // State of the rollout RolloutState OSPolicyAssignmentOperationMetadata_RolloutState `protobuf:"varint,3,opt,name=rollout_state,json=rolloutState,proto3,enum=google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata_RolloutState" json:"rollout_state,omitempty"` // Rollout start time - RolloutStartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=rollout_start_time,json=rolloutStartTime,proto3" json:"rollout_start_time,omitempty"` + RolloutStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=rollout_start_time,json=rolloutStartTime,proto3" json:"rollout_start_time,omitempty"` // Rollout update time - RolloutUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=rollout_update_time,json=rolloutUpdateTime,proto3" json:"rollout_update_time,omitempty"` + RolloutUpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=rollout_update_time,json=rolloutUpdateTime,proto3" json:"rollout_update_time,omitempty"` } func (x *OSPolicyAssignmentOperationMetadata) Reset() { @@ -485,14 +485,14 @@ func (x *OSPolicyAssignmentOperationMetadata) GetRolloutState() OSPolicyAssignme return OSPolicyAssignmentOperationMetadata_ROLLOUT_STATE_UNSPECIFIED } -func (x *OSPolicyAssignmentOperationMetadata) GetRolloutStartTime() *timestamppb.Timestamp { +func (x *OSPolicyAssignmentOperationMetadata) GetRolloutStartTime() *timestamp.Timestamp { if x != nil { return x.RolloutStartTime } return nil } -func (x *OSPolicyAssignmentOperationMetadata) GetRolloutUpdateTime() *timestamppb.Timestamp { +func (x *OSPolicyAssignmentOperationMetadata) GetRolloutUpdateTime() *timestamp.Timestamp { if x != nil { return x.RolloutUpdateTime } @@ -584,7 +584,7 @@ type UpdateOSPolicyAssignmentRequest struct { OsPolicyAssignment *OSPolicyAssignment `protobuf:"bytes,1,opt,name=os_policy_assignment,json=osPolicyAssignment,proto3" json:"os_policy_assignment,omitempty"` // Optional. Field mask that controls which fields of the assignment should be // updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateOSPolicyAssignmentRequest) Reset() { @@ -626,7 +626,7 @@ func (x *UpdateOSPolicyAssignmentRequest) GetOsPolicyAssignment() *OSPolicyAssig return nil } -func (x *UpdateOSPolicyAssignmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateOSPolicyAssignmentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1152,7 +1152,7 @@ type OSPolicyAssignment_Rollout struct { // VM continues to count towards the `disruption_budget` at least // until this duration of time has passed after configuration changes are // applied. - MinWaitDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=min_wait_duration,json=minWaitDuration,proto3" json:"min_wait_duration,omitempty"` + MinWaitDuration *duration.Duration `protobuf:"bytes,2,opt,name=min_wait_duration,json=minWaitDuration,proto3" json:"min_wait_duration,omitempty"` } func (x *OSPolicyAssignment_Rollout) Reset() { @@ -1194,7 +1194,7 @@ func (x *OSPolicyAssignment_Rollout) GetDisruptionBudget() *FixedOrPercent { return nil } -func (x *OSPolicyAssignment_Rollout) GetMinWaitDuration() *durationpb.Duration { +func (x *OSPolicyAssignment_Rollout) GetMinWaitDuration() *duration.Duration { if x != nil { return x.MinWaitDuration } @@ -1575,10 +1575,10 @@ var file_google_cloud_osconfig_v1_os_policy_assignments_proto_goTypes = []interf nil, // 16: google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.LabelsEntry (*OSPolicyAssignment_InstanceFilter_Inventory)(nil), // 17: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory (*OSPolicy)(nil), // 18: google.cloud.osconfig.v1.OSPolicy - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 20: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 20: google.protobuf.FieldMask (*FixedOrPercent)(nil), // 21: google.cloud.osconfig.v1.FixedOrPercent - (*durationpb.Duration)(nil), // 22: google.protobuf.Duration + (*duration.Duration)(nil), // 22: google.protobuf.Duration } var file_google_cloud_osconfig_v1_os_policy_assignments_proto_depIdxs = []int32{ 18, // 0: google.cloud.osconfig.v1.OSPolicyAssignment.os_policies:type_name -> google.cloud.osconfig.v1.OSPolicy diff --git a/osconfig/apiv1/osconfigpb/osconfig_common.pb.go b/osconfig/apiv1/osconfigpb/osconfig_common.pb.go index 3868a00d0a7c..6308249adc40 100644 --- a/osconfig/apiv1/osconfigpb/osconfig_common.pb.go +++ b/osconfig/apiv1/osconfigpb/osconfig_common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/osconfig_common.proto package osconfigpb diff --git a/osconfig/apiv1/osconfigpb/osconfig_service.pb.go b/osconfig/apiv1/osconfigpb/osconfig_service.pb.go index b3d0367360b9..bac2a65cfec9 100644 --- a/osconfig/apiv1/osconfigpb/osconfig_service.pb.go +++ b/osconfig/apiv1/osconfigpb/osconfig_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/osconfig_service.proto package osconfigpb @@ -24,13 +24,13 @@ import ( context "context" reflect "reflect" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -250,7 +250,7 @@ var file_google_cloud_osconfig_v1_osconfig_service_proto_goTypes = []interface{} (*ListPatchJobInstanceDetailsResponse)(nil), // 14: google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse (*PatchDeployment)(nil), // 15: google.cloud.osconfig.v1.PatchDeployment (*ListPatchDeploymentsResponse)(nil), // 16: google.cloud.osconfig.v1.ListPatchDeploymentsResponse - (*emptypb.Empty)(nil), // 17: google.protobuf.Empty + (*empty.Empty)(nil), // 17: google.protobuf.Empty } var file_google_cloud_osconfig_v1_osconfig_service_proto_depIdxs = []int32{ 0, // 0: google.cloud.osconfig.v1.OsConfigService.ExecutePatchJob:input_type -> google.cloud.osconfig.v1.ExecutePatchJobRequest @@ -341,7 +341,7 @@ type OsConfigServiceClient interface { // Get a page of OS Config patch deployments. ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error) // Delete an OS Config patch deployment. - DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Update an OS Config patch deployment. UpdatePatchDeployment(ctx context.Context, in *UpdatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) // Change state of patch deployment to "PAUSED". @@ -432,8 +432,8 @@ func (c *osConfigServiceClient) ListPatchDeployments(ctx context.Context, in *Li return out, nil } -func (c *osConfigServiceClient) DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *osConfigServiceClient) DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/DeletePatchDeployment", in, out, opts...) if err != nil { return nil, err @@ -489,7 +489,7 @@ type OsConfigServiceServer interface { // Get a page of OS Config patch deployments. ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) // Delete an OS Config patch deployment. - DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error) + DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*empty.Empty, error) // Update an OS Config patch deployment. UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error) // Change state of patch deployment to "PAUSED". @@ -528,7 +528,7 @@ func (*UnimplementedOsConfigServiceServer) GetPatchDeployment(context.Context, * func (*UnimplementedOsConfigServiceServer) ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListPatchDeployments not implemented") } -func (*UnimplementedOsConfigServiceServer) DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error) { +func (*UnimplementedOsConfigServiceServer) DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePatchDeployment not implemented") } func (*UnimplementedOsConfigServiceServer) UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error) { diff --git a/osconfig/apiv1/osconfigpb/osconfig_zonal_service.pb.go b/osconfig/apiv1/osconfigpb/osconfig_zonal_service.pb.go index f58cf1ed3c19..36f7087f2dec 100644 --- a/osconfig/apiv1/osconfigpb/osconfig_zonal_service.pb.go +++ b/osconfig/apiv1/osconfigpb/osconfig_zonal_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/osconfig_zonal_service.proto package osconfigpb diff --git a/osconfig/apiv1/osconfigpb/patch_deployments.pb.go b/osconfig/apiv1/osconfigpb/patch_deployments.pb.go index ac7853fc1c03..b4e8a493ef98 100644 --- a/osconfig/apiv1/osconfigpb/patch_deployments.pb.go +++ b/osconfig/apiv1/osconfigpb/patch_deployments.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/patch_deployments.proto package osconfigpb @@ -24,15 +24,15 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" datetime "google.golang.org/genproto/googleapis/type/datetime" dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -180,7 +180,7 @@ type PatchDeployment struct { PatchConfig *PatchConfig `protobuf:"bytes,4,opt,name=patch_config,json=patchConfig,proto3" json:"patch_config,omitempty"` // Optional. Duration of the patch. After the duration ends, the patch times // out. - Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` // Schedule for the patch. // // Types that are assignable to Schedule: @@ -190,14 +190,14 @@ type PatchDeployment struct { Schedule isPatchDeployment_Schedule `protobuf_oneof:"schedule"` // Output only. Time the patch deployment was created. Timestamp is in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time the patch deployment was last updated. Timestamp is in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The last time a patch job was started by this deployment. // Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text // format. - LastExecuteTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_execute_time,json=lastExecuteTime,proto3" json:"last_execute_time,omitempty"` + LastExecuteTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_execute_time,json=lastExecuteTime,proto3" json:"last_execute_time,omitempty"` // Optional. Rollout strategy of the patch job. Rollout *PatchRollout `protobuf:"bytes,11,opt,name=rollout,proto3" json:"rollout,omitempty"` // Output only. Current state of the patch deployment. @@ -264,7 +264,7 @@ func (x *PatchDeployment) GetPatchConfig() *PatchConfig { return nil } -func (x *PatchDeployment) GetDuration() *durationpb.Duration { +func (x *PatchDeployment) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -292,21 +292,21 @@ func (x *PatchDeployment) GetRecurringSchedule() *RecurringSchedule { return nil } -func (x *PatchDeployment) GetCreateTime() *timestamppb.Timestamp { +func (x *PatchDeployment) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *PatchDeployment) GetUpdateTime() *timestamppb.Timestamp { +func (x *PatchDeployment) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *PatchDeployment) GetLastExecuteTime() *timestamppb.Timestamp { +func (x *PatchDeployment) GetLastExecuteTime() *timestamp.Timestamp { if x != nil { return x.LastExecuteTime } @@ -353,7 +353,7 @@ type OneTimeSchedule struct { unknownFields protoimpl.UnknownFields // Required. The desired patch job execution time. - ExecuteTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=execute_time,json=executeTime,proto3" json:"execute_time,omitempty"` + ExecuteTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=execute_time,json=executeTime,proto3" json:"execute_time,omitempty"` } func (x *OneTimeSchedule) Reset() { @@ -388,7 +388,7 @@ func (*OneTimeSchedule) Descriptor() ([]byte, []int) { return file_google_cloud_osconfig_v1_patch_deployments_proto_rawDescGZIP(), []int{1} } -func (x *OneTimeSchedule) GetExecuteTime() *timestamppb.Timestamp { +func (x *OneTimeSchedule) GetExecuteTime() *timestamp.Timestamp { if x != nil { return x.ExecuteTime } @@ -406,10 +406,10 @@ type RecurringSchedule struct { TimeZone *datetime.TimeZone `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` // Optional. The time that the recurring schedule becomes effective. // Defaults to `create_time` of the patch deployment. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Optional. The end time at which a recurring patch deployment schedule is no // longer active. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Required. Time of the day to run a recurring deployment. TimeOfDay *timeofday.TimeOfDay `protobuf:"bytes,4,opt,name=time_of_day,json=timeOfDay,proto3" json:"time_of_day,omitempty"` // Required. The frequency unit of this recurring schedule. @@ -423,9 +423,9 @@ type RecurringSchedule struct { // *RecurringSchedule_Monthly ScheduleConfig isRecurringSchedule_ScheduleConfig `protobuf_oneof:"schedule_config"` // Output only. The time the last patch job ran successfully. - LastExecuteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_execute_time,json=lastExecuteTime,proto3" json:"last_execute_time,omitempty"` + LastExecuteTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_execute_time,json=lastExecuteTime,proto3" json:"last_execute_time,omitempty"` // Output only. The time the next patch job is scheduled to run. - NextExecuteTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=next_execute_time,json=nextExecuteTime,proto3" json:"next_execute_time,omitempty"` + NextExecuteTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=next_execute_time,json=nextExecuteTime,proto3" json:"next_execute_time,omitempty"` } func (x *RecurringSchedule) Reset() { @@ -467,14 +467,14 @@ func (x *RecurringSchedule) GetTimeZone() *datetime.TimeZone { return nil } -func (x *RecurringSchedule) GetStartTime() *timestamppb.Timestamp { +func (x *RecurringSchedule) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *RecurringSchedule) GetEndTime() *timestamppb.Timestamp { +func (x *RecurringSchedule) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -516,14 +516,14 @@ func (x *RecurringSchedule) GetMonthly() *MonthlySchedule { return nil } -func (x *RecurringSchedule) GetLastExecuteTime() *timestamppb.Timestamp { +func (x *RecurringSchedule) GetLastExecuteTime() *timestamp.Timestamp { if x != nil { return x.LastExecuteTime } return nil } -func (x *RecurringSchedule) GetNextExecuteTime() *timestamppb.Timestamp { +func (x *RecurringSchedule) GetNextExecuteTime() *timestamp.Timestamp { if x != nil { return x.NextExecuteTime } @@ -1074,7 +1074,7 @@ type UpdatePatchDeploymentRequest struct { PatchDeployment *PatchDeployment `protobuf:"bytes,1,opt,name=patch_deployment,json=patchDeployment,proto3" json:"patch_deployment,omitempty"` // Optional. Field mask that controls which fields of the patch deployment // should be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdatePatchDeploymentRequest) Reset() { @@ -1116,7 +1116,7 @@ func (x *UpdatePatchDeploymentRequest) GetPatchDeployment() *PatchDeployment { return nil } -func (x *UpdatePatchDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatePatchDeploymentRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1513,13 +1513,13 @@ var file_google_cloud_osconfig_v1_patch_deployments_proto_goTypes = []interface{ (*ResumePatchDeploymentRequest)(nil), // 15: google.cloud.osconfig.v1.ResumePatchDeploymentRequest (*PatchInstanceFilter)(nil), // 16: google.cloud.osconfig.v1.PatchInstanceFilter (*PatchConfig)(nil), // 17: google.cloud.osconfig.v1.PatchConfig - (*durationpb.Duration)(nil), // 18: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*duration.Duration)(nil), // 18: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 19: google.protobuf.Timestamp (*PatchRollout)(nil), // 20: google.cloud.osconfig.v1.PatchRollout (*datetime.TimeZone)(nil), // 21: google.type.TimeZone (*timeofday.TimeOfDay)(nil), // 22: google.type.TimeOfDay (dayofweek.DayOfWeek)(0), // 23: google.type.DayOfWeek - (*fieldmaskpb.FieldMask)(nil), // 24: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 24: google.protobuf.FieldMask } var file_google_cloud_osconfig_v1_patch_deployments_proto_depIdxs = []int32{ 16, // 0: google.cloud.osconfig.v1.PatchDeployment.instance_filter:type_name -> google.cloud.osconfig.v1.PatchInstanceFilter diff --git a/osconfig/apiv1/osconfigpb/patch_jobs.pb.go b/osconfig/apiv1/osconfigpb/patch_jobs.pb.go index 1d1e6bd040f1..0d78c11088ba 100644 --- a/osconfig/apiv1/osconfigpb/patch_jobs.pb.go +++ b/osconfig/apiv1/osconfigpb/patch_jobs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/patch_jobs.proto package osconfigpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -567,7 +567,7 @@ type ExecutePatchJobRequest struct { PatchConfig *PatchConfig `protobuf:"bytes,4,opt,name=patch_config,json=patchConfig,proto3" json:"patch_config,omitempty"` // Duration of the patch job. After the duration ends, the patch job // times out. - Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` // If this patch is a dry-run only, instances are contacted but // will do nothing. DryRun bool `protobuf:"varint,6,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` @@ -637,7 +637,7 @@ func (x *ExecutePatchJobRequest) GetPatchConfig() *PatchConfig { return nil } -func (x *ExecutePatchJobRequest) GetDuration() *durationpb.Duration { +func (x *ExecutePatchJobRequest) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1101,9 +1101,9 @@ type PatchJob struct { // to 1024 characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Time this patch job was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Last time this patch job was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The current state of the PatchJob. State PatchJob_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.osconfig.v1.PatchJob_State" json:"state,omitempty"` // Instances to patch. @@ -1112,7 +1112,7 @@ type PatchJob struct { PatchConfig *PatchConfig `protobuf:"bytes,7,opt,name=patch_config,json=patchConfig,proto3" json:"patch_config,omitempty"` // Duration of the patch job. After the duration ends, the // patch job times out. - Duration *durationpb.Duration `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"` // Summary of instance details. InstanceDetailsSummary *PatchJob_InstanceDetailsSummary `protobuf:"bytes,9,opt,name=instance_details_summary,json=instanceDetailsSummary,proto3" json:"instance_details_summary,omitempty"` // If this patch job is a dry run, the agent reports that it has @@ -1183,14 +1183,14 @@ func (x *PatchJob) GetDescription() string { return "" } -func (x *PatchJob) GetCreateTime() *timestamppb.Timestamp { +func (x *PatchJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *PatchJob) GetUpdateTime() *timestamppb.Timestamp { +func (x *PatchJob) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1218,7 +1218,7 @@ func (x *PatchJob) GetPatchConfig() *PatchConfig { return nil } -func (x *PatchJob) GetDuration() *durationpb.Duration { +func (x *PatchJob) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -3013,8 +3013,8 @@ var file_google_cloud_osconfig_v1_patch_jobs_proto_goTypes = []interface{}{ (*PatchJob_InstanceDetailsSummary)(nil), // 28: google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary (*PatchInstanceFilter_GroupLabel)(nil), // 29: google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel nil, // 30: google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel.LabelsEntry - (*durationpb.Duration)(nil), // 31: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp + (*duration.Duration)(nil), // 31: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 32: google.protobuf.Timestamp (*FixedOrPercent)(nil), // 33: google.cloud.osconfig.v1.FixedOrPercent } var file_google_cloud_osconfig_v1_patch_jobs_proto_depIdxs = []int32{ diff --git a/osconfig/apiv1/osconfigpb/vulnerability.pb.go b/osconfig/apiv1/osconfigpb/vulnerability.pb.go index af71fa9598a2..03a54a506c6b 100644 --- a/osconfig/apiv1/osconfigpb/vulnerability.pb.go +++ b/osconfig/apiv1/osconfigpb/vulnerability.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/osconfig/v1/vulnerability.proto package osconfigpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -419,7 +419,7 @@ type VulnerabilityReport struct { Vulnerabilities []*VulnerabilityReport_Vulnerability `protobuf:"bytes,2,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"` // Output only. The timestamp for when the last vulnerability report was generated for the // VM. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *VulnerabilityReport) Reset() { @@ -468,7 +468,7 @@ func (x *VulnerabilityReport) GetVulnerabilities() []*VulnerabilityReport_Vulner return nil } -func (x *VulnerabilityReport) GetUpdateTime() *timestamppb.Timestamp { +func (x *VulnerabilityReport) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -855,9 +855,9 @@ type VulnerabilityReport_Vulnerability struct { // Deprecated: Do not use. AvailableInventoryItemIds []string `protobuf:"bytes,3,rep,name=available_inventory_item_ids,json=availableInventoryItemIds,proto3" json:"available_inventory_item_ids,omitempty"` // The timestamp for when the vulnerability was first detected. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The timestamp for when the vulnerability was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // List of items affected by the vulnerability. Items []*VulnerabilityReport_Vulnerability_Item `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"` } @@ -917,14 +917,14 @@ func (x *VulnerabilityReport_Vulnerability) GetAvailableInventoryItemIds() []str return nil } -func (x *VulnerabilityReport_Vulnerability) GetCreateTime() *timestamppb.Timestamp { +func (x *VulnerabilityReport_Vulnerability) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *VulnerabilityReport_Vulnerability) GetUpdateTime() *timestamppb.Timestamp { +func (x *VulnerabilityReport_Vulnerability) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1450,7 +1450,7 @@ var file_google_cloud_osconfig_v1_vulnerability_proto_goTypes = []interface{}{ (*VulnerabilityReport_Vulnerability_Details)(nil), // 12: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details (*VulnerabilityReport_Vulnerability_Item)(nil), // 13: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item (*VulnerabilityReport_Vulnerability_Details_Reference)(nil), // 14: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp } var file_google_cloud_osconfig_v1_vulnerability_proto_depIdxs = []int32{ 11, // 0: google.cloud.osconfig.v1.VulnerabilityReport.vulnerabilities:type_name -> google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability diff --git a/oslogin/apiv1/osloginpb/oslogin.pb.go b/oslogin/apiv1/osloginpb/oslogin.pb.go index c0cebfa236b6..d71b66d832c6 100644 --- a/oslogin/apiv1/osloginpb/oslogin.pb.go +++ b/oslogin/apiv1/osloginpb/oslogin.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/oslogin/v1/oslogin.proto package osloginpb @@ -26,15 +26,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" common "google.golang.org/genproto/googleapis/cloud/oslogin/common" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -461,7 +461,7 @@ type UpdateSshPublicKeyRequest struct { // Required. The SSH public key and expiration time. SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"` // Mask to control which fields get updated. Updates all if not present. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSshPublicKeyRequest) Reset() { @@ -510,7 +510,7 @@ func (x *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey { return nil } -func (x *UpdateSshPublicKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -738,8 +738,8 @@ var file_google_cloud_oslogin_v1_oslogin_proto_goTypes = []interface{}{ nil, // 8: google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry (*common.PosixAccount)(nil), // 9: google.cloud.oslogin.common.PosixAccount (*common.SshPublicKey)(nil), // 10: google.cloud.oslogin.common.SshPublicKey - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*empty.Empty)(nil), // 12: google.protobuf.Empty } var file_google_cloud_oslogin_v1_oslogin_proto_depIdxs = []int32{ 9, // 0: google.cloud.oslogin.v1.LoginProfile.posix_accounts:type_name -> google.cloud.oslogin.common.PosixAccount @@ -904,9 +904,9 @@ const _ = grpc.SupportPackageIsVersion6 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type OsLoginServiceClient interface { // Deletes a POSIX account. - DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Deletes an SSH public key. - DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Retrieves the profile information used for logging in to a virtual machine // on Google Compute Engine. GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) @@ -929,8 +929,8 @@ func NewOsLoginServiceClient(cc grpc.ClientConnInterface) OsLoginServiceClient { return &osLoginServiceClient{cc} } -func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", in, out, opts...) if err != nil { return nil, err @@ -938,8 +938,8 @@ func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *Delet return out, nil } -func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", in, out, opts...) if err != nil { return nil, err @@ -986,9 +986,9 @@ func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *Updat // OsLoginServiceServer is the server API for OsLoginService service. type OsLoginServiceServer interface { // Deletes a POSIX account. - DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*emptypb.Empty, error) + DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error) // Deletes an SSH public key. - DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*emptypb.Empty, error) + DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error) // Retrieves the profile information used for logging in to a virtual machine // on Google Compute Engine. GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error) @@ -1007,10 +1007,10 @@ type OsLoginServiceServer interface { type UnimplementedOsLoginServiceServer struct { } -func (*UnimplementedOsLoginServiceServer) DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*emptypb.Empty, error) { +func (*UnimplementedOsLoginServiceServer) DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePosixAccount not implemented") } -func (*UnimplementedOsLoginServiceServer) DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*emptypb.Empty, error) { +func (*UnimplementedOsLoginServiceServer) DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSshPublicKey not implemented") } func (*UnimplementedOsLoginServiceServer) GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error) { diff --git a/policytroubleshooter/apiv1/policytroubleshooterpb/checker.pb.go b/policytroubleshooter/apiv1/policytroubleshooterpb/checker.pb.go index d922520206b4..46f439dd6d73 100644 --- a/policytroubleshooter/apiv1/policytroubleshooterpb/checker.pb.go +++ b/policytroubleshooter/apiv1/policytroubleshooterpb/checker.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/policytroubleshooter/v1/checker.proto package policytroubleshooterpb diff --git a/policytroubleshooter/apiv1/policytroubleshooterpb/explanations.pb.go b/policytroubleshooter/apiv1/policytroubleshooterpb/explanations.pb.go index 187b0b486059..d1bbeabe14b7 100644 --- a/policytroubleshooter/apiv1/policytroubleshooterpb/explanations.pb.go +++ b/policytroubleshooter/apiv1/policytroubleshooterpb/explanations.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/policytroubleshooter/v1/explanations.proto package policytroubleshooterpb diff --git a/policytroubleshooter/go.mod b/policytroubleshooter/go.mod index d345e4a1688a..54d1d9fce674 100644 --- a/policytroubleshooter/go.mod +++ b/policytroubleshooter/go.mod @@ -7,6 +7,7 @@ require ( google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 ) require ( @@ -21,5 +22,4 @@ require ( golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb/recaptchaenterprise.pb.go b/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb/recaptchaenterprise.pb.go index 699401a3bd83..411e77287cd3 100644 --- a/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb/recaptchaenterprise.pb.go +++ b/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb/recaptchaenterprise.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package recaptchaenterprisepb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1251,7 +1251,7 @@ type TokenProperties struct { // Reason associated with the response when valid = false. InvalidReason TokenProperties_InvalidReason `protobuf:"varint,2,opt,name=invalid_reason,json=invalidReason,proto3,enum=google.cloud.recaptchaenterprise.v1.TokenProperties_InvalidReason" json:"invalid_reason,omitempty"` // The timestamp corresponding to the generation of the token. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The hostname of the page on which the token was generated (Web keys only). Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"` // Action name provided at token generation. @@ -1304,7 +1304,7 @@ func (x *TokenProperties) GetInvalidReason() TokenProperties_InvalidReason { return TokenProperties_INVALID_REASON_UNSPECIFIED } -func (x *TokenProperties) GetCreateTime() *timestamppb.Timestamp { +func (x *TokenProperties) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1672,7 +1672,7 @@ type UpdateKeyRequest struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Optional. The mask to control which fields of the key get updated. If the mask is not // present, all fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateKeyRequest) Reset() { @@ -1714,7 +1714,7 @@ func (x *UpdateKeyRequest) GetKey() *Key { return nil } -func (x *UpdateKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateKeyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1881,7 +1881,7 @@ type Metrics struct { // "projects/{project}/keys/{key}/metrics". Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Inclusive start time aligned to a day (UTC). - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Metrics will be continuous and in order by dates, and in the granularity // of day. All Key types should have score-based data. ScoreMetrics []*ScoreMetrics `protobuf:"bytes,2,rep,name=score_metrics,json=scoreMetrics,proto3" json:"score_metrics,omitempty"` @@ -1930,7 +1930,7 @@ func (x *Metrics) GetName() string { return "" } -func (x *Metrics) GetStartTime() *timestamppb.Timestamp { +func (x *Metrics) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -2029,7 +2029,7 @@ type Key struct { // Creating and managing labels. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The timestamp corresponding to the creation of this Key. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Options for user acceptance testing. TestingOptions *TestingOptions `protobuf:"bytes,9,opt,name=testing_options,json=testingOptions,proto3" json:"testing_options,omitempty"` // Settings for WAF @@ -2117,7 +2117,7 @@ func (x *Key) GetLabels() map[string]string { return nil } -func (x *Key) GetCreateTime() *timestamppb.Timestamp { +func (x *Key) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -4098,9 +4098,9 @@ var file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_goTypes = nil, // 47: google.cloud.recaptchaenterprise.v1.Key.LabelsEntry nil, // 48: google.cloud.recaptchaenterprise.v1.ScoreDistribution.ScoreBucketsEntry nil, // 49: google.cloud.recaptchaenterprise.v1.ScoreMetrics.ActionMetricsEntry - (*timestamppb.Timestamp)(nil), // 50: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 51: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 52: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 50: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 51: google.protobuf.FieldMask + (*empty.Empty)(nil), // 52: google.protobuf.Empty } var file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_depIdxs = []int32{ 14, // 0: google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest.assessment:type_name -> google.cloud.recaptchaenterprise.v1.Assessment @@ -4681,7 +4681,7 @@ type RecaptchaEnterpriseServiceClient interface { // Updates the specified key. UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*Key, error) // Deletes the specified key. - DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. // Once a key is migrated, it can be used from either product. SiteVerify // requests are billed as CreateAssessment calls. You must be @@ -4771,8 +4771,8 @@ func (c *recaptchaEnterpriseServiceClient) UpdateKey(ctx context.Context, in *Up return out, nil } -func (c *recaptchaEnterpriseServiceClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *recaptchaEnterpriseServiceClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService/DeleteKey", in, out, opts...) if err != nil { return nil, err @@ -4845,7 +4845,7 @@ type RecaptchaEnterpriseServiceServer interface { // Updates the specified key. UpdateKey(context.Context, *UpdateKeyRequest) (*Key, error) // Deletes the specified key. - DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error) + DeleteKey(context.Context, *DeleteKeyRequest) (*empty.Empty, error) // Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. // Once a key is migrated, it can be used from either product. SiteVerify // requests are billed as CreateAssessment calls. You must be @@ -4889,7 +4889,7 @@ func (*UnimplementedRecaptchaEnterpriseServiceServer) GetKey(context.Context, *G func (*UnimplementedRecaptchaEnterpriseServiceServer) UpdateKey(context.Context, *UpdateKeyRequest) (*Key, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateKey not implemented") } -func (*UnimplementedRecaptchaEnterpriseServiceServer) DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error) { +func (*UnimplementedRecaptchaEnterpriseServiceServer) DeleteKey(context.Context, *DeleteKeyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteKey not implemented") } func (*UnimplementedRecaptchaEnterpriseServiceServer) MigrateKey(context.Context, *MigrateKeyRequest) (*Key, error) { diff --git a/recommender/apiv1/recommenderpb/insight.pb.go b/recommender/apiv1/recommenderpb/insight.pb.go index 639ed3faed7d..d8d287f230e9 100644 --- a/recommender/apiv1/recommenderpb/insight.pb.go +++ b/recommender/apiv1/recommenderpb/insight.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recommender/v1/insight.proto package recommenderpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -242,13 +242,13 @@ type Insight struct { InsightSubtype string `protobuf:"bytes,10,opt,name=insight_subtype,json=insightSubtype,proto3" json:"insight_subtype,omitempty"` // A struct of custom fields to explain the insight. // Example: "grantedPermissionsCount": "1000" - Content *structpb.Struct `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + Content *_struct.Struct `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // Timestamp of the latest data used to generate the insight. - LastRefreshTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_refresh_time,json=lastRefreshTime,proto3" json:"last_refresh_time,omitempty"` + LastRefreshTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_refresh_time,json=lastRefreshTime,proto3" json:"last_refresh_time,omitempty"` // Observation period that led to the insight. The source data used to // generate the insight ends at last_refresh_time and begins at // (last_refresh_time - observation_period). - ObservationPeriod *durationpb.Duration `protobuf:"bytes,5,opt,name=observation_period,json=observationPeriod,proto3" json:"observation_period,omitempty"` + ObservationPeriod *duration.Duration `protobuf:"bytes,5,opt,name=observation_period,json=observationPeriod,proto3" json:"observation_period,omitempty"` // Information state and metadata. StateInfo *InsightStateInfo `protobuf:"bytes,6,opt,name=state_info,json=stateInfo,proto3" json:"state_info,omitempty"` // Category being targeted by the insight. @@ -322,21 +322,21 @@ func (x *Insight) GetInsightSubtype() string { return "" } -func (x *Insight) GetContent() *structpb.Struct { +func (x *Insight) GetContent() *_struct.Struct { if x != nil { return x.Content } return nil } -func (x *Insight) GetLastRefreshTime() *timestamppb.Timestamp { +func (x *Insight) GetLastRefreshTime() *timestamp.Timestamp { if x != nil { return x.LastRefreshTime } return nil } -func (x *Insight) GetObservationPeriod() *durationpb.Duration { +func (x *Insight) GetObservationPeriod() *duration.Duration { if x != nil { return x.ObservationPeriod } @@ -665,9 +665,9 @@ var file_google_cloud_recommender_v1_insight_proto_goTypes = []interface{}{ (*InsightStateInfo)(nil), // 4: google.cloud.recommender.v1.InsightStateInfo (*Insight_RecommendationReference)(nil), // 5: google.cloud.recommender.v1.Insight.RecommendationReference nil, // 6: google.cloud.recommender.v1.InsightStateInfo.StateMetadataEntry - (*structpb.Struct)(nil), // 7: google.protobuf.Struct - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 9: google.protobuf.Duration + (*_struct.Struct)(nil), // 7: google.protobuf.Struct + (*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*duration.Duration)(nil), // 9: google.protobuf.Duration } var file_google_cloud_recommender_v1_insight_proto_depIdxs = []int32{ 7, // 0: google.cloud.recommender.v1.Insight.content:type_name -> google.protobuf.Struct diff --git a/recommender/apiv1/recommenderpb/insight_type_config.pb.go b/recommender/apiv1/recommenderpb/insight_type_config.pb.go index 487279477050..f6393db8026f 100644 --- a/recommender/apiv1/recommenderpb/insight_type_config.pb.go +++ b/recommender/apiv1/recommenderpb/insight_type_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recommender/v1/insight_type_config.proto package recommenderpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -55,7 +55,7 @@ type InsightTypeConfig struct { // updating. Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` // Last time when the config was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Immutable. The revision ID of the config. // A new revision is committed whenever the config is changed in any way. // The format is an 8-character hexadecimal string. @@ -127,7 +127,7 @@ func (x *InsightTypeConfig) GetEtag() string { return "" } -func (x *InsightTypeConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *InsightTypeConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -165,7 +165,7 @@ type InsightTypeGenerationConfig struct { // Parameters for this InsightTypeGenerationConfig. These configs can be used // by or are applied to all subtypes. - Params *structpb.Struct `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Params *_struct.Struct `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (x *InsightTypeGenerationConfig) Reset() { @@ -200,7 +200,7 @@ func (*InsightTypeGenerationConfig) Descriptor() ([]byte, []int) { return file_google_cloud_recommender_v1_insight_type_config_proto_rawDescGZIP(), []int{1} } -func (x *InsightTypeGenerationConfig) GetParams() *structpb.Struct { +func (x *InsightTypeGenerationConfig) GetParams() *_struct.Struct { if x != nil { return x.Params } @@ -303,8 +303,8 @@ var file_google_cloud_recommender_v1_insight_type_config_proto_goTypes = []inter (*InsightTypeConfig)(nil), // 0: google.cloud.recommender.v1.InsightTypeConfig (*InsightTypeGenerationConfig)(nil), // 1: google.cloud.recommender.v1.InsightTypeGenerationConfig nil, // 2: google.cloud.recommender.v1.InsightTypeConfig.AnnotationsEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*structpb.Struct)(nil), // 4: google.protobuf.Struct + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 4: google.protobuf.Struct } var file_google_cloud_recommender_v1_insight_type_config_proto_depIdxs = []int32{ 1, // 0: google.cloud.recommender.v1.InsightTypeConfig.insight_type_generation_config:type_name -> google.cloud.recommender.v1.InsightTypeGenerationConfig diff --git a/recommender/apiv1/recommenderpb/recommendation.pb.go b/recommender/apiv1/recommenderpb/recommendation.pb.go index 104c40d32aa6..7783159454bc 100644 --- a/recommender/apiv1/recommenderpb/recommendation.pb.go +++ b/recommender/apiv1/recommenderpb/recommendation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recommender/v1/recommendation.proto package recommenderpb @@ -24,13 +24,13 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" money "google.golang.org/genproto/googleapis/type/money" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -267,7 +267,7 @@ type Recommendation struct { RecommenderSubtype string `protobuf:"bytes,12,opt,name=recommender_subtype,json=recommenderSubtype,proto3" json:"recommender_subtype,omitempty"` // Last time this recommendation was refreshed by the system that created it // in the first place. - LastRefreshTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_refresh_time,json=lastRefreshTime,proto3" json:"last_refresh_time,omitempty"` + LastRefreshTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_refresh_time,json=lastRefreshTime,proto3" json:"last_refresh_time,omitempty"` // The primary impact that this recommendation can have while trying to // optimize for one category. PrimaryImpact *Impact `protobuf:"bytes,5,opt,name=primary_impact,json=primaryImpact,proto3" json:"primary_impact,omitempty"` @@ -346,7 +346,7 @@ func (x *Recommendation) GetRecommenderSubtype() string { return "" } -func (x *Recommendation) GetLastRefreshTime() *timestamppb.Timestamp { +func (x *Recommendation) GetLastRefreshTime() *timestamp.Timestamp { if x != nil { return x.LastRefreshTime } @@ -420,7 +420,7 @@ type RecommendationContent struct { // atomically and in an order. OperationGroups []*OperationGroup `protobuf:"bytes,2,rep,name=operation_groups,json=operationGroups,proto3" json:"operation_groups,omitempty"` // Condensed overview information about the recommendation. - Overview *structpb.Struct `protobuf:"bytes,3,opt,name=overview,proto3" json:"overview,omitempty"` + Overview *_struct.Struct `protobuf:"bytes,3,opt,name=overview,proto3" json:"overview,omitempty"` } func (x *RecommendationContent) Reset() { @@ -462,7 +462,7 @@ func (x *RecommendationContent) GetOperationGroups() []*OperationGroup { return nil } -func (x *RecommendationContent) GetOverview() *structpb.Struct { +func (x *RecommendationContent) GetOverview() *_struct.Struct { if x != nil { return x.Overview } @@ -600,7 +600,7 @@ type Operation struct { // ``` // When both path_filters and path_value_matchers are set, an implicit AND // must be performed. - PathFilters map[string]*structpb.Value `protobuf:"bytes,8,rep,name=path_filters,json=pathFilters,proto3" json:"path_filters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + PathFilters map[string]*_struct.Value `protobuf:"bytes,8,rep,name=path_filters,json=pathFilters,proto3" json:"path_filters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Similar to path_filters, this contains set of filters to apply if `path` // field refers to array elements. This is meant to support value matching // beyond exact match. To perform exact match, use path_filters. @@ -690,7 +690,7 @@ func (m *Operation) GetPathValue() isOperation_PathValue { return nil } -func (x *Operation) GetValue() *structpb.Value { +func (x *Operation) GetValue() *_struct.Value { if x, ok := x.GetPathValue().(*Operation_Value); ok { return x.Value } @@ -704,7 +704,7 @@ func (x *Operation) GetValueMatcher() *ValueMatcher { return nil } -func (x *Operation) GetPathFilters() map[string]*structpb.Value { +func (x *Operation) GetPathFilters() map[string]*_struct.Value { if x != nil { return x.PathFilters } @@ -726,7 +726,7 @@ type Operation_Value struct { // Value for the `path` field. Will be set for actions:'add'/'replace'. // Maybe set for action: 'test'. Either this or `value_matcher` will be set // for 'test' operation. An exact match must be performed. - Value *structpb.Value `protobuf:"bytes,7,opt,name=value,proto3,oneof"` + Value *_struct.Value `protobuf:"bytes,7,opt,name=value,proto3,oneof"` } type Operation_ValueMatcher struct { @@ -824,7 +824,7 @@ type CostProjection struct { // prices or custom contract prices. Cost *money.Money `protobuf:"bytes,1,opt,name=cost,proto3" json:"cost,omitempty"` // Duration for which this cost applies. - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *CostProjection) Reset() { @@ -866,7 +866,7 @@ func (x *CostProjection) GetCost() *money.Money { return nil } -func (x *CostProjection) GetDuration() *durationpb.Duration { +func (x *CostProjection) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -880,7 +880,7 @@ type SecurityProjection struct { unknownFields protoimpl.UnknownFields // Additional security impact details that is provided by the recommender. - Details *structpb.Struct `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + Details *_struct.Struct `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` } func (x *SecurityProjection) Reset() { @@ -915,7 +915,7 @@ func (*SecurityProjection) Descriptor() ([]byte, []int) { return file_google_cloud_recommender_v1_recommendation_proto_rawDescGZIP(), []int{6} } -func (x *SecurityProjection) GetDetails() *structpb.Struct { +func (x *SecurityProjection) GetDetails() *_struct.Struct { if x != nil { return x.Details } @@ -1418,11 +1418,11 @@ var file_google_cloud_recommender_v1_recommendation_proto_goTypes = []interface{ nil, // 13: google.cloud.recommender.v1.Operation.PathFiltersEntry nil, // 14: google.cloud.recommender.v1.Operation.PathValueMatchersEntry nil, // 15: google.cloud.recommender.v1.RecommendationStateInfo.StateMetadataEntry - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (*structpb.Struct)(nil), // 17: google.protobuf.Struct - (*structpb.Value)(nil), // 18: google.protobuf.Value + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 17: google.protobuf.Struct + (*_struct.Value)(nil), // 18: google.protobuf.Value (*money.Money)(nil), // 19: google.type.Money - (*durationpb.Duration)(nil), // 20: google.protobuf.Duration + (*duration.Duration)(nil), // 20: google.protobuf.Duration } var file_google_cloud_recommender_v1_recommendation_proto_depIdxs = []int32{ 16, // 0: google.cloud.recommender.v1.Recommendation.last_refresh_time:type_name -> google.protobuf.Timestamp diff --git a/recommender/apiv1/recommenderpb/recommender_config.pb.go b/recommender/apiv1/recommenderpb/recommender_config.pb.go index 64ad2f6939ee..211b87ee75b1 100644 --- a/recommender/apiv1/recommenderpb/recommender_config.pb.go +++ b/recommender/apiv1/recommenderpb/recommender_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recommender/v1/recommender_config.proto package recommenderpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -55,7 +55,7 @@ type RecommenderConfig struct { // updating. Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` // Last time when the config was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Immutable. The revision ID of the config. // A new revision is committed whenever the config is changed in any way. // The format is an 8-character hexadecimal string. @@ -127,7 +127,7 @@ func (x *RecommenderConfig) GetEtag() string { return "" } -func (x *RecommenderConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *RecommenderConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -165,7 +165,7 @@ type RecommenderGenerationConfig struct { // Parameters for this RecommenderGenerationConfig. These configs can be used // by or are applied to all subtypes. - Params *structpb.Struct `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Params *_struct.Struct `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (x *RecommenderGenerationConfig) Reset() { @@ -200,7 +200,7 @@ func (*RecommenderGenerationConfig) Descriptor() ([]byte, []int) { return file_google_cloud_recommender_v1_recommender_config_proto_rawDescGZIP(), []int{1} } -func (x *RecommenderGenerationConfig) GetParams() *structpb.Struct { +func (x *RecommenderGenerationConfig) GetParams() *_struct.Struct { if x != nil { return x.Params } @@ -302,8 +302,8 @@ var file_google_cloud_recommender_v1_recommender_config_proto_goTypes = []interf (*RecommenderConfig)(nil), // 0: google.cloud.recommender.v1.RecommenderConfig (*RecommenderGenerationConfig)(nil), // 1: google.cloud.recommender.v1.RecommenderGenerationConfig nil, // 2: google.cloud.recommender.v1.RecommenderConfig.AnnotationsEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*structpb.Struct)(nil), // 4: google.protobuf.Struct + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 4: google.protobuf.Struct } var file_google_cloud_recommender_v1_recommender_config_proto_depIdxs = []int32{ 1, // 0: google.cloud.recommender.v1.RecommenderConfig.recommender_generation_config:type_name -> google.cloud.recommender.v1.RecommenderGenerationConfig diff --git a/recommender/apiv1/recommenderpb/recommender_service.pb.go b/recommender/apiv1/recommenderpb/recommender_service.pb.go index 5d6c48770baf..57611c9cf9a9 100644 --- a/recommender/apiv1/recommenderpb/recommender_service.pb.go +++ b/recommender/apiv1/recommenderpb/recommender_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/recommender/v1/recommender_service.proto package recommenderpb @@ -26,12 +26,12 @@ import ( sync "sync" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -835,7 +835,7 @@ type UpdateRecommenderConfigRequest struct { // Required. The RecommenderConfig to update. RecommenderConfig *RecommenderConfig `protobuf:"bytes,1,opt,name=recommender_config,json=recommenderConfig,proto3" json:"recommender_config,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If true, validate the request and preview the change, but do not actually // update it. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -880,7 +880,7 @@ func (x *UpdateRecommenderConfigRequest) GetRecommenderConfig() *RecommenderConf return nil } -func (x *UpdateRecommenderConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateRecommenderConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -960,7 +960,7 @@ type UpdateInsightTypeConfigRequest struct { // Required. The InsightTypeConfig to update. InsightTypeConfig *InsightTypeConfig `protobuf:"bytes,1,opt,name=insight_type_config,json=insightTypeConfig,proto3" json:"insight_type_config,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If true, validate the request and preview the change, but do not actually // update it. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -1005,7 +1005,7 @@ func (x *UpdateInsightTypeConfigRequest) GetInsightTypeConfig() *InsightTypeConf return nil } -func (x *UpdateInsightTypeConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInsightTypeConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1593,7 +1593,7 @@ var file_google_cloud_recommender_v1_recommender_service_proto_goTypes = []inter (*Insight)(nil), // 18: google.cloud.recommender.v1.Insight (*Recommendation)(nil), // 19: google.cloud.recommender.v1.Recommendation (*RecommenderConfig)(nil), // 20: google.cloud.recommender.v1.RecommenderConfig - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 21: google.protobuf.FieldMask (*InsightTypeConfig)(nil), // 22: google.cloud.recommender.v1.InsightTypeConfig } var file_google_cloud_recommender_v1_recommender_service_proto_depIdxs = []int32{ diff --git a/redis/apiv1/redispb/cloud_redis.pb.go b/redis/apiv1/redispb/cloud_redis.pb.go index d0c20cb170aa..3f44eefd6da0 100644 --- a/redis/apiv1/redispb/cloud_redis.pb.go +++ b/redis/apiv1/redispb/cloud_redis.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/redis/v1/cloud_redis.proto package redispb @@ -25,18 +25,18 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" dayofweek "google.golang.org/genproto/googleapis/type/dayofweek" timeofday "google.golang.org/genproto/googleapis/type/timeofday" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -582,7 +582,7 @@ type Instance struct { // standard tier, this can be the zone of any node in the instance. CurrentLocationId string `protobuf:"bytes,12,opt,name=current_location_id,json=currentLocationId,proto3" json:"current_location_id,omitempty"` // Output only. The time the instance was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The current state of this instance. State Instance_State `protobuf:"varint,14,opt,name=state,proto3,enum=google.cloud.redis.v1.Instance_State" json:"state,omitempty"` // Output only. Additional information about the current status of this @@ -771,7 +771,7 @@ func (x *Instance) GetCurrentLocationId() string { return "" } -func (x *Instance) GetCreateTime() *timestamppb.Timestamp { +func (x *Instance) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -921,7 +921,7 @@ type RescheduleMaintenanceRequest struct { // Optional. Timestamp when the maintenance shall be rescheduled to if // reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for // example `2012-11-15T16:19:00.094Z`. - ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` } func (x *RescheduleMaintenanceRequest) Reset() { @@ -970,7 +970,7 @@ func (x *RescheduleMaintenanceRequest) GetRescheduleType() RescheduleMaintenance return RescheduleMaintenanceRequest_RESCHEDULE_TYPE_UNSPECIFIED } -func (x *RescheduleMaintenanceRequest) GetScheduleTime() *timestamppb.Timestamp { +func (x *RescheduleMaintenanceRequest) GetScheduleTime() *timestamp.Timestamp { if x != nil { return x.ScheduleTime } @@ -984,9 +984,9 @@ type MaintenancePolicy struct { unknownFields protoimpl.UnknownFields // Output only. The time when the policy was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the policy was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Description of what this policy is for. Create/Update methods // return INVALID_ARGUMENT if the length is greater than 512. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -1028,14 +1028,14 @@ func (*MaintenancePolicy) Descriptor() ([]byte, []int) { return file_google_cloud_redis_v1_cloud_redis_proto_rawDescGZIP(), []int{3} } -func (x *MaintenancePolicy) GetCreateTime() *timestamppb.Timestamp { +func (x *MaintenancePolicy) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MaintenancePolicy) GetUpdateTime() *timestamppb.Timestamp { +func (x *MaintenancePolicy) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1068,7 +1068,7 @@ type WeeklyMaintenanceWindow struct { // Required. Start time of the window in UTC time. StartTime *timeofday.TimeOfDay `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Duration of the maintenance window. The current window is fixed at 1 hour. - Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *WeeklyMaintenanceWindow) Reset() { @@ -1117,7 +1117,7 @@ func (x *WeeklyMaintenanceWindow) GetStartTime() *timeofday.TimeOfDay { return nil } -func (x *WeeklyMaintenanceWindow) GetDuration() *durationpb.Duration { +func (x *WeeklyMaintenanceWindow) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1132,16 +1132,16 @@ type MaintenanceSchedule struct { unknownFields protoimpl.UnknownFields // Output only. The start time of any upcoming scheduled maintenance for this instance. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The end time of any upcoming scheduled maintenance for this instance. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // If the scheduled maintenance can be rescheduled, default is true. // // Deprecated: Do not use. CanReschedule bool `protobuf:"varint,3,opt,name=can_reschedule,json=canReschedule,proto3" json:"can_reschedule,omitempty"` // Output only. The deadline that the maintenance schedule start time can not go beyond, // including reschedule. - ScheduleDeadlineTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=schedule_deadline_time,json=scheduleDeadlineTime,proto3" json:"schedule_deadline_time,omitempty"` + ScheduleDeadlineTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=schedule_deadline_time,json=scheduleDeadlineTime,proto3" json:"schedule_deadline_time,omitempty"` } func (x *MaintenanceSchedule) Reset() { @@ -1176,14 +1176,14 @@ func (*MaintenanceSchedule) Descriptor() ([]byte, []int) { return file_google_cloud_redis_v1_cloud_redis_proto_rawDescGZIP(), []int{5} } -func (x *MaintenanceSchedule) GetStartTime() *timestamppb.Timestamp { +func (x *MaintenanceSchedule) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *MaintenanceSchedule) GetEndTime() *timestamppb.Timestamp { +func (x *MaintenanceSchedule) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1198,7 +1198,7 @@ func (x *MaintenanceSchedule) GetCanReschedule() bool { return false } -func (x *MaintenanceSchedule) GetScheduleDeadlineTime() *timestamppb.Timestamp { +func (x *MaintenanceSchedule) GetScheduleDeadlineTime() *timestamp.Timestamp { if x != nil { return x.ScheduleDeadlineTime } @@ -1609,7 +1609,7 @@ type UpdateInstanceRequest struct { // - `memorySizeGb` // - `redisConfig` // - `replica_count` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Update description. // Only fields specified in update_mask are updated. Instance *Instance `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` @@ -1647,7 +1647,7 @@ func (*UpdateInstanceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_redis_v1_cloud_redis_proto_rawDescGZIP(), []int{12} } -func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2211,9 +2211,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Creation timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // End timestamp. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Operation target. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Operation verb. @@ -2258,14 +2258,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_redis_v1_cloud_redis_proto_rawDescGZIP(), []int{22} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2415,11 +2415,11 @@ type TlsCertificate struct { // Output only. The time when the certificate was created in [RFC // 3339](https://tools.ietf.org/html/rfc3339) format, for example // `2020-05-18T00:00:00.094Z`. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when the certificate expires in [RFC // 3339](https://tools.ietf.org/html/rfc3339) format, for example // `2020-05-18T00:00:00.094Z`. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Sha1 Fingerprint of the certificate. Sha1Fingerprint string `protobuf:"bytes,5,opt,name=sha1_fingerprint,json=sha1Fingerprint,proto3" json:"sha1_fingerprint,omitempty"` } @@ -2470,14 +2470,14 @@ func (x *TlsCertificate) GetCert() string { return "" } -func (x *TlsCertificate) GetCreateTime() *timestamppb.Timestamp { +func (x *TlsCertificate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *TlsCertificate) GetExpireTime() *timestamppb.Timestamp { +func (x *TlsCertificate) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -3156,11 +3156,11 @@ var file_google_cloud_redis_v1_cloud_redis_proto_goTypes = []interface{}{ nil, // 33: google.cloud.redis.v1.Instance.LabelsEntry nil, // 34: google.cloud.redis.v1.Instance.RedisConfigsEntry nil, // 35: google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry - (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 36: google.protobuf.Timestamp (dayofweek.DayOfWeek)(0), // 37: google.type.DayOfWeek (*timeofday.TimeOfDay)(nil), // 38: google.type.TimeOfDay - (*durationpb.Duration)(nil), // 39: google.protobuf.Duration - (*fieldmaskpb.FieldMask)(nil), // 40: google.protobuf.FieldMask + (*duration.Duration)(nil), // 39: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 40: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 41: google.longrunning.Operation } var file_google_cloud_redis_v1_cloud_redis_proto_depIdxs = []int32{ diff --git a/resourcemanager/apiv2/resourcemanagerpb/folders.pb.go b/resourcemanager/apiv2/resourcemanagerpb/folders.pb.go index 66b6be7e991a..4df6aab442f0 100644 --- a/resourcemanager/apiv2/resourcemanagerpb/folders.pb.go +++ b/resourcemanager/apiv2/resourcemanagerpb/folders.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v2/folders.proto package resourcemanagerpb @@ -26,16 +26,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -179,9 +179,9 @@ type Folder struct { // [UndeleteFolder][google.cloud.resourcemanager.v2.Folders.UndeleteFolder]. LifecycleState Folder_LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.cloud.resourcemanager.v2.Folder_LifecycleState" json:"lifecycle_state,omitempty"` // Output only. Timestamp when the Folder was created. Assigned by the server. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the Folder was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *Folder) Reset() { @@ -244,14 +244,14 @@ func (x *Folder) GetLifecycleState() Folder_LifecycleState { return Folder_LIFECYCLE_STATE_UNSPECIFIED } -func (x *Folder) GetCreateTime() *timestamppb.Timestamp { +func (x *Folder) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Folder) GetUpdateTime() *timestamppb.Timestamp { +func (x *Folder) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -734,7 +734,7 @@ type UpdateFolderRequest struct { Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"` // Required. Fields to be updated. // Only the `display_name` can be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFolderRequest) Reset() { @@ -776,7 +776,7 @@ func (x *UpdateFolderRequest) GetFolder() *Folder { return nil } -func (x *UpdateFolderRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFolderRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1297,8 +1297,8 @@ var file_google_cloud_resourcemanager_v2_folders_proto_goTypes = []interface{}{ (*DeleteFolderRequest)(nil), // 11: google.cloud.resourcemanager.v2.DeleteFolderRequest (*UndeleteFolderRequest)(nil), // 12: google.cloud.resourcemanager.v2.UndeleteFolderRequest (*FolderOperation)(nil), // 13: google.cloud.resourcemanager.v2.FolderOperation - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 16: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 17: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 18: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/apiv3/resourcemanagerpb/folders.pb.go b/resourcemanager/apiv3/resourcemanagerpb/folders.pb.go index 0879424222d7..b8c3c57d0e6b 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/folders.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/folders.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/folders.proto package resourcemanagerpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -125,11 +125,11 @@ type Folder struct { // [UndeleteFolder][google.cloud.resourcemanager.v3.Folders.UndeleteFolder]. State Folder_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.resourcemanager.v3.Folder_State" json:"state,omitempty"` // Output only. Timestamp when the folder was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the folder was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Timestamp when the folder was requested to be deleted. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. A checksum computed by the server based on the current value of the folder // resource. This may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. @@ -196,21 +196,21 @@ func (x *Folder) GetState() Folder_State { return Folder_STATE_UNSPECIFIED } -func (x *Folder) GetCreateTime() *timestamppb.Timestamp { +func (x *Folder) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Folder) GetUpdateTime() *timestamppb.Timestamp { +func (x *Folder) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Folder) GetDeleteTime() *timestamppb.Timestamp { +func (x *Folder) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } @@ -704,7 +704,7 @@ type UpdateFolderRequest struct { Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"` // Required. Fields to be updated. // Only the `display_name` can be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFolderRequest) Reset() { @@ -746,7 +746,7 @@ func (x *UpdateFolderRequest) GetFolder() *Folder { return nil } -func (x *UpdateFolderRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFolderRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1432,8 +1432,8 @@ var file_google_cloud_resourcemanager_v3_folders_proto_goTypes = []interface{}{ (*DeleteFolderMetadata)(nil), // 14: google.cloud.resourcemanager.v3.DeleteFolderMetadata (*UndeleteFolderRequest)(nil), // 15: google.cloud.resourcemanager.v3.UndeleteFolderRequest (*UndeleteFolderMetadata)(nil), // 16: google.cloud.resourcemanager.v3.UndeleteFolderMetadata - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 18: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 19: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 20: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 21: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/apiv3/resourcemanagerpb/organizations.pb.go b/resourcemanager/apiv3/resourcemanagerpb/organizations.pb.go index a03447c53766..1fe589d15750 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/organizations.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/organizations.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/organizations.proto package resourcemanagerpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -125,11 +125,11 @@ type Organization struct { // Output only. The organization's current lifecycle state. State Organization_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.resourcemanager.v3.Organization_State" json:"state,omitempty"` // Output only. Timestamp when the Organization was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when the Organization was last modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Timestamp when the Organization was requested for deletion. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. A checksum computed by the server based on the current value of the // Organization resource. This may be sent on update and delete requests to // ensure the client has an up-to-date value before proceeding. @@ -203,21 +203,21 @@ func (x *Organization) GetState() Organization_State { return Organization_STATE_UNSPECIFIED } -func (x *Organization) GetCreateTime() *timestamppb.Timestamp { +func (x *Organization) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Organization) GetUpdateTime() *timestamppb.Timestamp { +func (x *Organization) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Organization) GetDeleteTime() *timestamppb.Timestamp { +func (x *Organization) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } @@ -713,7 +713,7 @@ var file_google_cloud_resourcemanager_v3_organizations_proto_goTypes = []interfa (*SearchOrganizationsResponse)(nil), // 4: google.cloud.resourcemanager.v3.SearchOrganizationsResponse (*DeleteOrganizationMetadata)(nil), // 5: google.cloud.resourcemanager.v3.DeleteOrganizationMetadata (*UndeleteOrganizationMetadata)(nil), // 6: google.cloud.resourcemanager.v3.UndeleteOrganizationMetadata - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp (*v1.GetIamPolicyRequest)(nil), // 8: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 9: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 10: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/apiv3/resourcemanagerpb/projects.pb.go b/resourcemanager/apiv3/resourcemanagerpb/projects.pb.go index 3b643d813fbc..10265807db4f 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/projects.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/projects.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/projects.proto package resourcemanagerpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -136,11 +136,11 @@ type Project struct { // Example: `My Project` DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time this resource was modified. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The time at which this resource was requested for deletion. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. A checksum computed by the server based on the current value of the Project // resource. This may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. @@ -229,21 +229,21 @@ func (x *Project) GetDisplayName() string { return "" } -func (x *Project) GetCreateTime() *timestamppb.Timestamp { +func (x *Project) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Project) GetUpdateTime() *timestamppb.Timestamp { +func (x *Project) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Project) GetDeleteTime() *timestamppb.Timestamp { +func (x *Project) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } @@ -732,7 +732,7 @@ type CreateProjectMetadata struct { unknownFields protoimpl.UnknownFields // Creation time of the project creation workflow. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // True if the project can be retrieved using `GetProject`. No other // operations on the project are guaranteed to work until the project creation // is complete. @@ -773,7 +773,7 @@ func (*CreateProjectMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_projects_proto_rawDescGZIP(), []int{7} } -func (x *CreateProjectMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *CreateProjectMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -809,7 +809,7 @@ type UpdateProjectRequest struct { // Required. The new definition of the project. Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Optional. An update mask to selectively update fields. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateProjectRequest) Reset() { @@ -851,7 +851,7 @@ func (x *UpdateProjectRequest) GetProject() *Project { return nil } -func (x *UpdateProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateProjectRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1526,8 +1526,8 @@ var file_google_cloud_resourcemanager_v3_projects_proto_goTypes = []interface{}{ (*UndeleteProjectRequest)(nil), // 15: google.cloud.resourcemanager.v3.UndeleteProjectRequest (*UndeleteProjectMetadata)(nil), // 16: google.cloud.resourcemanager.v3.UndeleteProjectMetadata nil, // 17: google.cloud.resourcemanager.v3.Project.LabelsEntry - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 19: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 19: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 20: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 21: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 22: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/apiv3/resourcemanagerpb/tag_bindings.pb.go b/resourcemanager/apiv3/resourcemanagerpb/tag_bindings.pb.go index 5e15cf0a492f..24af82650672 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/tag_bindings.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/tag_bindings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/tag_bindings.proto package resourcemanagerpb diff --git a/resourcemanager/apiv3/resourcemanagerpb/tag_keys.pb.go b/resourcemanager/apiv3/resourcemanagerpb/tag_keys.pb.go index 63b12e7ac11f..f271c8c9d1b3 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/tag_keys.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/tag_keys.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/tag_keys.proto package resourcemanagerpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -71,9 +71,9 @@ type TagKey struct { // Read-write. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Output only. Creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Entity tag which users can pass to prevent race conditions. This field is // always set in server responses. See UpdateTagKeyRequest for details. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` @@ -146,14 +146,14 @@ func (x *TagKey) GetDescription() string { return "" } -func (x *TagKey) GetCreateTime() *timestamppb.Timestamp { +func (x *TagKey) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *TagKey) GetUpdateTime() *timestamppb.Timestamp { +func (x *TagKey) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -460,7 +460,7 @@ type UpdateTagKeyRequest struct { // Fields to be updated. The mask may only contain `description` or // `etag`. If omitted entirely, both `description` and `etag` are assumed to // be significant. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Set as true to perform validations necessary for updating the resource, but // not actually perform the action. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -505,7 +505,7 @@ func (x *UpdateTagKeyRequest) GetTagKey() *TagKey { return nil } -func (x *UpdateTagKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagKeyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -911,8 +911,8 @@ var file_google_cloud_resourcemanager_v3_tag_keys_proto_goTypes = []interface{}{ (*UpdateTagKeyMetadata)(nil), // 7: google.cloud.resourcemanager.v3.UpdateTagKeyMetadata (*DeleteTagKeyRequest)(nil), // 8: google.cloud.resourcemanager.v3.DeleteTagKeyRequest (*DeleteTagKeyMetadata)(nil), // 9: google.cloud.resourcemanager.v3.DeleteTagKeyMetadata - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 12: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 13: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 14: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/apiv3/resourcemanagerpb/tag_values.pb.go b/resourcemanager/apiv3/resourcemanagerpb/tag_values.pb.go index ea0e726651d2..cce3982f3885 100644 --- a/resourcemanager/apiv3/resourcemanagerpb/tag_values.pb.go +++ b/resourcemanager/apiv3/resourcemanagerpb/tag_values.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcemanager/v3/tag_values.proto package resourcemanagerpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -72,9 +72,9 @@ type TagValue struct { // Read-write. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Output only. Creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Entity tag which users can pass to prevent race conditions. This field is // always set in server responses. See UpdateTagValueRequest for details. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` @@ -147,14 +147,14 @@ func (x *TagValue) GetDescription() string { return "" } -func (x *TagValue) GetCreateTime() *timestamppb.Timestamp { +func (x *TagValue) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *TagValue) GetUpdateTime() *timestamppb.Timestamp { +func (x *TagValue) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -460,7 +460,7 @@ type UpdateTagValueRequest struct { // `FAILED_PRECONDITION` will be returned. TagValue *TagValue `protobuf:"bytes,1,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"` // Optional. Fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. True to perform validations necessary for updating the resource, but not // actually perform the action. ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` @@ -505,7 +505,7 @@ func (x *UpdateTagValueRequest) GetTagValue() *TagValue { return nil } -func (x *UpdateTagValueRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTagValueRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -917,8 +917,8 @@ var file_google_cloud_resourcemanager_v3_tag_values_proto_goTypes = []interface{ (*UpdateTagValueMetadata)(nil), // 7: google.cloud.resourcemanager.v3.UpdateTagValueMetadata (*DeleteTagValueRequest)(nil), // 8: google.cloud.resourcemanager.v3.DeleteTagValueRequest (*DeleteTagValueMetadata)(nil), // 9: google.cloud.resourcemanager.v3.DeleteTagValueMetadata - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask (*v1.GetIamPolicyRequest)(nil), // 12: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 13: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 14: google.iam.v1.TestIamPermissionsRequest diff --git a/resourcemanager/go.mod b/resourcemanager/go.mod index 6ab64142cad8..fe10881037ea 100644 --- a/resourcemanager/go.mod +++ b/resourcemanager/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/resourcesettings/apiv1/resourcesettingspb/resource_settings.pb.go b/resourcesettings/apiv1/resourcesettingspb/resource_settings.pb.go index 5dbf4fc167fc..06e03ff68d72 100644 --- a/resourcesettings/apiv1/resourcesettingspb/resource_settings.pb.go +++ b/resourcesettings/apiv1/resourcesettingspb/resource_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/resourcesettings/v1/resource_settings.proto package resourcesettingspb diff --git a/retail/apiv2/retailpb/catalog.pb.go b/retail/apiv2/retailpb/catalog.pb.go index 4b2725bfc682..c9288ebdb8a1 100644 --- a/retail/apiv2/retailpb/catalog.pb.go +++ b/retail/apiv2/retailpb/catalog.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/catalog.proto package retailpb diff --git a/retail/apiv2/retailpb/catalog_service.pb.go b/retail/apiv2/retailpb/catalog_service.pb.go index 86baf13e0c15..3cec318319a1 100644 --- a/retail/apiv2/retailpb/catalog_service.pb.go +++ b/retail/apiv2/retailpb/catalog_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/catalog_service.proto package retailpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -215,7 +215,7 @@ type UpdateCatalogRequest struct { // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCatalogRequest) Reset() { @@ -257,7 +257,7 @@ func (x *UpdateCatalogRequest) GetCatalog() *Catalog { return nil } -func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCatalogRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -415,7 +415,7 @@ type GetDefaultBranchResponse struct { // Full resource name of the branch id currently set as default branch. Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // The time when this branch is set to default. - SetTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` + SetTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` // This corresponds to // [SetDefaultBranchRequest.note][google.cloud.retail.v2.SetDefaultBranchRequest.note] // field, when this branch was set as default. @@ -461,7 +461,7 @@ func (x *GetDefaultBranchResponse) GetBranch() string { return "" } -func (x *GetDefaultBranchResponse) GetSetTime() *timestamppb.Timestamp { +func (x *GetDefaultBranchResponse) GetSetTime() *timestamp.Timestamp { if x != nil { return x.SetTime } @@ -555,7 +555,7 @@ type UpdateCompletionConfigRequest struct { // * [CompletionConfig.auto_learning][google.cloud.retail.v2.CompletionConfig.auto_learning] // // If not set, all supported fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCompletionConfigRequest) Reset() { @@ -597,7 +597,7 @@ func (x *UpdateCompletionConfigRequest) GetCompletionConfig() *CompletionConfig return nil } -func (x *UpdateCompletionConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCompletionConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -674,7 +674,7 @@ type UpdateAttributesConfigRequest struct { // * [AttributesConfig.catalog_attributes][google.cloud.retail.v2.AttributesConfig.catalog_attributes] // // If not set, all supported fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAttributesConfigRequest) Reset() { @@ -716,7 +716,7 @@ func (x *UpdateAttributesConfigRequest) GetAttributesConfig() *AttributesConfig return nil } -func (x *UpdateAttributesConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAttributesConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -868,7 +868,7 @@ type ReplaceCatalogAttributeRequest struct { // * [CatalogAttribute.key][google.cloud.retail.v2.CatalogAttribute.key] // // If not set, all supported fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *ReplaceCatalogAttributeRequest) Reset() { @@ -917,7 +917,7 @@ func (x *ReplaceCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute return nil } -func (x *ReplaceCatalogAttributeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *ReplaceCatalogAttributeRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1275,12 +1275,12 @@ var file_google_cloud_retail_v2_catalog_service_proto_goTypes = []interface{}{ (*RemoveCatalogAttributeRequest)(nil), // 11: google.cloud.retail.v2.RemoveCatalogAttributeRequest (*ReplaceCatalogAttributeRequest)(nil), // 12: google.cloud.retail.v2.ReplaceCatalogAttributeRequest (*Catalog)(nil), // 13: google.cloud.retail.v2.Catalog - (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 14: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp (*CompletionConfig)(nil), // 16: google.cloud.retail.v2.CompletionConfig (*AttributesConfig)(nil), // 17: google.cloud.retail.v2.AttributesConfig (*CatalogAttribute)(nil), // 18: google.cloud.retail.v2.CatalogAttribute - (*emptypb.Empty)(nil), // 19: google.protobuf.Empty + (*empty.Empty)(nil), // 19: google.protobuf.Empty } var file_google_cloud_retail_v2_catalog_service_proto_depIdxs = []int32{ 13, // 0: google.cloud.retail.v2.ListCatalogsResponse.catalogs:type_name -> google.cloud.retail.v2.Catalog @@ -1557,7 +1557,7 @@ type CatalogServiceClient interface { // (if branch is not explicitly set). // - UserEventService will only join events with products from branch // {newBranch}. - SetDefaultBranch(ctx context.Context, in *SetDefaultBranchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + SetDefaultBranch(ctx context.Context, in *SetDefaultBranchRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Get which branch is currently default branch set by // [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch] // method under a specified parent catalog. @@ -1628,8 +1628,8 @@ func (c *catalogServiceClient) UpdateCatalog(ctx context.Context, in *UpdateCata return out, nil } -func (c *catalogServiceClient) SetDefaultBranch(ctx context.Context, in *SetDefaultBranchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *catalogServiceClient) SetDefaultBranch(ctx context.Context, in *SetDefaultBranchRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.CatalogService/SetDefaultBranch", in, out, opts...) if err != nil { return nil, err @@ -1749,7 +1749,7 @@ type CatalogServiceServer interface { // (if branch is not explicitly set). // - UserEventService will only join events with products from branch // {newBranch}. - SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*emptypb.Empty, error) + SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*empty.Empty, error) // Get which branch is currently default branch set by // [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch] // method under a specified parent catalog. @@ -1804,7 +1804,7 @@ func (*UnimplementedCatalogServiceServer) ListCatalogs(context.Context, *ListCat func (*UnimplementedCatalogServiceServer) UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCatalog not implemented") } -func (*UnimplementedCatalogServiceServer) SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*emptypb.Empty, error) { +func (*UnimplementedCatalogServiceServer) SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SetDefaultBranch not implemented") } func (*UnimplementedCatalogServiceServer) GetDefaultBranch(context.Context, *GetDefaultBranchRequest) (*GetDefaultBranchResponse, error) { diff --git a/retail/apiv2/retailpb/common.pb.go b/retail/apiv2/retailpb/common.pb.go index 29b72e6b60ca..dd8e9aa80fee 100644 --- a/retail/apiv2/retailpb/common.pb.go +++ b/retail/apiv2/retailpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/common.proto package retailpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1108,7 +1108,7 @@ type PriceInfo struct { // // Do not set if [price][google.cloud.retail.v2.PriceInfo.price] is always // effective because it will cause additional latency during search. - PriceEffectiveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=price_effective_time,json=priceEffectiveTime,proto3" json:"price_effective_time,omitempty"` + PriceEffectiveTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=price_effective_time,json=priceEffectiveTime,proto3" json:"price_effective_time,omitempty"` // The timestamp when the [price][google.cloud.retail.v2.PriceInfo.price] // stops to be effective. The [price][google.cloud.retail.v2.PriceInfo.price] // is used for search before @@ -1121,7 +1121,7 @@ type PriceInfo struct { // // Do not set if [price][google.cloud.retail.v2.PriceInfo.price] is always // effective because it will cause additional latency during search. - PriceExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=price_expire_time,json=priceExpireTime,proto3" json:"price_expire_time,omitempty"` + PriceExpireTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=price_expire_time,json=priceExpireTime,proto3" json:"price_expire_time,omitempty"` // Output only. The price range of all the child // [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] // [Product][google.cloud.retail.v2.Product]s grouped together on the @@ -1196,14 +1196,14 @@ func (x *PriceInfo) GetCost() float32 { return 0 } -func (x *PriceInfo) GetPriceEffectiveTime() *timestamppb.Timestamp { +func (x *PriceInfo) GetPriceEffectiveTime() *timestamp.Timestamp { if x != nil { return x.PriceEffectiveTime } return nil } -func (x *PriceInfo) GetPriceExpireTime() *timestamppb.Timestamp { +func (x *PriceInfo) GetPriceExpireTime() *timestamp.Timestamp { if x != nil { return x.PriceExpireTime } @@ -1606,9 +1606,9 @@ type Condition_TimeRange struct { unknownFields protoimpl.UnknownFields // Start of time range. Range is inclusive. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of time range. Range is inclusive. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *Condition_TimeRange) Reset() { @@ -1643,14 +1643,14 @@ func (*Condition_TimeRange) Descriptor() ([]byte, []int) { return file_google_cloud_retail_v2_common_proto_rawDescGZIP(), []int{0, 1} } -func (x *Condition_TimeRange) GetStartTime() *timestamppb.Timestamp { +func (x *Condition_TimeRange) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Condition_TimeRange) GetEndTime() *timestamppb.Timestamp { +func (x *Condition_TimeRange) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2592,7 +2592,7 @@ var file_google_cloud_retail_v2_common_proto_goTypes = []interface{}{ (*Rule_IgnoreAction)(nil), // 24: google.cloud.retail.v2.Rule.IgnoreAction (*PriceInfo_PriceRange)(nil), // 25: google.cloud.retail.v2.PriceInfo.PriceRange nil, // 26: google.cloud.retail.v2.LocalInventory.AttributesEntry - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 27: google.protobuf.Timestamp } var file_google_cloud_retail_v2_common_proto_depIdxs = []int32{ 15, // 0: google.cloud.retail.v2.Condition.query_terms:type_name -> google.cloud.retail.v2.Condition.QueryTerm diff --git a/retail/apiv2/retailpb/completion_service.pb.go b/retail/apiv2/retailpb/completion_service.pb.go index 3b7483fcdbf5..46ce2e95f12e 100644 --- a/retail/apiv2/retailpb/completion_service.pb.go +++ b/retail/apiv2/retailpb/completion_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/completion_service.proto package retailpb diff --git a/retail/apiv2/retailpb/control.pb.go b/retail/apiv2/retailpb/control.pb.go index 9a1bd4a419c8..b3baf0ba960c 100644 --- a/retail/apiv2/retailpb/control.pb.go +++ b/retail/apiv2/retailpb/control.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/control.proto package retailpb diff --git a/retail/apiv2/retailpb/control_service.pb.go b/retail/apiv2/retailpb/control_service.pb.go index fc11126ea950..04ae571cf8dc 100644 --- a/retail/apiv2/retailpb/control_service.pb.go +++ b/retail/apiv2/retailpb/control_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/control_service.proto package retailpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -129,7 +129,7 @@ type UpdateControlRequest struct { // * [Control.name][google.cloud.retail.v2.Control.name] // // If not set or empty, all supported fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateControlRequest) Reset() { @@ -171,7 +171,7 @@ func (x *UpdateControlRequest) GetControl() *Control { return nil } -func (x *UpdateControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateControlRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -584,15 +584,15 @@ func file_google_cloud_retail_v2_control_service_proto_rawDescGZIP() []byte { var file_google_cloud_retail_v2_control_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_google_cloud_retail_v2_control_service_proto_goTypes = []interface{}{ - (*CreateControlRequest)(nil), // 0: google.cloud.retail.v2.CreateControlRequest - (*UpdateControlRequest)(nil), // 1: google.cloud.retail.v2.UpdateControlRequest - (*DeleteControlRequest)(nil), // 2: google.cloud.retail.v2.DeleteControlRequest - (*GetControlRequest)(nil), // 3: google.cloud.retail.v2.GetControlRequest - (*ListControlsRequest)(nil), // 4: google.cloud.retail.v2.ListControlsRequest - (*ListControlsResponse)(nil), // 5: google.cloud.retail.v2.ListControlsResponse - (*Control)(nil), // 6: google.cloud.retail.v2.Control - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty + (*CreateControlRequest)(nil), // 0: google.cloud.retail.v2.CreateControlRequest + (*UpdateControlRequest)(nil), // 1: google.cloud.retail.v2.UpdateControlRequest + (*DeleteControlRequest)(nil), // 2: google.cloud.retail.v2.DeleteControlRequest + (*GetControlRequest)(nil), // 3: google.cloud.retail.v2.GetControlRequest + (*ListControlsRequest)(nil), // 4: google.cloud.retail.v2.ListControlsRequest + (*ListControlsResponse)(nil), // 5: google.cloud.retail.v2.ListControlsResponse + (*Control)(nil), // 6: google.cloud.retail.v2.Control + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*empty.Empty)(nil), // 8: google.protobuf.Empty } var file_google_cloud_retail_v2_control_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.retail.v2.CreateControlRequest.control:type_name -> google.cloud.retail.v2.Control @@ -737,7 +737,7 @@ type ControlServiceClient interface { // // If the [Control][google.cloud.retail.v2.Control] to delete does not exist, // a NOT_FOUND error is returned. - DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a Control. // // [Control][google.cloud.retail.v2.Control] cannot be set to a different @@ -769,8 +769,8 @@ func (c *controlServiceClient) CreateControl(ctx context.Context, in *CreateCont return out, nil } -func (c *controlServiceClient) DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *controlServiceClient) DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.ControlService/DeleteControl", in, out, opts...) if err != nil { return nil, err @@ -816,7 +816,7 @@ type ControlServiceServer interface { // // If the [Control][google.cloud.retail.v2.Control] to delete does not exist, // a NOT_FOUND error is returned. - DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error) + DeleteControl(context.Context, *DeleteControlRequest) (*empty.Empty, error) // Updates a Control. // // [Control][google.cloud.retail.v2.Control] cannot be set to a different @@ -838,7 +838,7 @@ type UnimplementedControlServiceServer struct { func (*UnimplementedControlServiceServer) CreateControl(context.Context, *CreateControlRequest) (*Control, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateControl not implemented") } -func (*UnimplementedControlServiceServer) DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error) { +func (*UnimplementedControlServiceServer) DeleteControl(context.Context, *DeleteControlRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteControl not implemented") } func (*UnimplementedControlServiceServer) UpdateControl(context.Context, *UpdateControlRequest) (*Control, error) { diff --git a/retail/apiv2/retailpb/import_config.pb.go b/retail/apiv2/retailpb/import_config.pb.go index 9cbef13e2378..354a79ffab30 100644 --- a/retail/apiv2/retailpb/import_config.pb.go +++ b/retail/apiv2/retailpb/import_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/import_config.proto package retailpb @@ -24,13 +24,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" date "google.golang.org/genproto/googleapis/type/date" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -534,7 +534,7 @@ type ImportProductsRequest struct { ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,3,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Indicates which fields in the provided imported `products` to update. If // not set, all fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The mode of reconciliation between existing products and the products to be // imported. Defaults to // [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2.ImportProductsRequest.ReconciliationMode.INCREMENTAL]. @@ -614,7 +614,7 @@ func (x *ImportProductsRequest) GetErrorsConfig() *ImportErrorsConfig { return nil } -func (x *ImportProductsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *ImportProductsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1069,10 +1069,10 @@ type ImportMetadata struct { unknownFields protoimpl.UnknownFields // Operation create time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Operation last update time. If the operation is done, this is also the // finish time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Count of entries that were processed successfully. SuccessCount int64 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // Count of entries that encountered errors while processing. @@ -1121,14 +1121,14 @@ func (*ImportMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_retail_v2_import_config_proto_rawDescGZIP(), []int{11} } -func (x *ImportMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *ImportMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *ImportMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *ImportMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1692,8 +1692,8 @@ var file_google_cloud_retail_v2_import_config_proto_goTypes = []interface{}{ (*date.Date)(nil), // 17: google.type.Date (*Product)(nil), // 18: google.cloud.retail.v2.Product (*UserEvent)(nil), // 19: google.cloud.retail.v2.UserEvent - (*fieldmaskpb.FieldMask)(nil), // 20: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 20: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 21: google.protobuf.Timestamp (*status.Status)(nil), // 22: google.rpc.Status } var file_google_cloud_retail_v2_import_config_proto_depIdxs = []int32{ diff --git a/retail/apiv2/retailpb/prediction_service.pb.go b/retail/apiv2/retailpb/prediction_service.pb.go index d1bf87ec7ed6..0e014ee91666 100644 --- a/retail/apiv2/retailpb/prediction_service.pb.go +++ b/retail/apiv2/retailpb/prediction_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/prediction_service.proto package retailpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -156,7 +156,7 @@ type PredictRequest struct { // category. // - `filterSyntaxV2`: Boolean. False by default. If set to true, the `filter` // field is interpreteted according to the new, attribute-based syntax. - Params map[string]*structpb.Value `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Params map[string]*_struct.Value `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The labels applied to a resource must meet the following requirements: // // - Each resource can have multiple labels, up to a maximum of 64. @@ -252,7 +252,7 @@ func (x *PredictRequest) GetValidateOnly() bool { return false } -func (x *PredictRequest) GetParams() map[string]*structpb.Value { +func (x *PredictRequest) GetParams() map[string]*_struct.Value { if x != nil { return x.Params } @@ -362,7 +362,7 @@ type PredictResponse_PredictionResult struct { // `returnProduct` is set to true in `PredictRequest.params`. // - `score`: Prediction score in double value. Is set if // `returnScore` is set to true in `PredictRequest.params`. - Metadata map[string]*structpb.Value `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Metadata map[string]*_struct.Value `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *PredictResponse_PredictionResult) Reset() { @@ -404,7 +404,7 @@ func (x *PredictResponse_PredictionResult) GetId() string { return "" } -func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*structpb.Value { +func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*_struct.Value { if x != nil { return x.Metadata } @@ -549,7 +549,7 @@ var file_google_cloud_retail_v2_prediction_service_proto_goTypes = []interface{} (*PredictResponse_PredictionResult)(nil), // 4: google.cloud.retail.v2.PredictResponse.PredictionResult nil, // 5: google.cloud.retail.v2.PredictResponse.PredictionResult.MetadataEntry (*UserEvent)(nil), // 6: google.cloud.retail.v2.UserEvent - (*structpb.Value)(nil), // 7: google.protobuf.Value + (*_struct.Value)(nil), // 7: google.protobuf.Value } var file_google_cloud_retail_v2_prediction_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.retail.v2.PredictRequest.user_event:type_name -> google.cloud.retail.v2.UserEvent diff --git a/retail/apiv2/retailpb/product.pb.go b/retail/apiv2/retailpb/product.pb.go index 7d03b1f0b681..cb214f1ebcf2 100644 --- a/retail/apiv2/retailpb/product.pb.go +++ b/retail/apiv2/retailpb/product.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/product.proto package retailpb @@ -24,13 +24,13 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -390,7 +390,7 @@ type Product struct { // The timestamp when this [Product][google.cloud.retail.v2.Product] becomes // available for // [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. - AvailableTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=available_time,json=availableTime,proto3" json:"available_time,omitempty"` + AvailableTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=available_time,json=availableTime,proto3" json:"available_time,omitempty"` // The online availability of the [Product][google.cloud.retail.v2.Product]. // Default to // [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. @@ -400,7 +400,7 @@ type Product struct { // Schema.org property [Offer.availability](https://schema.org/availability). Availability Product_Availability `protobuf:"varint,19,opt,name=availability,proto3,enum=google.cloud.retail.v2.Product_Availability" json:"availability,omitempty"` // The available quantity of the item. - AvailableQuantity *wrapperspb.Int32Value `protobuf:"bytes,20,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"` + AvailableQuantity *wrappers.Int32Value `protobuf:"bytes,20,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"` // Fulfillment information, such as the store IDs for in-store pickup or // region IDs for different shipping methods. // @@ -503,7 +503,7 @@ type Product struct { // [available_time][google.cloud.retail.v2.Product.available_time], given it // purely describes product freshness regardless of when it is available on // search and recommendation. - PublishTime *timestamppb.Timestamp `protobuf:"bytes,33,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` + PublishTime *timestamp.Timestamp `protobuf:"bytes,33,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // Indicates which fields in the [Product][google.cloud.retail.v2.Product]s // are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. // @@ -561,7 +561,7 @@ type Product struct { // Note: Returning more fields in // [SearchResponse][google.cloud.retail.v2.SearchResponse] can increase // response payload size and serving latency. - RetrievableFields *fieldmaskpb.FieldMask `protobuf:"bytes,30,opt,name=retrievable_fields,json=retrievableFields,proto3" json:"retrievable_fields,omitempty"` + RetrievableFields *field_mask.FieldMask `protobuf:"bytes,30,opt,name=retrievable_fields,json=retrievableFields,proto3" json:"retrievable_fields,omitempty"` // Output only. Product variants grouped together on primary product which // share similar product attributes. It's automatically grouped by // [primary_product_id][google.cloud.retail.v2.Product.primary_product_id] for @@ -619,14 +619,14 @@ func (m *Product) GetExpiration() isProduct_Expiration { return nil } -func (x *Product) GetExpireTime() *timestamppb.Timestamp { +func (x *Product) GetExpireTime() *timestamp.Timestamp { if x, ok := x.GetExpiration().(*Product_ExpireTime); ok { return x.ExpireTime } return nil } -func (x *Product) GetTtl() *durationpb.Duration { +func (x *Product) GetTtl() *duration.Duration { if x, ok := x.GetExpiration().(*Product_Ttl); ok { return x.Ttl } @@ -738,7 +738,7 @@ func (x *Product) GetRating() *Rating { return nil } -func (x *Product) GetAvailableTime() *timestamppb.Timestamp { +func (x *Product) GetAvailableTime() *timestamp.Timestamp { if x != nil { return x.AvailableTime } @@ -752,7 +752,7 @@ func (x *Product) GetAvailability() Product_Availability { return Product_AVAILABILITY_UNSPECIFIED } -func (x *Product) GetAvailableQuantity() *wrapperspb.Int32Value { +func (x *Product) GetAvailableQuantity() *wrappers.Int32Value { if x != nil { return x.AvailableQuantity } @@ -829,14 +829,14 @@ func (x *Product) GetPromotions() []*Promotion { return nil } -func (x *Product) GetPublishTime() *timestamppb.Timestamp { +func (x *Product) GetPublishTime() *timestamp.Timestamp { if x != nil { return x.PublishTime } return nil } -func (x *Product) GetRetrievableFields() *fieldmaskpb.FieldMask { +func (x *Product) GetRetrievableFields() *field_mask.FieldMask { if x != nil { return x.RetrievableFields } @@ -881,7 +881,7 @@ type Product_ExpireTime struct { // // Corresponding properties: Google Merchant Center property // [expiration_date](https://support.google.com/merchants/answer/6324499). - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3,oneof"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3,oneof"` } type Product_Ttl struct { @@ -901,7 +901,7 @@ type Product_Ttl struct { // [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] // and // [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. - Ttl *durationpb.Duration `protobuf:"bytes,17,opt,name=ttl,proto3,oneof"` + Ttl *duration.Duration `protobuf:"bytes,17,opt,name=ttl,proto3,oneof"` } func (*Product_ExpireTime) isProduct_Expiration() {} @@ -1103,23 +1103,23 @@ func file_google_cloud_retail_v2_product_proto_rawDescGZIP() []byte { var file_google_cloud_retail_v2_product_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_google_cloud_retail_v2_product_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_retail_v2_product_proto_goTypes = []interface{}{ - (Product_Type)(0), // 0: google.cloud.retail.v2.Product.Type - (Product_Availability)(0), // 1: google.cloud.retail.v2.Product.Availability - (*Product)(nil), // 2: google.cloud.retail.v2.Product - nil, // 3: google.cloud.retail.v2.Product.AttributesEntry - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 5: google.protobuf.Duration - (*PriceInfo)(nil), // 6: google.cloud.retail.v2.PriceInfo - (*Rating)(nil), // 7: google.cloud.retail.v2.Rating - (*wrapperspb.Int32Value)(nil), // 8: google.protobuf.Int32Value - (*FulfillmentInfo)(nil), // 9: google.cloud.retail.v2.FulfillmentInfo - (*Image)(nil), // 10: google.cloud.retail.v2.Image - (*Audience)(nil), // 11: google.cloud.retail.v2.Audience - (*ColorInfo)(nil), // 12: google.cloud.retail.v2.ColorInfo - (*Promotion)(nil), // 13: google.cloud.retail.v2.Promotion - (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask - (*LocalInventory)(nil), // 15: google.cloud.retail.v2.LocalInventory - (*CustomAttribute)(nil), // 16: google.cloud.retail.v2.CustomAttribute + (Product_Type)(0), // 0: google.cloud.retail.v2.Product.Type + (Product_Availability)(0), // 1: google.cloud.retail.v2.Product.Availability + (*Product)(nil), // 2: google.cloud.retail.v2.Product + nil, // 3: google.cloud.retail.v2.Product.AttributesEntry + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*duration.Duration)(nil), // 5: google.protobuf.Duration + (*PriceInfo)(nil), // 6: google.cloud.retail.v2.PriceInfo + (*Rating)(nil), // 7: google.cloud.retail.v2.Rating + (*wrappers.Int32Value)(nil), // 8: google.protobuf.Int32Value + (*FulfillmentInfo)(nil), // 9: google.cloud.retail.v2.FulfillmentInfo + (*Image)(nil), // 10: google.cloud.retail.v2.Image + (*Audience)(nil), // 11: google.cloud.retail.v2.Audience + (*ColorInfo)(nil), // 12: google.cloud.retail.v2.ColorInfo + (*Promotion)(nil), // 13: google.cloud.retail.v2.Promotion + (*field_mask.FieldMask)(nil), // 14: google.protobuf.FieldMask + (*LocalInventory)(nil), // 15: google.cloud.retail.v2.LocalInventory + (*CustomAttribute)(nil), // 16: google.cloud.retail.v2.CustomAttribute } var file_google_cloud_retail_v2_product_proto_depIdxs = []int32{ 4, // 0: google.cloud.retail.v2.Product.expire_time:type_name -> google.protobuf.Timestamp diff --git a/retail/apiv2/retailpb/product_service.pb.go b/retail/apiv2/retailpb/product_service.pb.go index ed219b7cda94..b352cfedeb0e 100644 --- a/retail/apiv2/retailpb/product_service.pb.go +++ b/retail/apiv2/retailpb/product_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/product_service.proto package retailpb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -219,7 +219,7 @@ type UpdateProductRequest struct { // "attributes.${key_name}". If a key name is present in the mask but not in // the patching product from the request, this key will be deleted after the // update. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] is not // found, a new [Product][google.cloud.retail.v2.Product] will be created. In // this situation, `update_mask` is ignored. @@ -265,7 +265,7 @@ func (x *UpdateProductRequest) GetProduct() *Product { return nil } -func (x *UpdateProductRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateProductRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -435,7 +435,7 @@ type ListProductsRequest struct { // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned. - ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + ReadMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` } func (x *ListProductsRequest) Reset() { @@ -498,7 +498,7 @@ func (x *ListProductsRequest) GetFilter() string { return "" } -func (x *ListProductsRequest) GetReadMask() *fieldmaskpb.FieldMask { +func (x *ListProductsRequest) GetReadMask() *field_mask.FieldMask { if x != nil { return x.ReadMask } @@ -642,11 +642,11 @@ type SetInventoryRequest struct { // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned and the entire update will be ignored. - SetMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=set_mask,json=setMask,proto3" json:"set_mask,omitempty"` + SetMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=set_mask,json=setMask,proto3" json:"set_mask,omitempty"` // The time when the request is issued, used to prevent // out-of-order updates on inventory fields with the last update time // recorded. If not provided, the internal system time will be used. - SetTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` + SetTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] with name // [Product.name][google.cloud.retail.v2.Product.name] is not found, the // inventory update will still be processed and retained for at most 1 day @@ -695,14 +695,14 @@ func (x *SetInventoryRequest) GetInventory() *Product { return nil } -func (x *SetInventoryRequest) GetSetMask() *fieldmaskpb.FieldMask { +func (x *SetInventoryRequest) GetSetMask() *field_mask.FieldMask { if x != nil { return x.SetMask } return nil } -func (x *SetInventoryRequest) GetSetTime() *timestamppb.Timestamp { +func (x *SetInventoryRequest) GetSetTime() *timestamp.Timestamp { if x != nil { return x.SetTime } @@ -856,7 +856,7 @@ type AddFulfillmentPlacesRequest struct { // The time when the fulfillment updates are issued, used to prevent // out-of-order updates on fulfillment information. If not provided, the // internal system time will be used. - AddTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"` + AddTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] is not // found, the fulfillment information will still be processed and retained for // at most 1 day and processed once the @@ -919,7 +919,7 @@ func (x *AddFulfillmentPlacesRequest) GetPlaceIds() []string { return nil } -func (x *AddFulfillmentPlacesRequest) GetAddTime() *timestamppb.Timestamp { +func (x *AddFulfillmentPlacesRequest) GetAddTime() *timestamp.Timestamp { if x != nil { return x.AddTime } @@ -1052,11 +1052,11 @@ type AddLocalInventoriesRequest struct { // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned and the entire update will be ignored. - AddMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=add_mask,json=addMask,proto3" json:"add_mask,omitempty"` + AddMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=add_mask,json=addMask,proto3" json:"add_mask,omitempty"` // The time when the inventory updates are issued. Used to prevent // out-of-order updates on local inventory fields. If not provided, the // internal system time will be used. - AddTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"` + AddTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] is not // found, the local inventory will still be processed and retained for at most // 1 day and processed once the [Product][google.cloud.retail.v2.Product] is @@ -1111,14 +1111,14 @@ func (x *AddLocalInventoriesRequest) GetLocalInventories() []*LocalInventory { return nil } -func (x *AddLocalInventoriesRequest) GetAddMask() *fieldmaskpb.FieldMask { +func (x *AddLocalInventoriesRequest) GetAddMask() *field_mask.FieldMask { if x != nil { return x.AddMask } return nil } -func (x *AddLocalInventoriesRequest) GetAddTime() *timestamppb.Timestamp { +func (x *AddLocalInventoriesRequest) GetAddTime() *timestamp.Timestamp { if x != nil { return x.AddTime } @@ -1240,7 +1240,7 @@ type RemoveLocalInventoriesRequest struct { // The time when the inventory deletions are issued. Used to prevent // out-of-order updates and deletions on local inventory fields. If not // provided, the internal system time will be used. - RemoveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` + RemoveTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] is not // found, the local inventory removal request will still be processed and // retained for at most 1 day and processed once the @@ -1296,7 +1296,7 @@ func (x *RemoveLocalInventoriesRequest) GetPlaceIds() []string { return nil } -func (x *RemoveLocalInventoriesRequest) GetRemoveTime() *timestamppb.Timestamp { +func (x *RemoveLocalInventoriesRequest) GetRemoveTime() *timestamp.Timestamp { if x != nil { return x.RemoveTime } @@ -1447,7 +1447,7 @@ type RemoveFulfillmentPlacesRequest struct { // The time when the fulfillment updates are issued, used to prevent // out-of-order updates on fulfillment information. If not provided, the // internal system time will be used. - RemoveTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` + RemoveTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2.Product] is not // found, the fulfillment information will still be processed and retained for // at most 1 day and processed once the @@ -1510,7 +1510,7 @@ func (x *RemoveFulfillmentPlacesRequest) GetPlaceIds() []string { return nil } -func (x *RemoveFulfillmentPlacesRequest) GetRemoveTime() *timestamppb.Timestamp { +func (x *RemoveFulfillmentPlacesRequest) GetRemoveTime() *timestamp.Timestamp { if x != nil { return x.RemoveTime } @@ -2034,11 +2034,11 @@ var file_google_cloud_retail_v2_product_service_proto_goTypes = []interface{}{ (*RemoveFulfillmentPlacesMetadata)(nil), // 19: google.cloud.retail.v2.RemoveFulfillmentPlacesMetadata (*RemoveFulfillmentPlacesResponse)(nil), // 20: google.cloud.retail.v2.RemoveFulfillmentPlacesResponse (*Product)(nil), // 21: google.cloud.retail.v2.Product - (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 22: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 23: google.protobuf.Timestamp (*LocalInventory)(nil), // 24: google.cloud.retail.v2.LocalInventory (*ImportProductsRequest)(nil), // 25: google.cloud.retail.v2.ImportProductsRequest - (*emptypb.Empty)(nil), // 26: google.protobuf.Empty + (*empty.Empty)(nil), // 26: google.protobuf.Empty (*longrunning.Operation)(nil), // 27: google.longrunning.Operation } var file_google_cloud_retail_v2_product_service_proto_depIdxs = []int32{ @@ -2388,7 +2388,7 @@ type ProductServiceClient interface { // Updates a [Product][google.cloud.retail.v2.Product]. UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*Product, error) // Deletes a [Product][google.cloud.retail.v2.Product]. - DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. // // Request processing may be synchronous. @@ -2598,8 +2598,8 @@ func (c *productServiceClient) UpdateProduct(ctx context.Context, in *UpdateProd return out, nil } -func (c *productServiceClient) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productServiceClient) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.ProductService/DeleteProduct", in, out, opts...) if err != nil { return nil, err @@ -2672,7 +2672,7 @@ type ProductServiceServer interface { // Updates a [Product][google.cloud.retail.v2.Product]. UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error) // Deletes a [Product][google.cloud.retail.v2.Product]. - DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error) + DeleteProduct(context.Context, *DeleteProductRequest) (*empty.Empty, error) // Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. // // Request processing may be synchronous. @@ -2854,7 +2854,7 @@ func (*UnimplementedProductServiceServer) ListProducts(context.Context, *ListPro func (*UnimplementedProductServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateProduct not implemented") } -func (*UnimplementedProductServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteProduct not implemented") } func (*UnimplementedProductServiceServer) ImportProducts(context.Context, *ImportProductsRequest) (*longrunning.Operation, error) { diff --git a/retail/apiv2/retailpb/promotion.pb.go b/retail/apiv2/retailpb/promotion.pb.go index 897708e38ad8..9fb80cc0bd7d 100644 --- a/retail/apiv2/retailpb/promotion.pb.go +++ b/retail/apiv2/retailpb/promotion.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/promotion.proto package retailpb diff --git a/retail/apiv2/retailpb/purge_config.pb.go b/retail/apiv2/retailpb/purge_config.pb.go index 75bad2761f27..6535497c9a8f 100644 --- a/retail/apiv2/retailpb/purge_config.pb.go +++ b/retail/apiv2/retailpb/purge_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/purge_config.proto package retailpb diff --git a/retail/apiv2/retailpb/search_service.pb.go b/retail/apiv2/retailpb/search_service.pb.go index be7a1fac991b..9ae12b75a1a0 100644 --- a/retail/apiv2/retailpb/search_service.pb.go +++ b/retail/apiv2/retailpb/search_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/search_service.proto package retailpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -1706,7 +1706,7 @@ type SearchResponse_SearchResult struct { // For example, a key "sku1" with field mask // "products.color_info" indicates there is a match between // "sku1" [ColorInfo][google.cloud.retail.v2.ColorInfo] and the query. - MatchingVariantFields map[string]*fieldmaskpb.FieldMask `protobuf:"bytes,4,rep,name=matching_variant_fields,json=matchingVariantFields,proto3" json:"matching_variant_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MatchingVariantFields map[string]*field_mask.FieldMask `protobuf:"bytes,4,rep,name=matching_variant_fields,json=matchingVariantFields,proto3" json:"matching_variant_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The rollup matching // [variant][google.cloud.retail.v2.Product.Type.VARIANT] // [Product][google.cloud.retail.v2.Product] attributes. The key is one of @@ -1738,7 +1738,7 @@ type SearchResponse_SearchResult struct { // [google.protobuf.Value][google.protobuf.Value]. For example, // `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there // are 10 variants in this product are available in the store "store1". - VariantRollupValues map[string]*structpb.Value `protobuf:"bytes,5,rep,name=variant_rollup_values,json=variantRollupValues,proto3" json:"variant_rollup_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + VariantRollupValues map[string]*_struct.Value `protobuf:"bytes,5,rep,name=variant_rollup_values,json=variantRollupValues,proto3" json:"variant_rollup_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Specifies previous events related to this product for this user based on // [UserEvent][google.cloud.retail.v2.UserEvent] with same // [SearchRequest.visitor_id][google.cloud.retail.v2.SearchRequest.visitor_id] @@ -1808,14 +1808,14 @@ func (x *SearchResponse_SearchResult) GetMatchingVariantCount() int32 { return 0 } -func (x *SearchResponse_SearchResult) GetMatchingVariantFields() map[string]*fieldmaskpb.FieldMask { +func (x *SearchResponse_SearchResult) GetMatchingVariantFields() map[string]*field_mask.FieldMask { if x != nil { return x.MatchingVariantFields } return nil } -func (x *SearchResponse_SearchResult) GetVariantRollupValues() map[string]*structpb.Value { +func (x *SearchResponse_SearchResult) GetVariantRollupValues() map[string]*_struct.Value { if x != nil { return x.VariantRollupValues } @@ -2480,8 +2480,8 @@ var file_google_cloud_retail_v2_search_service_proto_goTypes = []interface{}{ (*UserInfo)(nil), // 22: google.cloud.retail.v2.UserInfo (*Interval)(nil), // 23: google.cloud.retail.v2.Interval (*Product)(nil), // 24: google.cloud.retail.v2.Product - (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask - (*structpb.Value)(nil), // 26: google.protobuf.Value + (*field_mask.FieldMask)(nil), // 25: google.protobuf.FieldMask + (*_struct.Value)(nil), // 26: google.protobuf.Value } var file_google_cloud_retail_v2_search_service_proto_depIdxs = []int32{ 22, // 0: google.cloud.retail.v2.SearchRequest.user_info:type_name -> google.cloud.retail.v2.UserInfo diff --git a/retail/apiv2/retailpb/serving_config.pb.go b/retail/apiv2/retailpb/serving_config.pb.go index 3ff1bbb47225..f9c49db9fc09 100644 --- a/retail/apiv2/retailpb/serving_config.pb.go +++ b/retail/apiv2/retailpb/serving_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/serving_config.proto package retailpb diff --git a/retail/apiv2/retailpb/serving_config_service.pb.go b/retail/apiv2/retailpb/serving_config_service.pb.go index ee3c61ed77b4..f9553da1e4e9 100644 --- a/retail/apiv2/retailpb/serving_config_service.pb.go +++ b/retail/apiv2/retailpb/serving_config_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/serving_config_service.proto package retailpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -129,7 +129,7 @@ type UpdateServingConfigRequest struct { // * [ServingConfig.name][google.cloud.retail.v2.ServingConfig.name] // // If not set, all supported fields are updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateServingConfigRequest) Reset() { @@ -171,7 +171,7 @@ func (x *UpdateServingConfigRequest) GetServingConfig() *ServingConfig { return nil } -func (x *UpdateServingConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServingConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -761,8 +761,8 @@ var file_google_cloud_retail_v2_serving_config_service_proto_goTypes = []interfa (*AddControlRequest)(nil), // 6: google.cloud.retail.v2.AddControlRequest (*RemoveControlRequest)(nil), // 7: google.cloud.retail.v2.RemoveControlRequest (*ServingConfig)(nil), // 8: google.cloud.retail.v2.ServingConfig - (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 10: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*empty.Empty)(nil), // 10: google.protobuf.Empty } var file_google_cloud_retail_v2_serving_config_service_proto_depIdxs = []int32{ 8, // 0: google.cloud.retail.v2.CreateServingConfigRequest.serving_config:type_name -> google.cloud.retail.v2.ServingConfig @@ -935,7 +935,7 @@ type ServingConfigServiceClient interface { // Deletes a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. - DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a ServingConfig. UpdateServingConfig(ctx context.Context, in *UpdateServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error) // Gets a ServingConfig. @@ -976,8 +976,8 @@ func (c *servingConfigServiceClient) CreateServingConfig(ctx context.Context, in return out, nil } -func (c *servingConfigServiceClient) DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *servingConfigServiceClient) DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.ServingConfigService/DeleteServingConfig", in, out, opts...) if err != nil { return nil, err @@ -1041,7 +1041,7 @@ type ServingConfigServiceServer interface { // Deletes a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. - DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error) + DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*empty.Empty, error) // Updates a ServingConfig. UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error) // Gets a ServingConfig. @@ -1072,7 +1072,7 @@ type UnimplementedServingConfigServiceServer struct { func (*UnimplementedServingConfigServiceServer) CreateServingConfig(context.Context, *CreateServingConfigRequest) (*ServingConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateServingConfig not implemented") } -func (*UnimplementedServingConfigServiceServer) DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedServingConfigServiceServer) DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteServingConfig not implemented") } func (*UnimplementedServingConfigServiceServer) UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error) { diff --git a/retail/apiv2/retailpb/user_event.pb.go b/retail/apiv2/retailpb/user_event.pb.go index 511b834e3bb8..a938612e159c 100644 --- a/retail/apiv2/retailpb/user_event.pb.go +++ b/retail/apiv2/retailpb/user_event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/user_event.proto package retailpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -88,7 +88,7 @@ type UserEvent struct { // Only required for // [UserEventService.ImportUserEvents][google.cloud.retail.v2.UserEventService.ImportUserEvents] // method. Timestamp of when the user event happened. - EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + EventTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // A list of identifiers for the independent experiment groups this user event // belongs to. This is used to distinguish between user events associated with // different experiment setups (e.g. using Retail API, using different @@ -314,7 +314,7 @@ func (x *UserEvent) GetSessionId() string { return "" } -func (x *UserEvent) GetEventTime() *timestamppb.Timestamp { +func (x *UserEvent) GetEventTime() *timestamp.Timestamp { if x != nil { return x.EventTime } @@ -462,7 +462,7 @@ type ProductDetail struct { // For example, this field will be 2 if two products are added to the shopping // cart for `purchase-complete` event. Required for `add-to-cart` and // `purchase-complete` event types. - Quantity *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` + Quantity *wrappers.Int32Value `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` } func (x *ProductDetail) Reset() { @@ -504,7 +504,7 @@ func (x *ProductDetail) GetProduct() *Product { return nil } -func (x *ProductDetail) GetQuantity() *wrapperspb.Int32Value { +func (x *ProductDetail) GetQuantity() *wrappers.Int32Value { if x != nil { return x.Quantity } @@ -818,16 +818,16 @@ func file_google_cloud_retail_v2_user_event_proto_rawDescGZIP() []byte { var file_google_cloud_retail_v2_user_event_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_cloud_retail_v2_user_event_proto_goTypes = []interface{}{ - (*UserEvent)(nil), // 0: google.cloud.retail.v2.UserEvent - (*ProductDetail)(nil), // 1: google.cloud.retail.v2.ProductDetail - (*CompletionDetail)(nil), // 2: google.cloud.retail.v2.CompletionDetail - (*PurchaseTransaction)(nil), // 3: google.cloud.retail.v2.PurchaseTransaction - nil, // 4: google.cloud.retail.v2.UserEvent.AttributesEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*UserInfo)(nil), // 6: google.cloud.retail.v2.UserInfo - (*Product)(nil), // 7: google.cloud.retail.v2.Product - (*wrapperspb.Int32Value)(nil), // 8: google.protobuf.Int32Value - (*CustomAttribute)(nil), // 9: google.cloud.retail.v2.CustomAttribute + (*UserEvent)(nil), // 0: google.cloud.retail.v2.UserEvent + (*ProductDetail)(nil), // 1: google.cloud.retail.v2.ProductDetail + (*CompletionDetail)(nil), // 2: google.cloud.retail.v2.CompletionDetail + (*PurchaseTransaction)(nil), // 3: google.cloud.retail.v2.PurchaseTransaction + nil, // 4: google.cloud.retail.v2.UserEvent.AttributesEntry + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*UserInfo)(nil), // 6: google.cloud.retail.v2.UserInfo + (*Product)(nil), // 7: google.cloud.retail.v2.Product + (*wrappers.Int32Value)(nil), // 8: google.protobuf.Int32Value + (*CustomAttribute)(nil), // 9: google.cloud.retail.v2.CustomAttribute } var file_google_cloud_retail_v2_user_event_proto_depIdxs = []int32{ 5, // 0: google.cloud.retail.v2.UserEvent.event_time:type_name -> google.protobuf.Timestamp diff --git a/retail/apiv2/retailpb/user_event_service.pb.go b/retail/apiv2/retailpb/user_event_service.pb.go index 933c180921c0..76d0606ffa94 100644 --- a/retail/apiv2/retailpb/user_event_service.pb.go +++ b/retail/apiv2/retailpb/user_event_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/retail/v2/user_event_service.proto package retailpb diff --git a/run/apiv2/runpb/condition.pb.go b/run/apiv2/runpb/condition.pb.go index f6f4c8c1a47f..03b79c52e516 100644 --- a/run/apiv2/runpb/condition.pb.go +++ b/run/apiv2/runpb/condition.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/condition.proto package runpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -425,7 +425,7 @@ type Condition struct { // Human readable message indicating details about the current status. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // Last time the condition transitioned from one status to another. - LastTransitionTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"` + LastTransitionTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"` // How to interpret failures of this condition, one of Error, Warning, Info Severity Condition_Severity `protobuf:"varint,5,opt,name=severity,proto3,enum=google.cloud.run.v2.Condition_Severity" json:"severity,omitempty"` // The reason for this condition. Depending on the condition type, @@ -493,7 +493,7 @@ func (x *Condition) GetMessage() string { return "" } -func (x *Condition) GetLastTransitionTime() *timestamppb.Timestamp { +func (x *Condition) GetLastTransitionTime() *timestamp.Timestamp { if x != nil { return x.LastTransitionTime } @@ -699,7 +699,7 @@ var file_google_cloud_run_v2_condition_proto_goTypes = []interface{}{ (Condition_RevisionReason)(0), // 3: google.cloud.run.v2.Condition.RevisionReason (Condition_ExecutionReason)(0), // 4: google.cloud.run.v2.Condition.ExecutionReason (*Condition)(nil), // 5: google.cloud.run.v2.Condition - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_google_cloud_run_v2_condition_proto_depIdxs = []int32{ 0, // 0: google.cloud.run.v2.Condition.state:type_name -> google.cloud.run.v2.Condition.State diff --git a/run/apiv2/runpb/k8s.min.pb.go b/run/apiv2/runpb/k8s.min.pb.go index 0c76bb7a2a6f..bb42f43a2f18 100644 --- a/run/apiv2/runpb/k8s.min.pb.go +++ b/run/apiv2/runpb/k8s.min.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/k8s.min.proto package runpb diff --git a/run/apiv2/runpb/revision.pb.go b/run/apiv2/runpb/revision.pb.go index dc5138d72607..95f081a8d5d0 100644 --- a/run/apiv2/runpb/revision.pb.go +++ b/run/apiv2/runpb/revision.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/revision.proto package runpb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" api "google.golang.org/genproto/googleapis/api" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" @@ -33,8 +35,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -336,16 +336,16 @@ type Revision struct { // KRM-style annotations for the resource. Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. For a deleted resource, the deletion time. It is only // populated as a response to a Delete request. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. For a deleted resource, the time after which it will be // permamently deleted. It is only populated as a response to a Delete // request. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Set the launch stage to a preview stage on write to allow use of preview // features in that stage. On read, describes whether the resource uses // preview features. Launch Stages are defined at [Google Cloud Platform @@ -361,7 +361,7 @@ type Revision struct { // Sets the maximum number of requests that each serving instance can receive. MaxInstanceRequestConcurrency int32 `protobuf:"varint,34,opt,name=max_instance_request_concurrency,json=maxInstanceRequestConcurrency,proto3" json:"max_instance_request_concurrency,omitempty"` // Max allowed time for an instance to respond to a request. - Timeout *durationpb.Duration `protobuf:"bytes,15,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,15,opt,name=timeout,proto3" json:"timeout,omitempty"` // Email address of the IAM service account associated with the revision of // the service. The service account represents the identity of the running // revision, and determines what permissions the revision has. @@ -462,28 +462,28 @@ func (x *Revision) GetAnnotations() map[string]string { return nil } -func (x *Revision) GetCreateTime() *timestamppb.Timestamp { +func (x *Revision) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Revision) GetUpdateTime() *timestamppb.Timestamp { +func (x *Revision) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Revision) GetDeleteTime() *timestamppb.Timestamp { +func (x *Revision) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } return nil } -func (x *Revision) GetExpireTime() *timestamppb.Timestamp { +func (x *Revision) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -525,7 +525,7 @@ func (x *Revision) GetMaxInstanceRequestConcurrency() int32 { return 0 } -func (x *Revision) GetTimeout() *durationpb.Duration { +func (x *Revision) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -849,11 +849,11 @@ var file_google_cloud_run_v2_revision_proto_goTypes = []interface{}{ (*Revision)(nil), // 4: google.cloud.run.v2.Revision nil, // 5: google.cloud.run.v2.Revision.LabelsEntry nil, // 6: google.cloud.run.v2.Revision.AnnotationsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp (api.LaunchStage)(0), // 8: google.api.LaunchStage (*RevisionScaling)(nil), // 9: google.cloud.run.v2.RevisionScaling (*VpcAccess)(nil), // 10: google.cloud.run.v2.VpcAccess - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*duration.Duration)(nil), // 11: google.protobuf.Duration (*Container)(nil), // 12: google.cloud.run.v2.Container (*Volume)(nil), // 13: google.cloud.run.v2.Volume (ExecutionEnvironment)(0), // 14: google.cloud.run.v2.ExecutionEnvironment diff --git a/run/apiv2/runpb/revision_template.pb.go b/run/apiv2/runpb/revision_template.pb.go index 014ce7e9322d..8a9184678bdf 100644 --- a/run/apiv2/runpb/revision_template.pb.go +++ b/run/apiv2/runpb/revision_template.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/revision_template.proto package runpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -57,7 +57,7 @@ type RevisionTemplate struct { // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. VpcAccess *VpcAccess `protobuf:"bytes,6,opt,name=vpc_access,json=vpcAccess,proto3" json:"vpc_access,omitempty"` // Max allowed time for an instance to respond to a request. - Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // Email address of the IAM service account associated with the revision of // the service. The service account represents the identity of the running // revision, and determines what permissions the revision has. If not @@ -145,7 +145,7 @@ func (x *RevisionTemplate) GetVpcAccess() *VpcAccess { return nil } -func (x *RevisionTemplate) GetTimeout() *durationpb.Duration { +func (x *RevisionTemplate) GetTimeout() *duration.Duration { if x != nil { return x.Timeout } @@ -293,15 +293,15 @@ func file_google_cloud_run_v2_revision_template_proto_rawDescGZIP() []byte { var file_google_cloud_run_v2_revision_template_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_run_v2_revision_template_proto_goTypes = []interface{}{ - (*RevisionTemplate)(nil), // 0: google.cloud.run.v2.RevisionTemplate - nil, // 1: google.cloud.run.v2.RevisionTemplate.LabelsEntry - nil, // 2: google.cloud.run.v2.RevisionTemplate.AnnotationsEntry - (*RevisionScaling)(nil), // 3: google.cloud.run.v2.RevisionScaling - (*VpcAccess)(nil), // 4: google.cloud.run.v2.VpcAccess - (*durationpb.Duration)(nil), // 5: google.protobuf.Duration - (*Container)(nil), // 6: google.cloud.run.v2.Container - (*Volume)(nil), // 7: google.cloud.run.v2.Volume - (ExecutionEnvironment)(0), // 8: google.cloud.run.v2.ExecutionEnvironment + (*RevisionTemplate)(nil), // 0: google.cloud.run.v2.RevisionTemplate + nil, // 1: google.cloud.run.v2.RevisionTemplate.LabelsEntry + nil, // 2: google.cloud.run.v2.RevisionTemplate.AnnotationsEntry + (*RevisionScaling)(nil), // 3: google.cloud.run.v2.RevisionScaling + (*VpcAccess)(nil), // 4: google.cloud.run.v2.VpcAccess + (*duration.Duration)(nil), // 5: google.protobuf.Duration + (*Container)(nil), // 6: google.cloud.run.v2.Container + (*Volume)(nil), // 7: google.cloud.run.v2.Volume + (ExecutionEnvironment)(0), // 8: google.cloud.run.v2.ExecutionEnvironment } var file_google_cloud_run_v2_revision_template_proto_depIdxs = []int32{ 1, // 0: google.cloud.run.v2.RevisionTemplate.labels:type_name -> google.cloud.run.v2.RevisionTemplate.LabelsEntry diff --git a/run/apiv2/runpb/service.pb.go b/run/apiv2/runpb/service.pb.go index fe8b4ca83091..e1d39d5191b4 100644 --- a/run/apiv2/runpb/service.pb.go +++ b/run/apiv2/runpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/service.proto package runpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" api "google.golang.org/genproto/googleapis/api" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" @@ -34,7 +35,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -500,14 +500,14 @@ type Service struct { // https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `protobuf:"bytes,6,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The deletion time. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. For a deleted resource, the time after which it will be // permamently deleted. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Output only. Email address of the authenticated creator. Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator,omitempty"` // Output only. Email address of the last authenticated modifier. @@ -664,28 +664,28 @@ func (x *Service) GetAnnotations() map[string]string { return nil } -func (x *Service) GetCreateTime() *timestamppb.Timestamp { +func (x *Service) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Service) GetUpdateTime() *timestamppb.Timestamp { +func (x *Service) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Service) GetDeleteTime() *timestamppb.Timestamp { +func (x *Service) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } return nil } -func (x *Service) GetExpireTime() *timestamppb.Timestamp { +func (x *Service) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1163,7 +1163,7 @@ var file_google_cloud_run_v2_service_proto_goTypes = []interface{}{ (*Service)(nil), // 6: google.cloud.run.v2.Service nil, // 7: google.cloud.run.v2.Service.LabelsEntry nil, // 8: google.cloud.run.v2.Service.AnnotationsEntry - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp (IngressTraffic)(0), // 10: google.cloud.run.v2.IngressTraffic (api.LaunchStage)(0), // 11: google.api.LaunchStage (*BinaryAuthorization)(nil), // 12: google.cloud.run.v2.BinaryAuthorization diff --git a/run/apiv2/runpb/traffic_target.pb.go b/run/apiv2/runpb/traffic_target.pb.go index 928741c71d8c..894c5b8d48fe 100644 --- a/run/apiv2/runpb/traffic_target.pb.go +++ b/run/apiv2/runpb/traffic_target.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/traffic_target.proto package runpb diff --git a/run/apiv2/runpb/vendor_settings.pb.go b/run/apiv2/runpb/vendor_settings.pb.go index 7717985ad3aa..a5192d0cd63d 100644 --- a/run/apiv2/runpb/vendor_settings.pb.go +++ b/run/apiv2/runpb/vendor_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/run/v2/vendor_settings.proto package runpb diff --git a/run/go.mod b/run/go.mod index 1c1ad911a36f..b159a3bf5e46 100644 --- a/run/go.mod +++ b/run/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/scheduler/apiv1/schedulerpb/cloudscheduler.pb.go b/scheduler/apiv1/schedulerpb/cloudscheduler.pb.go index 1d93161ba056..b82242f676e1 100644 --- a/scheduler/apiv1/schedulerpb/cloudscheduler.pb.go +++ b/scheduler/apiv1/schedulerpb/cloudscheduler.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/scheduler/v1/cloudscheduler.proto package schedulerpb @@ -26,14 +26,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -311,7 +311,7 @@ type UpdateJobRequest struct { // Any value specified for an output only field will be ignored. Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // A mask used to specify which fields of the job are being updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateJobRequest) Reset() { @@ -353,7 +353,7 @@ func (x *UpdateJobRequest) GetJob() *Job { return nil } -func (x *UpdateJobRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -751,18 +751,18 @@ func file_google_cloud_scheduler_v1_cloudscheduler_proto_rawDescGZIP() []byte { var file_google_cloud_scheduler_v1_cloudscheduler_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_google_cloud_scheduler_v1_cloudscheduler_proto_goTypes = []interface{}{ - (*ListJobsRequest)(nil), // 0: google.cloud.scheduler.v1.ListJobsRequest - (*ListJobsResponse)(nil), // 1: google.cloud.scheduler.v1.ListJobsResponse - (*GetJobRequest)(nil), // 2: google.cloud.scheduler.v1.GetJobRequest - (*CreateJobRequest)(nil), // 3: google.cloud.scheduler.v1.CreateJobRequest - (*UpdateJobRequest)(nil), // 4: google.cloud.scheduler.v1.UpdateJobRequest - (*DeleteJobRequest)(nil), // 5: google.cloud.scheduler.v1.DeleteJobRequest - (*PauseJobRequest)(nil), // 6: google.cloud.scheduler.v1.PauseJobRequest - (*ResumeJobRequest)(nil), // 7: google.cloud.scheduler.v1.ResumeJobRequest - (*RunJobRequest)(nil), // 8: google.cloud.scheduler.v1.RunJobRequest - (*Job)(nil), // 9: google.cloud.scheduler.v1.Job - (*fieldmaskpb.FieldMask)(nil), // 10: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 11: google.protobuf.Empty + (*ListJobsRequest)(nil), // 0: google.cloud.scheduler.v1.ListJobsRequest + (*ListJobsResponse)(nil), // 1: google.cloud.scheduler.v1.ListJobsResponse + (*GetJobRequest)(nil), // 2: google.cloud.scheduler.v1.GetJobRequest + (*CreateJobRequest)(nil), // 3: google.cloud.scheduler.v1.CreateJobRequest + (*UpdateJobRequest)(nil), // 4: google.cloud.scheduler.v1.UpdateJobRequest + (*DeleteJobRequest)(nil), // 5: google.cloud.scheduler.v1.DeleteJobRequest + (*PauseJobRequest)(nil), // 6: google.cloud.scheduler.v1.PauseJobRequest + (*ResumeJobRequest)(nil), // 7: google.cloud.scheduler.v1.ResumeJobRequest + (*RunJobRequest)(nil), // 8: google.cloud.scheduler.v1.RunJobRequest + (*Job)(nil), // 9: google.cloud.scheduler.v1.Job + (*field_mask.FieldMask)(nil), // 10: google.protobuf.FieldMask + (*empty.Empty)(nil), // 11: google.protobuf.Empty } var file_google_cloud_scheduler_v1_cloudscheduler_proto_depIdxs = []int32{ 9, // 0: google.cloud.scheduler.v1.ListJobsResponse.jobs:type_name -> google.cloud.scheduler.v1.Job @@ -957,7 +957,7 @@ type CloudSchedulerClient interface { // until a successful response is received. UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*Job, error) // Deletes a job. - DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Pauses a job. // // If a job is paused then the system will stop executing the job @@ -1024,8 +1024,8 @@ func (c *cloudSchedulerClient) UpdateJob(ctx context.Context, in *UpdateJobReque return out, nil } -func (c *cloudSchedulerClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *cloudSchedulerClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1.CloudScheduler/DeleteJob", in, out, opts...) if err != nil { return nil, err @@ -1079,7 +1079,7 @@ type CloudSchedulerServer interface { // until a successful response is received. UpdateJob(context.Context, *UpdateJobRequest) (*Job, error) // Deletes a job. - DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) + DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) // Pauses a job. // // If a job is paused then the system will stop executing the job @@ -1118,7 +1118,7 @@ func (*UnimplementedCloudSchedulerServer) CreateJob(context.Context, *CreateJobR func (*UnimplementedCloudSchedulerServer) UpdateJob(context.Context, *UpdateJobRequest) (*Job, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateJob not implemented") } -func (*UnimplementedCloudSchedulerServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedCloudSchedulerServer) DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented") } func (*UnimplementedCloudSchedulerServer) PauseJob(context.Context, *PauseJobRequest) (*Job, error) { diff --git a/scheduler/apiv1/schedulerpb/job.pb.go b/scheduler/apiv1/schedulerpb/job.pb.go index 67e799fcb809..78844670d4f4 100644 --- a/scheduler/apiv1/schedulerpb/job.pb.go +++ b/scheduler/apiv1/schedulerpb/job.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/scheduler/v1/job.proto package schedulerpb @@ -25,12 +25,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -182,7 +182,7 @@ type Job struct { // as GMT). TimeZone string `protobuf:"bytes,21,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` // Output only. The creation time of the job. - UserUpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=user_update_time,json=userUpdateTime,proto3" json:"user_update_time,omitempty"` + UserUpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=user_update_time,json=userUpdateTime,proto3" json:"user_update_time,omitempty"` // Output only. State of the job. State Job_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.scheduler.v1.Job_State" json:"state,omitempty"` // Output only. The response from the target for the last attempted execution. @@ -190,9 +190,9 @@ type Job struct { // Output only. The next time the job is scheduled. Note that this may be a // retry of a previously failed attempt or the next execution time // according to the schedule. - ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Output only. The time the last job attempt started. - LastAttemptTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"` + LastAttemptTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"` // Settings that determine the retry behavior. RetryConfig *RetryConfig `protobuf:"bytes,19,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"` // The deadline for job attempts. If the request handler does not respond by @@ -205,7 +205,7 @@ type Job struct { // - For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], between 15 seconds and 30 minutes. // - For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], between 15 // seconds and 24 hours. - AttemptDeadline *durationpb.Duration `protobuf:"bytes,22,opt,name=attempt_deadline,json=attemptDeadline,proto3" json:"attempt_deadline,omitempty"` + AttemptDeadline *duration.Duration `protobuf:"bytes,22,opt,name=attempt_deadline,json=attemptDeadline,proto3" json:"attempt_deadline,omitempty"` } func (x *Job) Reset() { @@ -296,7 +296,7 @@ func (x *Job) GetTimeZone() string { return "" } -func (x *Job) GetUserUpdateTime() *timestamppb.Timestamp { +func (x *Job) GetUserUpdateTime() *timestamp.Timestamp { if x != nil { return x.UserUpdateTime } @@ -317,14 +317,14 @@ func (x *Job) GetStatus() *status.Status { return nil } -func (x *Job) GetScheduleTime() *timestamppb.Timestamp { +func (x *Job) GetScheduleTime() *timestamp.Timestamp { if x != nil { return x.ScheduleTime } return nil } -func (x *Job) GetLastAttemptTime() *timestamppb.Timestamp { +func (x *Job) GetLastAttemptTime() *timestamp.Timestamp { if x != nil { return x.LastAttemptTime } @@ -338,7 +338,7 @@ func (x *Job) GetRetryConfig() *RetryConfig { return nil } -func (x *Job) GetAttemptDeadline() *durationpb.Duration { +func (x *Job) GetAttemptDeadline() *duration.Duration { if x != nil { return x.AttemptDeadline } @@ -404,17 +404,17 @@ type RetryConfig struct { // // The default value for max_retry_duration is zero, which means retry // duration is unlimited. - MaxRetryDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` + MaxRetryDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` // The minimum amount of time to wait before retrying a job after // it fails. // // The default value of this field is 5 seconds. - MinBackoffDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=min_backoff_duration,json=minBackoffDuration,proto3" json:"min_backoff_duration,omitempty"` + MinBackoffDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_backoff_duration,json=minBackoffDuration,proto3" json:"min_backoff_duration,omitempty"` // The maximum amount of time to wait before retrying a job after // it fails. // // The default value of this field is 1 hour. - MaxBackoffDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=max_backoff_duration,json=maxBackoffDuration,proto3" json:"max_backoff_duration,omitempty"` + MaxBackoffDuration *duration.Duration `protobuf:"bytes,4,opt,name=max_backoff_duration,json=maxBackoffDuration,proto3" json:"max_backoff_duration,omitempty"` // The time between retries will double `max_doublings` times. // // A job's retry interval starts at @@ -476,21 +476,21 @@ func (x *RetryConfig) GetRetryCount() int32 { return 0 } -func (x *RetryConfig) GetMaxRetryDuration() *durationpb.Duration { +func (x *RetryConfig) GetMaxRetryDuration() *duration.Duration { if x != nil { return x.MaxRetryDuration } return nil } -func (x *RetryConfig) GetMinBackoffDuration() *durationpb.Duration { +func (x *RetryConfig) GetMinBackoffDuration() *duration.Duration { if x != nil { return x.MinBackoffDuration } return nil } -func (x *RetryConfig) GetMaxBackoffDuration() *durationpb.Duration { +func (x *RetryConfig) GetMaxBackoffDuration() *duration.Duration { if x != nil { return x.MaxBackoffDuration } @@ -629,15 +629,15 @@ func file_google_cloud_scheduler_v1_job_proto_rawDescGZIP() []byte { var file_google_cloud_scheduler_v1_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_scheduler_v1_job_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_scheduler_v1_job_proto_goTypes = []interface{}{ - (Job_State)(0), // 0: google.cloud.scheduler.v1.Job.State - (*Job)(nil), // 1: google.cloud.scheduler.v1.Job - (*RetryConfig)(nil), // 2: google.cloud.scheduler.v1.RetryConfig - (*PubsubTarget)(nil), // 3: google.cloud.scheduler.v1.PubsubTarget - (*AppEngineHttpTarget)(nil), // 4: google.cloud.scheduler.v1.AppEngineHttpTarget - (*HttpTarget)(nil), // 5: google.cloud.scheduler.v1.HttpTarget - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - (*status.Status)(nil), // 7: google.rpc.Status - (*durationpb.Duration)(nil), // 8: google.protobuf.Duration + (Job_State)(0), // 0: google.cloud.scheduler.v1.Job.State + (*Job)(nil), // 1: google.cloud.scheduler.v1.Job + (*RetryConfig)(nil), // 2: google.cloud.scheduler.v1.RetryConfig + (*PubsubTarget)(nil), // 3: google.cloud.scheduler.v1.PubsubTarget + (*AppEngineHttpTarget)(nil), // 4: google.cloud.scheduler.v1.AppEngineHttpTarget + (*HttpTarget)(nil), // 5: google.cloud.scheduler.v1.HttpTarget + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*status.Status)(nil), // 7: google.rpc.Status + (*duration.Duration)(nil), // 8: google.protobuf.Duration } var file_google_cloud_scheduler_v1_job_proto_depIdxs = []int32{ 3, // 0: google.cloud.scheduler.v1.Job.pubsub_target:type_name -> google.cloud.scheduler.v1.PubsubTarget diff --git a/scheduler/apiv1/schedulerpb/target.pb.go b/scheduler/apiv1/schedulerpb/target.pb.go index e58c1ad7574a..4a87a3468749 100644 --- a/scheduler/apiv1/schedulerpb/target.pb.go +++ b/scheduler/apiv1/schedulerpb/target.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/scheduler/v1/target.proto package schedulerpb diff --git a/secretmanager/apiv1/secretmanagerpb/resources.pb.go b/secretmanager/apiv1/secretmanagerpb/resources.pb.go index 6c3cbc33d67a..d8c4db05f796 100644 --- a/secretmanager/apiv1/secretmanagerpb/resources.pb.go +++ b/secretmanager/apiv1/secretmanagerpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/secretmanager/v1/resources.proto package secretmanagerpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -115,7 +115,7 @@ type Secret struct { // The replication policy cannot be changed after the Secret has been created. Replication *Replication `protobuf:"bytes,2,opt,name=replication,proto3" json:"replication,omitempty"` // Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The labels assigned to this Secret. // // Label keys must be between 1 and 63 characters long, have a UTF-8 encoding @@ -210,7 +210,7 @@ func (x *Secret) GetReplication() *Replication { return nil } -func (x *Secret) GetCreateTime() *timestamppb.Timestamp { +func (x *Secret) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -238,14 +238,14 @@ func (m *Secret) GetExpiration() isSecret_Expiration { return nil } -func (x *Secret) GetExpireTime() *timestamppb.Timestamp { +func (x *Secret) GetExpireTime() *timestamp.Timestamp { if x, ok := x.GetExpiration().(*Secret_ExpireTime); ok { return x.ExpireTime } return nil } -func (x *Secret) GetTtl() *durationpb.Duration { +func (x *Secret) GetTtl() *duration.Duration { if x, ok := x.GetExpiration().(*Secret_Ttl); ok { return x.Ttl } @@ -280,12 +280,12 @@ type isSecret_Expiration interface { type Secret_ExpireTime struct { // Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is // always provided on output, regardless of what was sent on input. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3,oneof"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3,oneof"` } type Secret_Ttl struct { // Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret]. - Ttl *durationpb.Duration `protobuf:"bytes,7,opt,name=ttl,proto3,oneof"` + Ttl *duration.Duration `protobuf:"bytes,7,opt,name=ttl,proto3,oneof"` } func (*Secret_ExpireTime) isSecret_Expiration() {} @@ -305,11 +305,11 @@ type SecretVersion struct { // are incremented for each subsequent version of the secret. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed. // Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is // [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED]. - DestroyTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"` + DestroyTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"` // Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. State SecretVersion_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.secretmanager.v1.SecretVersion_State" json:"state,omitempty"` // The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. @@ -361,14 +361,14 @@ func (x *SecretVersion) GetName() string { return "" } -func (x *SecretVersion) GetCreateTime() *timestamppb.Timestamp { +func (x *SecretVersion) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *SecretVersion) GetDestroyTime() *timestamppb.Timestamp { +func (x *SecretVersion) GetDestroyTime() *timestamp.Timestamp { if x != nil { return x.DestroyTime } @@ -759,14 +759,14 @@ type Rotation struct { // years). // // [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set. - NextRotationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` + NextRotationTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"` // Input only. The Duration between rotation notifications. Must be in seconds // and at least 3600s (1h) and at most 3153600000s (100 years). // // If [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set, [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] must be set. // [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] will be advanced by this period when the service // automatically sends rotation notifications. - RotationPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` + RotationPeriod *duration.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"` } func (x *Rotation) Reset() { @@ -801,14 +801,14 @@ func (*Rotation) Descriptor() ([]byte, []int) { return file_google_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{7} } -func (x *Rotation) GetNextRotationTime() *timestamppb.Timestamp { +func (x *Rotation) GetNextRotationTime() *timestamp.Timestamp { if x != nil { return x.NextRotationTime } return nil } -func (x *Rotation) GetRotationPeriod() *durationpb.Duration { +func (x *Rotation) GetRotationPeriod() *duration.Duration { if x != nil { return x.RotationPeriod } @@ -1500,8 +1500,8 @@ var file_google_cloud_secretmanager_v1_resources_proto_goTypes = []interface{}{ (*ReplicationStatus_AutomaticStatus)(nil), // 15: google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus (*ReplicationStatus_UserManagedStatus)(nil), // 16: google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus (*ReplicationStatus_UserManagedStatus_ReplicaStatus)(nil), // 17: google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*duration.Duration)(nil), // 19: google.protobuf.Duration } var file_google_cloud_secretmanager_v1_resources_proto_depIdxs = []int32{ 3, // 0: google.cloud.secretmanager.v1.Secret.replication:type_name -> google.cloud.secretmanager.v1.Replication diff --git a/secretmanager/apiv1/secretmanagerpb/service.pb.go b/secretmanager/apiv1/secretmanagerpb/service.pb.go index 47d75bdb7882..cf5019b1f582 100644 --- a/secretmanager/apiv1/secretmanagerpb/service.pb.go +++ b/secretmanager/apiv1/secretmanagerpb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/secretmanager/v1/service.proto package secretmanagerpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -592,7 +592,7 @@ type UpdateSecretRequest struct { // Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values. Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` // Required. Specifies the fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSecretRequest) Reset() { @@ -634,7 +634,7 @@ func (x *UpdateSecretRequest) GetSecret() *Secret { return nil } -func (x *UpdateSecretRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSecretRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1384,11 +1384,11 @@ var file_google_cloud_secretmanager_v1_service_proto_goTypes = []interface{}{ (*Secret)(nil), // 15: google.cloud.secretmanager.v1.Secret (*SecretPayload)(nil), // 16: google.cloud.secretmanager.v1.SecretPayload (*SecretVersion)(nil), // 17: google.cloud.secretmanager.v1.SecretVersion - (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 18: google.protobuf.FieldMask (*v1.SetIamPolicyRequest)(nil), // 19: google.iam.v1.SetIamPolicyRequest (*v1.GetIamPolicyRequest)(nil), // 20: google.iam.v1.GetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 21: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 22: google.protobuf.Empty + (*empty.Empty)(nil), // 22: google.protobuf.Empty (*v1.Policy)(nil), // 23: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 24: google.iam.v1.TestIamPermissionsResponse } @@ -1669,7 +1669,7 @@ type SecretManagerServiceClient interface { // Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret]. UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error) // Deletes a [Secret][google.cloud.secretmanager.v1.Secret]. - DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret // data. ListSecretVersions(ctx context.Context, in *ListSecretVersionsRequest, opts ...grpc.CallOption) (*ListSecretVersionsResponse, error) @@ -1771,8 +1771,8 @@ func (c *secretManagerServiceClient) UpdateSecret(ctx context.Context, in *Updat return out, nil } -func (c *secretManagerServiceClient) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *secretManagerServiceClient) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.secretmanager.v1.SecretManagerService/DeleteSecret", in, out, opts...) if err != nil { return nil, err @@ -1875,7 +1875,7 @@ type SecretManagerServiceServer interface { // Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret]. UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error) // Deletes a [Secret][google.cloud.secretmanager.v1.Secret]. - DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) + DeleteSecret(context.Context, *DeleteSecretRequest) (*empty.Empty, error) // Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret // data. ListSecretVersions(context.Context, *ListSecretVersionsRequest) (*ListSecretVersionsResponse, error) @@ -1943,7 +1943,7 @@ func (*UnimplementedSecretManagerServiceServer) GetSecret(context.Context, *GetS func (*UnimplementedSecretManagerServiceServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSecret not implemented") } -func (*UnimplementedSecretManagerServiceServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) { +func (*UnimplementedSecretManagerServiceServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSecret not implemented") } func (*UnimplementedSecretManagerServiceServer) ListSecretVersions(context.Context, *ListSecretVersionsRequest) (*ListSecretVersionsResponse, error) { diff --git a/secretmanager/go.mod b/secretmanager/go.mod index 310a015bbf52..680363b35253 100644 --- a/secretmanager/go.mod +++ b/secretmanager/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go/iam v0.5.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/security/privateca/apiv1/privatecapb/resources.pb.go b/security/privateca/apiv1/privatecapb/resources.pb.go index e7d301a03250..1571ddb2c0a2 100644 --- a/security/privateca/apiv1/privatecapb/resources.pb.go +++ b/security/privateca/apiv1/privatecapb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/security/privateca/v1/resources.proto package privatecapb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" expr "google.golang.org/genproto/googleapis/type/expr" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -733,7 +733,7 @@ type CertificateAuthority struct { // Required. Immutable. The desired lifetime of the CA certificate. Used to create the // "not_before_time" and "not_after_time" fields inside an X.509 // certificate. - Lifetime *durationpb.Duration `protobuf:"bytes,4,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + Lifetime *duration.Duration `protobuf:"bytes,4,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key // is also used to sign the self-signed CA certificate. Otherwise, it @@ -767,15 +767,15 @@ type CertificateAuthority struct { // and CRLs. AccessUrls *CertificateAuthority_AccessUrls `protobuf:"bytes,12,opt,name=access_urls,json=accessUrls,proto3" json:"access_urls,omitempty"` // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if // it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state. - DeleteTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` + DeleteTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged, // if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Optional. Labels with user-defined metadata. Labels map[string]string `protobuf:"bytes,17,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -833,7 +833,7 @@ func (x *CertificateAuthority) GetConfig() *CertificateConfig { return nil } -func (x *CertificateAuthority) GetLifetime() *durationpb.Duration { +func (x *CertificateAuthority) GetLifetime() *duration.Duration { if x != nil { return x.Lifetime } @@ -896,28 +896,28 @@ func (x *CertificateAuthority) GetAccessUrls() *CertificateAuthority_AccessUrls return nil } -func (x *CertificateAuthority) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateAuthority) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateAuthority) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateAuthority) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *CertificateAuthority) GetDeleteTime() *timestamppb.Timestamp { +func (x *CertificateAuthority) GetDeleteTime() *timestamp.Timestamp { if x != nil { return x.DeleteTime } return nil } -func (x *CertificateAuthority) GetExpireTime() *timestamppb.Timestamp { +func (x *CertificateAuthority) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1049,9 +1049,9 @@ type CertificateRevocationList struct { // Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. State CertificateRevocationList_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.security.privateca.v1.CertificateRevocationList_State" json:"state,omitempty"` // Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is // committed whenever a new CRL is published. The format is an 8-character // hexadecimal string. @@ -1134,14 +1134,14 @@ func (x *CertificateRevocationList) GetState() CertificateRevocationList_State { return CertificateRevocationList_STATE_UNSPECIFIED } -func (x *CertificateRevocationList) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateRevocationList) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateRevocationList) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateRevocationList) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1186,7 +1186,7 @@ type Certificate struct { // "not_before_time" and "not_after_time" fields inside an X.509 // certificate. Note that the lifetime may be truncated if it would extend // past the life of any certificate authority in the issuing chain. - Lifetime *durationpb.Duration `protobuf:"bytes,5,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + Lifetime *duration.Duration `protobuf:"bytes,5,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this // certificate, in the format // `projects/*/locations/*/certificateTemplates/*`. @@ -1208,9 +1208,9 @@ type Certificate struct { // in issuer-to-root order according to RFC 5246. PemCertificateChain []string `protobuf:"bytes,11,rep,name=pem_certificate_chain,json=pemCertificateChain,proto3" json:"pem_certificate_chain,omitempty"` // Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Labels with user-defined metadata. Labels map[string]string `protobuf:"bytes,14,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -1282,7 +1282,7 @@ func (x *Certificate) GetIssuerCertificateAuthority() string { return "" } -func (x *Certificate) GetLifetime() *durationpb.Duration { +func (x *Certificate) GetLifetime() *duration.Duration { if x != nil { return x.Lifetime } @@ -1331,14 +1331,14 @@ func (x *Certificate) GetPemCertificateChain() []string { return nil } -func (x *Certificate) GetCreateTime() *timestamppb.Timestamp { +func (x *Certificate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Certificate) GetUpdateTime() *timestamppb.Timestamp { +func (x *Certificate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1407,9 +1407,9 @@ type CertificateTemplate struct { // Optional. A human-readable description of scenarios this template is intended for. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Labels with user-defined metadata. Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -1481,14 +1481,14 @@ func (x *CertificateTemplate) GetDescription() string { return "" } -func (x *CertificateTemplate) GetCreateTime() *timestamppb.Timestamp { +func (x *CertificateTemplate) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CertificateTemplate) GetUpdateTime() *timestamppb.Timestamp { +func (x *CertificateTemplate) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2698,7 +2698,7 @@ type CaPool_IssuancePolicy struct { // that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a // [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested maximum_lifetime, the effective lifetime will // be explicitly truncated to match it. - MaximumLifetime *durationpb.Duration `protobuf:"bytes,2,opt,name=maximum_lifetime,json=maximumLifetime,proto3" json:"maximum_lifetime,omitempty"` + MaximumLifetime *duration.Duration `protobuf:"bytes,2,opt,name=maximum_lifetime,json=maximumLifetime,proto3" json:"maximum_lifetime,omitempty"` // Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be // used to issue [Certificates][google.cloud.security.privateca.v1.Certificate]. AllowedIssuanceModes *CaPool_IssuancePolicy_IssuanceModes `protobuf:"bytes,3,opt,name=allowed_issuance_modes,json=allowedIssuanceModes,proto3" json:"allowed_issuance_modes,omitempty"` @@ -2767,7 +2767,7 @@ func (x *CaPool_IssuancePolicy) GetAllowedKeyTypes() []*CaPool_IssuancePolicy_Al return nil } -func (x *CaPool_IssuancePolicy) GetMaximumLifetime() *durationpb.Duration { +func (x *CaPool_IssuancePolicy) GetMaximumLifetime() *duration.Duration { if x != nil { return x.MaximumLifetime } @@ -3144,7 +3144,7 @@ type Certificate_RevocationDetails struct { // Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked. RevocationState RevocationReason `protobuf:"varint,1,opt,name=revocation_state,json=revocationState,proto3,enum=google.cloud.security.privateca.v1.RevocationReason" json:"revocation_state,omitempty"` // The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked. - RevocationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=revocation_time,json=revocationTime,proto3" json:"revocation_time,omitempty"` + RevocationTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=revocation_time,json=revocationTime,proto3" json:"revocation_time,omitempty"` } func (x *Certificate_RevocationDetails) Reset() { @@ -3186,7 +3186,7 @@ func (x *Certificate_RevocationDetails) GetRevocationState() RevocationReason { return RevocationReason_REVOCATION_REASON_UNSPECIFIED } -func (x *Certificate_RevocationDetails) GetRevocationTime() *timestamppb.Timestamp { +func (x *Certificate_RevocationDetails) GetRevocationTime() *timestamp.Timestamp { if x != nil { return x.RevocationTime } @@ -3382,14 +3382,14 @@ type CertificateDescription_SubjectDescription struct { // The serial number encoded in lowercase hexadecimal. HexSerialNumber string `protobuf:"bytes,3,opt,name=hex_serial_number,json=hexSerialNumber,proto3" json:"hex_serial_number,omitempty"` // For convenience, the actual lifetime of an issued certificate. - Lifetime *durationpb.Duration `protobuf:"bytes,4,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + Lifetime *duration.Duration `protobuf:"bytes,4,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // The time at which the certificate becomes valid. - NotBeforeTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=not_before_time,json=notBeforeTime,proto3" json:"not_before_time,omitempty"` + NotBeforeTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=not_before_time,json=notBeforeTime,proto3" json:"not_before_time,omitempty"` // The time after which the certificate is expired. // Per RFC 5280, the validity period for a certificate is the period of time // from not_before_time through not_after_time, inclusive. // Corresponds to 'not_before_time' + 'lifetime' - 1 second. - NotAfterTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=not_after_time,json=notAfterTime,proto3" json:"not_after_time,omitempty"` + NotAfterTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=not_after_time,json=notAfterTime,proto3" json:"not_after_time,omitempty"` } func (x *CertificateDescription_SubjectDescription) Reset() { @@ -3445,21 +3445,21 @@ func (x *CertificateDescription_SubjectDescription) GetHexSerialNumber() string return "" } -func (x *CertificateDescription_SubjectDescription) GetLifetime() *durationpb.Duration { +func (x *CertificateDescription_SubjectDescription) GetLifetime() *duration.Duration { if x != nil { return x.Lifetime } return nil } -func (x *CertificateDescription_SubjectDescription) GetNotBeforeTime() *timestamppb.Timestamp { +func (x *CertificateDescription_SubjectDescription) GetNotBeforeTime() *timestamp.Timestamp { if x != nil { return x.NotBeforeTime } return nil } -func (x *CertificateDescription_SubjectDescription) GetNotAfterTime() *timestamppb.Timestamp { +func (x *CertificateDescription_SubjectDescription) GetNotAfterTime() *timestamp.Timestamp { if x != nil { return x.NotAfterTime } @@ -4769,8 +4769,8 @@ var file_google_cloud_security_privateca_v1_resources_proto_goTypes = []interfac (*CertificateDescription_CertificateFingerprint)(nil), // 47: google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint (*KeyUsage_KeyUsageOptions)(nil), // 48: google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions (*KeyUsage_ExtendedKeyUsageOptions)(nil), // 49: google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - (*durationpb.Duration)(nil), // 50: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 51: google.protobuf.Timestamp + (*duration.Duration)(nil), // 50: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 51: google.protobuf.Timestamp (*expr.Expr)(nil), // 52: google.type.Expr } var file_google_cloud_security_privateca_v1_resources_proto_depIdxs = []int32{ diff --git a/security/privateca/apiv1/privatecapb/service.pb.go b/security/privateca/apiv1/privatecapb/service.pb.go index 2aa91a3553c0..68fbed22bc20 100644 --- a/security/privateca/apiv1/privatecapb/service.pb.go +++ b/security/privateca/apiv1/privatecapb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/security/privateca/v1/service.proto package privatecapb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -472,7 +472,7 @@ type UpdateCertificateRequest struct { // Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values. Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // Required. A list of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. An 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. The server will guarantee that for at least 60 @@ -528,7 +528,7 @@ func (x *UpdateCertificateRequest) GetCertificate() *Certificate { return nil } -func (x *UpdateCertificateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1360,7 +1360,7 @@ type UpdateCertificateAuthorityRequest struct { // Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values. CertificateAuthority *CertificateAuthority `protobuf:"bytes,1,opt,name=certificate_authority,json=certificateAuthority,proto3" json:"certificate_authority,omitempty"` // Required. A list of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. An 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. The server will guarantee that for at least 60 @@ -1416,7 +1416,7 @@ func (x *UpdateCertificateAuthorityRequest) GetCertificateAuthority() *Certifica return nil } -func (x *UpdateCertificateAuthorityRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateAuthorityRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1531,7 +1531,7 @@ type UpdateCaPoolRequest struct { // Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values. CaPool *CaPool `protobuf:"bytes,1,opt,name=ca_pool,json=caPool,proto3" json:"ca_pool,omitempty"` // Required. A list of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. An 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. The server will guarantee that for at least 60 @@ -1587,7 +1587,7 @@ func (x *UpdateCaPoolRequest) GetCaPool() *CaPool { return nil } -func (x *UpdateCaPoolRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCaPoolRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2235,7 +2235,7 @@ type UpdateCertificateRevocationListRequest struct { // Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values. CertificateRevocationList *CertificateRevocationList `protobuf:"bytes,1,opt,name=certificate_revocation_list,json=certificateRevocationList,proto3" json:"certificate_revocation_list,omitempty"` // Required. A list of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. An 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. The server will guarantee that for at least 60 @@ -2291,7 +2291,7 @@ func (x *UpdateCertificateRevocationListRequest) GetCertificateRevocationList() return nil } -func (x *UpdateCertificateRevocationListRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateRevocationListRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2694,7 +2694,7 @@ type UpdateCertificateTemplateRequest struct { // Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values. CertificateTemplate *CertificateTemplate `protobuf:"bytes,1,opt,name=certificate_template,json=certificateTemplate,proto3" json:"certificate_template,omitempty"` // Required. A list of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Optional. An 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. The server will guarantee that for at least 60 @@ -2750,7 +2750,7 @@ func (x *UpdateCertificateTemplateRequest) GetCertificateTemplate() *Certificate return nil } -func (x *UpdateCertificateTemplateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCertificateTemplateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2771,9 +2771,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -2821,14 +2821,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_security_privateca_v1_service_proto_rawDescGZIP(), []int{36} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3965,13 +3965,13 @@ var file_google_cloud_security_privateca_v1_service_proto_goTypes = []interface{ (*FetchCaCertsResponse_CertChain)(nil), // 37: google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain (*Certificate)(nil), // 38: google.cloud.security.privateca.v1.Certificate (RevocationReason)(0), // 39: google.cloud.security.privateca.v1.RevocationReason - (*fieldmaskpb.FieldMask)(nil), // 40: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 40: google.protobuf.FieldMask (*SubordinateConfig)(nil), // 41: google.cloud.security.privateca.v1.SubordinateConfig (*CertificateAuthority)(nil), // 42: google.cloud.security.privateca.v1.CertificateAuthority (*CaPool)(nil), // 43: google.cloud.security.privateca.v1.CaPool (*CertificateRevocationList)(nil), // 44: google.cloud.security.privateca.v1.CertificateRevocationList (*CertificateTemplate)(nil), // 45: google.cloud.security.privateca.v1.CertificateTemplate - (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 46: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 47: google.longrunning.Operation } var file_google_cloud_security_privateca_v1_service_proto_depIdxs = []int32{ diff --git a/securitycenter/apiv1/securitycenterpb/access.pb.go b/securitycenter/apiv1/securitycenterpb/access.pb.go index 3761f4823c36..680d43d98b44 100644 --- a/securitycenter/apiv1/securitycenterpb/access.pb.go +++ b/securitycenter/apiv1/securitycenterpb/access.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/access.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/asset.pb.go b/securitycenter/apiv1/securitycenterpb/asset.pb.go index 578005046bfa..641d7a3ae334 100644 --- a/securitycenter/apiv1/securitycenterpb/asset.pb.go +++ b/securitycenter/apiv1/securitycenterpb/asset.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/asset.proto package securitycenterpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -60,14 +60,14 @@ type Asset struct { SecurityCenterProperties *Asset_SecurityCenterProperties `protobuf:"bytes,2,opt,name=security_center_properties,json=securityCenterProperties,proto3" json:"security_center_properties,omitempty"` // Resource managed properties. These properties are managed and defined by // the Google Cloud resource and cannot be modified by the user. - ResourceProperties map[string]*structpb.Value `protobuf:"bytes,7,rep,name=resource_properties,json=resourceProperties,proto3" json:"resource_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResourceProperties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=resource_properties,json=resourceProperties,proto3" json:"resource_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // User specified security marks. These marks are entirely managed by the user // and come from the SecurityMarks resource that belongs to the asset. SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"` // The time at which the asset was created in Security Command Center. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time at which the asset was last updated or added in Cloud SCC. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Cloud IAM Policy information associated with the Google Cloud resource // described by the Security Command Center asset. This information is managed // and defined by the Google Cloud resource and cannot be modified by the @@ -127,7 +127,7 @@ func (x *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties { return nil } -func (x *Asset) GetResourceProperties() map[string]*structpb.Value { +func (x *Asset) GetResourceProperties() map[string]*_struct.Value { if x != nil { return x.ResourceProperties } @@ -141,14 +141,14 @@ func (x *Asset) GetSecurityMarks() *SecurityMarks { return nil } -func (x *Asset) GetCreateTime() *timestamppb.Timestamp { +func (x *Asset) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Asset) GetUpdateTime() *timestamppb.Timestamp { +func (x *Asset) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -495,9 +495,9 @@ var file_google_cloud_securitycenter_v1_asset_proto_goTypes = []interface{}{ (*Asset_IamPolicy)(nil), // 2: google.cloud.securitycenter.v1.Asset.IamPolicy nil, // 3: google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry (*SecurityMarks)(nil), // 4: google.cloud.securitycenter.v1.SecurityMarks - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp (*Folder)(nil), // 6: google.cloud.securitycenter.v1.Folder - (*structpb.Value)(nil), // 7: google.protobuf.Value + (*_struct.Value)(nil), // 7: google.protobuf.Value } var file_google_cloud_securitycenter_v1_asset_proto_depIdxs = []int32{ 1, // 0: google.cloud.securitycenter.v1.Asset.security_center_properties:type_name -> google.cloud.securitycenter.v1.Asset.SecurityCenterProperties diff --git a/securitycenter/apiv1/securitycenterpb/bigquery_export.pb.go b/securitycenter/apiv1/securitycenterpb/bigquery_export.pb.go index 6f0abe215780..bbd7295d5774 100644 --- a/securitycenter/apiv1/securitycenterpb/bigquery_export.pb.go +++ b/securitycenter/apiv1/securitycenterpb/bigquery_export.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/bigquery_export.proto package securitycenterpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -83,11 +83,11 @@ type BigQueryExport struct { // Output only. The time at which the big query export was created. // This field is set by the server and will be ignored if provided on export // on creation. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time at which the big export was updated. // This field is set by the server and will be ignored if provided on export // creation or update. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Email address of the user who last edited the big query export. // This field is set by the server and will be ignored if provided on export // creation or update. @@ -157,14 +157,14 @@ func (x *BigQueryExport) GetDataset() string { return "" } -func (x *BigQueryExport) GetCreateTime() *timestamppb.Timestamp { +func (x *BigQueryExport) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *BigQueryExport) GetUpdateTime() *timestamppb.Timestamp { +func (x *BigQueryExport) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -265,8 +265,8 @@ func file_google_cloud_securitycenter_v1_bigquery_export_proto_rawDescGZIP() []b var file_google_cloud_securitycenter_v1_bigquery_export_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_securitycenter_v1_bigquery_export_proto_goTypes = []interface{}{ - (*BigQueryExport)(nil), // 0: google.cloud.securitycenter.v1.BigQueryExport - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*BigQueryExport)(nil), // 0: google.cloud.securitycenter.v1.BigQueryExport + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_securitycenter_v1_bigquery_export_proto_depIdxs = []int32{ 1, // 0: google.cloud.securitycenter.v1.BigQueryExport.create_time:type_name -> google.protobuf.Timestamp diff --git a/securitycenter/apiv1/securitycenterpb/compliance.pb.go b/securitycenter/apiv1/securitycenterpb/compliance.pb.go index 155379e6542f..2c4e1fc2c52d 100644 --- a/securitycenter/apiv1/securitycenterpb/compliance.pb.go +++ b/securitycenter/apiv1/securitycenterpb/compliance.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/compliance.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/connection.pb.go b/securitycenter/apiv1/securitycenterpb/connection.pb.go index 089fe27af45c..b48f82a28eea 100644 --- a/securitycenter/apiv1/securitycenterpb/connection.pb.go +++ b/securitycenter/apiv1/securitycenterpb/connection.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/connection.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/contact_details.pb.go b/securitycenter/apiv1/securitycenterpb/contact_details.pb.go index 6cf9740c8c9b..f6bfa2dfc32a 100644 --- a/securitycenter/apiv1/securitycenterpb/contact_details.pb.go +++ b/securitycenter/apiv1/securitycenterpb/contact_details.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/contact_details.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/container.pb.go b/securitycenter/apiv1/securitycenterpb/container.pb.go index 357518a5f449..36e64f9c5e57 100644 --- a/securitycenter/apiv1/securitycenterpb/container.pb.go +++ b/securitycenter/apiv1/securitycenterpb/container.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/container.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/database.pb.go b/securitycenter/apiv1/securitycenterpb/database.pb.go index f640e0c764fe..e69e822f1ddf 100644 --- a/securitycenter/apiv1/securitycenterpb/database.pb.go +++ b/securitycenter/apiv1/securitycenterpb/database.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/database.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/exfiltration.pb.go b/securitycenter/apiv1/securitycenterpb/exfiltration.pb.go index 5f55250735b6..f246c10f18a4 100644 --- a/securitycenter/apiv1/securitycenterpb/exfiltration.pb.go +++ b/securitycenter/apiv1/securitycenterpb/exfiltration.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/exfiltration.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/external_system.pb.go b/securitycenter/apiv1/securitycenterpb/external_system.pb.go index aee1d95b19d1..1f2b1fe187c6 100644 --- a/securitycenter/apiv1/securitycenterpb/external_system.pb.go +++ b/securitycenter/apiv1/securitycenterpb/external_system.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/external_system.proto package securitycenterpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -60,7 +60,7 @@ type ExternalSystem struct { Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // The most recent time when the corresponding finding's ticket/tracker was // updated in the external system. - ExternalSystemUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=external_system_update_time,json=externalSystemUpdateTime,proto3" json:"external_system_update_time,omitempty"` + ExternalSystemUpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=external_system_update_time,json=externalSystemUpdateTime,proto3" json:"external_system_update_time,omitempty"` } func (x *ExternalSystem) Reset() { @@ -123,7 +123,7 @@ func (x *ExternalSystem) GetStatus() string { return "" } -func (x *ExternalSystem) GetExternalSystemUpdateTime() *timestamppb.Timestamp { +func (x *ExternalSystem) GetExternalSystemUpdateTime() *timestamp.Timestamp { if x != nil { return x.ExternalSystemUpdateTime } @@ -208,8 +208,8 @@ func file_google_cloud_securitycenter_v1_external_system_proto_rawDescGZIP() []b var file_google_cloud_securitycenter_v1_external_system_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_securitycenter_v1_external_system_proto_goTypes = []interface{}{ - (*ExternalSystem)(nil), // 0: google.cloud.securitycenter.v1.ExternalSystem - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*ExternalSystem)(nil), // 0: google.cloud.securitycenter.v1.ExternalSystem + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_securitycenter_v1_external_system_proto_depIdxs = []int32{ 1, // 0: google.cloud.securitycenter.v1.ExternalSystem.external_system_update_time:type_name -> google.protobuf.Timestamp diff --git a/securitycenter/apiv1/securitycenterpb/file.pb.go b/securitycenter/apiv1/securitycenterpb/file.pb.go index ed2ab98aebd4..e4c4c231fe8e 100644 --- a/securitycenter/apiv1/securitycenterpb/file.pb.go +++ b/securitycenter/apiv1/securitycenterpb/file.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/file.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/finding.pb.go b/securitycenter/apiv1/securitycenterpb/finding.pb.go index 4856b22eda77..7fcb2f745f41 100644 --- a/securitycenter/apiv1/securitycenterpb/finding.pb.go +++ b/securitycenter/apiv1/securitycenterpb/finding.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/finding.proto package securitycenterpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -362,7 +362,7 @@ type Finding struct { // that writes the finding. The key names in the source_properties map must be // between 1 and 255 characters, and must start with a letter and contain // alphanumeric characters or underscores only. - SourceProperties map[string]*structpb.Value `protobuf:"bytes,7,rep,name=source_properties,json=sourceProperties,proto3" json:"source_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SourceProperties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=source_properties,json=sourceProperties,proto3" json:"source_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. User specified security marks. These marks are entirely // managed by the user and come from the SecurityMarks resource that belongs // to the finding. @@ -374,9 +374,9 @@ type Finding struct { // accuracy is determined by the detector. If the finding is later resolved, // then this time reflects when the finding was resolved. This must not // be set to a value greater than the current timestamp. - EventTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + EventTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // The time at which the finding was created in Security Command Center. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The severity of the finding. This field is managed by the source that // writes the finding. Severity Finding_Severity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.cloud.securitycenter.v1.Finding_Severity" json:"severity,omitempty"` @@ -404,7 +404,7 @@ type Finding struct { // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `protobuf:"bytes,20,opt,name=vulnerability,proto3" json:"vulnerability,omitempty"` // Output only. The most recent time this finding was muted or unmuted. - MuteUpdateTime *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=mute_update_time,json=muteUpdateTime,proto3" json:"mute_update_time,omitempty"` + MuteUpdateTime *timestamp.Timestamp `protobuf:"bytes,21,opt,name=mute_update_time,json=muteUpdateTime,proto3" json:"mute_update_time,omitempty"` // Output only. Third party SIEM/SOAR fields within SCC, contains external system // information and external system finding fields. ExternalSystems map[string]*ExternalSystem `protobuf:"bytes,22,rep,name=external_systems,json=externalSystems,proto3" json:"external_systems,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -538,7 +538,7 @@ func (x *Finding) GetExternalUri() string { return "" } -func (x *Finding) GetSourceProperties() map[string]*structpb.Value { +func (x *Finding) GetSourceProperties() map[string]*_struct.Value { if x != nil { return x.SourceProperties } @@ -552,14 +552,14 @@ func (x *Finding) GetSecurityMarks() *SecurityMarks { return nil } -func (x *Finding) GetEventTime() *timestamppb.Timestamp { +func (x *Finding) GetEventTime() *timestamp.Timestamp { if x != nil { return x.EventTime } return nil } -func (x *Finding) GetCreateTime() *timestamppb.Timestamp { +func (x *Finding) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -608,7 +608,7 @@ func (x *Finding) GetVulnerability() *Vulnerability { return nil } -func (x *Finding) GetMuteUpdateTime() *timestamppb.Timestamp { +func (x *Finding) GetMuteUpdateTime() *timestamp.Timestamp { if x != nil { return x.MuteUpdateTime } @@ -1011,31 +1011,31 @@ func file_google_cloud_securitycenter_v1_finding_proto_rawDescGZIP() []byte { var file_google_cloud_securitycenter_v1_finding_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_google_cloud_securitycenter_v1_finding_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_google_cloud_securitycenter_v1_finding_proto_goTypes = []interface{}{ - (Finding_State)(0), // 0: google.cloud.securitycenter.v1.Finding.State - (Finding_Severity)(0), // 1: google.cloud.securitycenter.v1.Finding.Severity - (Finding_Mute)(0), // 2: google.cloud.securitycenter.v1.Finding.Mute - (Finding_FindingClass)(0), // 3: google.cloud.securitycenter.v1.Finding.FindingClass - (*Finding)(nil), // 4: google.cloud.securitycenter.v1.Finding - nil, // 5: google.cloud.securitycenter.v1.Finding.SourcePropertiesEntry - nil, // 6: google.cloud.securitycenter.v1.Finding.ExternalSystemsEntry - nil, // 7: google.cloud.securitycenter.v1.Finding.ContactsEntry - (*SecurityMarks)(nil), // 8: google.cloud.securitycenter.v1.SecurityMarks - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*Indicator)(nil), // 10: google.cloud.securitycenter.v1.Indicator - (*Vulnerability)(nil), // 11: google.cloud.securitycenter.v1.Vulnerability - (*MitreAttack)(nil), // 12: google.cloud.securitycenter.v1.MitreAttack - (*Access)(nil), // 13: google.cloud.securitycenter.v1.Access - (*Connection)(nil), // 14: google.cloud.securitycenter.v1.Connection - (*Process)(nil), // 15: google.cloud.securitycenter.v1.Process - (*Compliance)(nil), // 16: google.cloud.securitycenter.v1.Compliance - (*Exfiltration)(nil), // 17: google.cloud.securitycenter.v1.Exfiltration - (*IamBinding)(nil), // 18: google.cloud.securitycenter.v1.IamBinding - (*Container)(nil), // 19: google.cloud.securitycenter.v1.Container - (*Kubernetes)(nil), // 20: google.cloud.securitycenter.v1.Kubernetes - (*Database)(nil), // 21: google.cloud.securitycenter.v1.Database - (*structpb.Value)(nil), // 22: google.protobuf.Value - (*ExternalSystem)(nil), // 23: google.cloud.securitycenter.v1.ExternalSystem - (*ContactDetails)(nil), // 24: google.cloud.securitycenter.v1.ContactDetails + (Finding_State)(0), // 0: google.cloud.securitycenter.v1.Finding.State + (Finding_Severity)(0), // 1: google.cloud.securitycenter.v1.Finding.Severity + (Finding_Mute)(0), // 2: google.cloud.securitycenter.v1.Finding.Mute + (Finding_FindingClass)(0), // 3: google.cloud.securitycenter.v1.Finding.FindingClass + (*Finding)(nil), // 4: google.cloud.securitycenter.v1.Finding + nil, // 5: google.cloud.securitycenter.v1.Finding.SourcePropertiesEntry + nil, // 6: google.cloud.securitycenter.v1.Finding.ExternalSystemsEntry + nil, // 7: google.cloud.securitycenter.v1.Finding.ContactsEntry + (*SecurityMarks)(nil), // 8: google.cloud.securitycenter.v1.SecurityMarks + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*Indicator)(nil), // 10: google.cloud.securitycenter.v1.Indicator + (*Vulnerability)(nil), // 11: google.cloud.securitycenter.v1.Vulnerability + (*MitreAttack)(nil), // 12: google.cloud.securitycenter.v1.MitreAttack + (*Access)(nil), // 13: google.cloud.securitycenter.v1.Access + (*Connection)(nil), // 14: google.cloud.securitycenter.v1.Connection + (*Process)(nil), // 15: google.cloud.securitycenter.v1.Process + (*Compliance)(nil), // 16: google.cloud.securitycenter.v1.Compliance + (*Exfiltration)(nil), // 17: google.cloud.securitycenter.v1.Exfiltration + (*IamBinding)(nil), // 18: google.cloud.securitycenter.v1.IamBinding + (*Container)(nil), // 19: google.cloud.securitycenter.v1.Container + (*Kubernetes)(nil), // 20: google.cloud.securitycenter.v1.Kubernetes + (*Database)(nil), // 21: google.cloud.securitycenter.v1.Database + (*_struct.Value)(nil), // 22: google.protobuf.Value + (*ExternalSystem)(nil), // 23: google.cloud.securitycenter.v1.ExternalSystem + (*ContactDetails)(nil), // 24: google.cloud.securitycenter.v1.ContactDetails } var file_google_cloud_securitycenter_v1_finding_proto_depIdxs = []int32{ 0, // 0: google.cloud.securitycenter.v1.Finding.state:type_name -> google.cloud.securitycenter.v1.Finding.State diff --git a/securitycenter/apiv1/securitycenterpb/folder.pb.go b/securitycenter/apiv1/securitycenterpb/folder.pb.go index 2417a374fa4f..f839831c9752 100644 --- a/securitycenter/apiv1/securitycenterpb/folder.pb.go +++ b/securitycenter/apiv1/securitycenterpb/folder.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/folder.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/iam_binding.pb.go b/securitycenter/apiv1/securitycenterpb/iam_binding.pb.go index 44502ba5cb08..53adbe1ffeb0 100644 --- a/securitycenter/apiv1/securitycenterpb/iam_binding.pb.go +++ b/securitycenter/apiv1/securitycenterpb/iam_binding.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/iam_binding.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/indicator.pb.go b/securitycenter/apiv1/securitycenterpb/indicator.pb.go index fec80b7e8e84..3c2a133fb1a8 100644 --- a/securitycenter/apiv1/securitycenterpb/indicator.pb.go +++ b/securitycenter/apiv1/securitycenterpb/indicator.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/indicator.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/kubernetes.pb.go b/securitycenter/apiv1/securitycenterpb/kubernetes.pb.go index 4615187e72f6..a67bd897c6ac 100644 --- a/securitycenter/apiv1/securitycenterpb/kubernetes.pb.go +++ b/securitycenter/apiv1/securitycenterpb/kubernetes.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/kubernetes.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/label.pb.go b/securitycenter/apiv1/securitycenterpb/label.pb.go index 3c44b266f8a3..7a19a7b7677b 100644 --- a/securitycenter/apiv1/securitycenterpb/label.pb.go +++ b/securitycenter/apiv1/securitycenterpb/label.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/label.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/mitre_attack.pb.go b/securitycenter/apiv1/securitycenterpb/mitre_attack.pb.go index 05bed9e84f53..828c71efa511 100644 --- a/securitycenter/apiv1/securitycenterpb/mitre_attack.pb.go +++ b/securitycenter/apiv1/securitycenterpb/mitre_attack.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/mitre_attack.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/mute_config.pb.go b/securitycenter/apiv1/securitycenterpb/mute_config.pb.go index d96d01a20933..a8d1b509a68e 100644 --- a/securitycenter/apiv1/securitycenterpb/mute_config.pb.go +++ b/securitycenter/apiv1/securitycenterpb/mute_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/mute_config.proto package securitycenterpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -79,11 +79,11 @@ type MuteConfig struct { // Output only. The time at which the mute config was created. // This field is set by the server and will be ignored if provided on config // creation. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The most recent time at which the mute config was updated. // This field is set by the server and will be ignored if provided on config // creation or update. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Email address of the user who last edited the mute config. // This field is set by the server and will be ignored if provided on config // creation or update. @@ -151,14 +151,14 @@ func (x *MuteConfig) GetFilter() string { return "" } -func (x *MuteConfig) GetCreateTime() *timestamppb.Timestamp { +func (x *MuteConfig) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MuteConfig) GetUpdateTime() *timestamppb.Timestamp { +func (x *MuteConfig) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -250,8 +250,8 @@ func file_google_cloud_securitycenter_v1_mute_config_proto_rawDescGZIP() []byte var file_google_cloud_securitycenter_v1_mute_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_securitycenter_v1_mute_config_proto_goTypes = []interface{}{ - (*MuteConfig)(nil), // 0: google.cloud.securitycenter.v1.MuteConfig - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*MuteConfig)(nil), // 0: google.cloud.securitycenter.v1.MuteConfig + (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_google_cloud_securitycenter_v1_mute_config_proto_depIdxs = []int32{ 1, // 0: google.cloud.securitycenter.v1.MuteConfig.create_time:type_name -> google.protobuf.Timestamp diff --git a/securitycenter/apiv1/securitycenterpb/notification_config.pb.go b/securitycenter/apiv1/securitycenterpb/notification_config.pb.go index 28b9edca2312..2b177f477d77 100644 --- a/securitycenter/apiv1/securitycenterpb/notification_config.pb.go +++ b/securitycenter/apiv1/securitycenterpb/notification_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/notification_config.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/notification_message.pb.go b/securitycenter/apiv1/securitycenterpb/notification_message.pb.go index 27a2930c32c9..da1ba81a3c94 100644 --- a/securitycenter/apiv1/securitycenterpb/notification_message.pb.go +++ b/securitycenter/apiv1/securitycenterpb/notification_message.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/notification_message.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/organization_settings.pb.go b/securitycenter/apiv1/securitycenterpb/organization_settings.pb.go index 95b8c1d1f68b..b2b9711858ca 100644 --- a/securitycenter/apiv1/securitycenterpb/organization_settings.pb.go +++ b/securitycenter/apiv1/securitycenterpb/organization_settings.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/organization_settings.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/process.pb.go b/securitycenter/apiv1/securitycenterpb/process.pb.go index 2300cb2d2ffd..95c4a301b08b 100644 --- a/securitycenter/apiv1/securitycenterpb/process.pb.go +++ b/securitycenter/apiv1/securitycenterpb/process.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/process.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/resource.pb.go b/securitycenter/apiv1/securitycenterpb/resource.pb.go index 0f7a8345318a..4dac8a6932b0 100644 --- a/securitycenter/apiv1/securitycenterpb/resource.pb.go +++ b/securitycenter/apiv1/securitycenterpb/resource.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/resource.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/run_asset_discovery_response.pb.go b/securitycenter/apiv1/securitycenterpb/run_asset_discovery_response.pb.go index abd382662a7a..090ce48601ba 100644 --- a/securitycenter/apiv1/securitycenterpb/run_asset_discovery_response.pb.go +++ b/securitycenter/apiv1/securitycenterpb/run_asset_discovery_response.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto package securitycenterpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -103,7 +103,7 @@ type RunAssetDiscoveryResponse struct { // The state of an asset discovery run. State RunAssetDiscoveryResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.securitycenter.v1.RunAssetDiscoveryResponse_State" json:"state,omitempty"` // The duration between asset discovery run start and end - Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *RunAssetDiscoveryResponse) Reset() { @@ -145,7 +145,7 @@ func (x *RunAssetDiscoveryResponse) GetState() RunAssetDiscoveryResponse_State { return RunAssetDiscoveryResponse_STATE_UNSPECIFIED } -func (x *RunAssetDiscoveryResponse) GetDuration() *durationpb.Duration { +func (x *RunAssetDiscoveryResponse) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -213,7 +213,7 @@ var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_msgTy var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_goTypes = []interface{}{ (RunAssetDiscoveryResponse_State)(0), // 0: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State (*RunAssetDiscoveryResponse)(nil), // 1: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse - (*durationpb.Duration)(nil), // 2: google.protobuf.Duration + (*duration.Duration)(nil), // 2: google.protobuf.Duration } var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_depIdxs = []int32{ 0, // 0: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.state:type_name -> google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State diff --git a/securitycenter/apiv1/securitycenterpb/security_marks.pb.go b/securitycenter/apiv1/securitycenterpb/security_marks.pb.go index f9d08de8e107..6d6be9a596da 100644 --- a/securitycenter/apiv1/securitycenterpb/security_marks.pb.go +++ b/securitycenter/apiv1/securitycenterpb/security_marks.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/security_marks.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/securitycenter_service.pb.go b/securitycenter/apiv1/securitycenterpb/securitycenter_service.pb.go index a133e6db6ea2..c041ac2f08bd 100644 --- a/securitycenter/apiv1/securitycenterpb/securitycenter_service.pb.go +++ b/securitycenter/apiv1/securitycenterpb/securitycenter_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/securitycenter_service.proto package securitycenterpb @@ -25,19 +25,19 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1068,12 +1068,12 @@ type GroupAssetsRequest struct { // // If this field is set then `state_change` must be a specified field in // `group_by`. - CompareDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` + CompareDuration *duration.Duration `protobuf:"bytes,4,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // Time used as a reference point when filtering assets. The filter is limited // to assets existing at the supplied time and their values are those at that // specific time. Absence of this field will default to the API's version of // NOW. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // The value returned by the last `GroupAssetsResponse`; indicates // that this is a continuation of a prior `GroupAssets` call, and that the // system should return the next page of data. @@ -1136,14 +1136,14 @@ func (x *GroupAssetsRequest) GetGroupBy() string { return "" } -func (x *GroupAssetsRequest) GetCompareDuration() *durationpb.Duration { +func (x *GroupAssetsRequest) GetCompareDuration() *duration.Duration { if x != nil { return x.CompareDuration } return nil } -func (x *GroupAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *GroupAssetsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -1175,7 +1175,7 @@ type GroupAssetsResponse struct { // of times those specific property/values appear. GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"` // Time used for executing the groupBy request. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1222,7 +1222,7 @@ func (x *GroupAssetsResponse) GetGroupByResults() []*GroupResult { return nil } -func (x *GroupAssetsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *GroupAssetsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -1337,7 +1337,7 @@ type GroupFindingsRequest struct { // limited to findings existing at the supplied time and their values are // those at that specific time. Absence of this field will default to the // API's version of NOW. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the GroupResult's "state_change" attribute is // updated to indicate whether the finding had its state changed, the // finding's state remained unchanged, or if the finding was added during the @@ -1370,7 +1370,7 @@ type GroupFindingsRequest struct { // // If this field is set then `state_change` must be a specified field in // `group_by`. - CompareDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` + CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // The value returned by the last `GroupFindingsResponse`; indicates // that this is a continuation of a prior `GroupFindings` call, and // that the system should return the next page of data. @@ -1433,14 +1433,14 @@ func (x *GroupFindingsRequest) GetGroupBy() string { return "" } -func (x *GroupFindingsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *GroupFindingsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } return nil } -func (x *GroupFindingsRequest) GetCompareDuration() *durationpb.Duration { +func (x *GroupFindingsRequest) GetCompareDuration() *duration.Duration { if x != nil { return x.CompareDuration } @@ -1472,7 +1472,7 @@ type GroupFindingsResponse struct { // of times those specific property/values appear. GroupByResults []*GroupResult `protobuf:"bytes,1,rep,name=group_by_results,json=groupByResults,proto3" json:"group_by_results,omitempty"` // Time used for executing the groupBy request. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1519,7 +1519,7 @@ func (x *GroupFindingsResponse) GetGroupByResults() []*GroupResult { return nil } -func (x *GroupFindingsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *GroupFindingsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -1547,7 +1547,7 @@ type GroupResult struct { unknownFields protoimpl.UnknownFields // Properties matching the groupBy fields in the request. - Properties map[string]*structpb.Value `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Properties map[string]*_struct.Value `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Total count of resources for the given properties. Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` } @@ -1584,7 +1584,7 @@ func (*GroupResult) Descriptor() ([]byte, []int) { return file_google_cloud_securitycenter_v1_securitycenter_service_proto_rawDescGZIP(), []int{17} } -func (x *GroupResult) GetProperties() map[string]*structpb.Value { +func (x *GroupResult) GetProperties() map[string]*_struct.Value { if x != nil { return x.Properties } @@ -2095,7 +2095,7 @@ type ListAssetsRequest struct { // to assets existing at the supplied time and their values are those at that // specific time. Absence of this field will default to the API's version of // NOW. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the ListAssetsResult's "state_change" // attribute is updated to indicate whether the asset was added, removed, or // remained present during the compare_duration period of time that precedes @@ -2120,11 +2120,11 @@ type ListAssetsRequest struct { // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all assets present at // read_time. - CompareDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` + CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // A field mask to specify the ListAssetsResult fields to be listed in the // response. // An empty field mask will list all fields. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FieldMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // The value returned by the last `ListAssetsResponse`; indicates // that this is a continuation of a prior `ListAssets` call, and // that the system should return the next page of data. @@ -2187,21 +2187,21 @@ func (x *ListAssetsRequest) GetOrderBy() string { return "" } -func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } return nil } -func (x *ListAssetsRequest) GetCompareDuration() *durationpb.Duration { +func (x *ListAssetsRequest) GetCompareDuration() *duration.Duration { if x != nil { return x.CompareDuration } return nil } -func (x *ListAssetsRequest) GetFieldMask() *fieldmaskpb.FieldMask { +func (x *ListAssetsRequest) GetFieldMask() *field_mask.FieldMask { if x != nil { return x.FieldMask } @@ -2231,7 +2231,7 @@ type ListAssetsResponse struct { // Assets matching the list request. ListAssetsResults []*ListAssetsResponse_ListAssetsResult `protobuf:"bytes,1,rep,name=list_assets_results,json=listAssetsResults,proto3" json:"list_assets_results,omitempty"` // Time used for executing the list request. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -2278,7 +2278,7 @@ func (x *ListAssetsResponse) GetListAssetsResults() []*ListAssetsResponse_ListAs return nil } -func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -2398,7 +2398,7 @@ type ListFindingsRequest struct { // limited to findings existing at the supplied time and their values are // those at that specific time. Absence of this field will default to the // API's version of NOW. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // When compare_duration is set, the ListFindingsResult's "state_change" // attribute is updated to indicate whether the finding had its state changed, // the finding's state remained unchanged, or if the finding was added in any @@ -2429,10 +2429,10 @@ type ListFindingsRequest struct { // If compare_duration is not specified, then the only possible state_change // is "UNUSED", which will be the state_change set for all findings present at // read_time. - CompareDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` + CompareDuration *duration.Duration `protobuf:"bytes,5,opt,name=compare_duration,json=compareDuration,proto3" json:"compare_duration,omitempty"` // A field mask to specify the Finding fields to be listed in the response. // An empty field mask will list all fields. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FieldMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // The value returned by the last `ListFindingsResponse`; indicates // that this is a continuation of a prior `ListFindings` call, and // that the system should return the next page of data. @@ -2495,21 +2495,21 @@ func (x *ListFindingsRequest) GetOrderBy() string { return "" } -func (x *ListFindingsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *ListFindingsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } return nil } -func (x *ListFindingsRequest) GetCompareDuration() *durationpb.Duration { +func (x *ListFindingsRequest) GetCompareDuration() *duration.Duration { if x != nil { return x.CompareDuration } return nil } -func (x *ListFindingsRequest) GetFieldMask() *fieldmaskpb.FieldMask { +func (x *ListFindingsRequest) GetFieldMask() *field_mask.FieldMask { if x != nil { return x.FieldMask } @@ -2539,7 +2539,7 @@ type ListFindingsResponse struct { // Findings matching the list request. ListFindingsResults []*ListFindingsResponse_ListFindingsResult `protobuf:"bytes,1,rep,name=list_findings_results,json=listFindingsResults,proto3" json:"list_findings_results,omitempty"` // Time used for executing the list request. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Token to retrieve the next page of results, or empty if there are no more // results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -2586,7 +2586,7 @@ func (x *ListFindingsResponse) GetListFindingsResults() []*ListFindingsResponse_ return nil } -func (x *ListFindingsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *ListFindingsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -2621,7 +2621,7 @@ type SetFindingStateRequest struct { // Required. The desired State of the finding. State Finding_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.securitycenter.v1.Finding_State" json:"state,omitempty"` // Required. The time at which the updated state takes effect. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *SetFindingStateRequest) Reset() { @@ -2670,7 +2670,7 @@ func (x *SetFindingStateRequest) GetState() Finding_State { return Finding_STATE_UNSPECIFIED } -func (x *SetFindingStateRequest) GetStartTime() *timestamppb.Timestamp { +func (x *SetFindingStateRequest) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -2801,7 +2801,7 @@ type UpdateExternalSystemRequest struct { // The FieldMask to use when updating the external system resource. // // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateExternalSystemRequest) Reset() { @@ -2843,7 +2843,7 @@ func (x *UpdateExternalSystemRequest) GetExternalSystem() *ExternalSystem { return nil } -func (x *UpdateExternalSystemRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateExternalSystemRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2870,7 +2870,7 @@ type UpdateFindingRequest struct { // fields and replacing source_properties. Individual source_properties can // be added/updated by using "source_properties." in the field // mask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFindingRequest) Reset() { @@ -2912,7 +2912,7 @@ func (x *UpdateFindingRequest) GetFinding() *Finding { return nil } -func (x *UpdateFindingRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFindingRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2929,7 +2929,7 @@ type UpdateMuteConfigRequest struct { MuteConfig *MuteConfig `protobuf:"bytes,1,opt,name=mute_config,json=muteConfig,proto3" json:"mute_config,omitempty"` // The list of fields to be updated. // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateMuteConfigRequest) Reset() { @@ -2971,7 +2971,7 @@ func (x *UpdateMuteConfigRequest) GetMuteConfig() *MuteConfig { return nil } -func (x *UpdateMuteConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateMuteConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2989,7 +2989,7 @@ type UpdateNotificationConfigRequest struct { // The FieldMask to use when updating the notification config. // // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateNotificationConfigRequest) Reset() { @@ -3031,7 +3031,7 @@ func (x *UpdateNotificationConfigRequest) GetNotificationConfig() *NotificationC return nil } -func (x *UpdateNotificationConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateNotificationConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3049,7 +3049,7 @@ type UpdateOrganizationSettingsRequest struct { // The FieldMask to use when updating the settings resource. // // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateOrganizationSettingsRequest) Reset() { @@ -3091,7 +3091,7 @@ func (x *UpdateOrganizationSettingsRequest) GetOrganizationSettings() *Organizat return nil } -func (x *UpdateOrganizationSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateOrganizationSettingsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3109,7 +3109,7 @@ type UpdateSourceRequest struct { // The FieldMask to use when updating the source resource. // // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSourceRequest) Reset() { @@ -3151,7 +3151,7 @@ func (x *UpdateSourceRequest) GetSource() *Source { return nil } -func (x *UpdateSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSourceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3171,12 +3171,12 @@ type UpdateSecurityMarksRequest struct { // The field mask must not contain duplicate fields. // If empty or set to "marks", all marks will be replaced. Individual // marks can be updated using "marks.". - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The time at which the updated SecurityMarks take effect. // If not set uses current server time. Updates will be applied to the // SecurityMarks that are active immediately preceding this time. Must be // earlier or equal to the server time. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *UpdateSecurityMarksRequest) Reset() { @@ -3218,14 +3218,14 @@ func (x *UpdateSecurityMarksRequest) GetSecurityMarks() *SecurityMarks { return nil } -func (x *UpdateSecurityMarksRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSecurityMarksRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } -func (x *UpdateSecurityMarksRequest) GetStartTime() *timestamppb.Timestamp { +func (x *UpdateSecurityMarksRequest) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -3314,7 +3314,7 @@ type UpdateBigQueryExportRequest struct { BigQueryExport *BigQueryExport `protobuf:"bytes,1,opt,name=big_query_export,json=bigQueryExport,proto3" json:"big_query_export,omitempty"` // The list of fields to be updated. // If empty all mutable fields will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBigQueryExportRequest) Reset() { @@ -3356,7 +3356,7 @@ func (x *UpdateBigQueryExportRequest) GetBigQueryExport() *BigQueryExport { return nil } -func (x *UpdateBigQueryExportRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateBigQueryExportRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -5183,23 +5183,23 @@ var file_google_cloud_securitycenter_v1_securitycenter_service_proto_goTypes = [ (*MuteConfig)(nil), // 50: google.cloud.securitycenter.v1.MuteConfig (*NotificationConfig)(nil), // 51: google.cloud.securitycenter.v1.NotificationConfig (*Source)(nil), // 52: google.cloud.securitycenter.v1.Source - (*durationpb.Duration)(nil), // 53: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 55: google.protobuf.FieldMask + (*duration.Duration)(nil), // 53: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 54: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 55: google.protobuf.FieldMask (Finding_State)(0), // 56: google.cloud.securitycenter.v1.Finding.State (Finding_Mute)(0), // 57: google.cloud.securitycenter.v1.Finding.Mute (*ExternalSystem)(nil), // 58: google.cloud.securitycenter.v1.ExternalSystem (*OrganizationSettings)(nil), // 59: google.cloud.securitycenter.v1.OrganizationSettings (*SecurityMarks)(nil), // 60: google.cloud.securitycenter.v1.SecurityMarks (*BigQueryExport)(nil), // 61: google.cloud.securitycenter.v1.BigQueryExport - (*structpb.Value)(nil), // 62: google.protobuf.Value + (*_struct.Value)(nil), // 62: google.protobuf.Value (*Asset)(nil), // 63: google.cloud.securitycenter.v1.Asset (*Folder)(nil), // 64: google.cloud.securitycenter.v1.Folder (*v1.GetIamPolicyRequest)(nil), // 65: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 66: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 67: google.iam.v1.TestIamPermissionsRequest (*longrunning.Operation)(nil), // 68: google.longrunning.Operation - (*emptypb.Empty)(nil), // 69: google.protobuf.Empty + (*empty.Empty)(nil), // 69: google.protobuf.Empty (*v1.Policy)(nil), // 70: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 71: google.iam.v1.TestIamPermissionsResponse } @@ -5955,9 +5955,9 @@ type SecurityCenterClient interface { // Creates a notification config. CreateNotificationConfig(ctx context.Context, in *CreateNotificationConfigRequest, opts ...grpc.CallOption) (*NotificationConfig, error) // Deletes an existing mute config. - DeleteMuteConfig(ctx context.Context, in *DeleteMuteConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteMuteConfig(ctx context.Context, in *DeleteMuteConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Deletes a notification config. - DeleteNotificationConfig(ctx context.Context, in *DeleteNotificationConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteNotificationConfig(ctx context.Context, in *DeleteNotificationConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets a big query export. GetBigQueryExport(ctx context.Context, in *GetBigQueryExportRequest, opts ...grpc.CallOption) (*BigQueryExport, error) // Gets the access control policy on the specified Source. @@ -6028,7 +6028,7 @@ type SecurityCenterClient interface { // Creates a big query export. CreateBigQueryExport(ctx context.Context, in *CreateBigQueryExportRequest, opts ...grpc.CallOption) (*BigQueryExport, error) // Deletes an existing big query export. - DeleteBigQueryExport(ctx context.Context, in *DeleteBigQueryExportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteBigQueryExport(ctx context.Context, in *DeleteBigQueryExportRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates a BigQuery export. UpdateBigQueryExport(ctx context.Context, in *UpdateBigQueryExportRequest, opts ...grpc.CallOption) (*BigQueryExport, error) // Lists BigQuery exports. Note that when requesting BigQuery exports at a @@ -6092,8 +6092,8 @@ func (c *securityCenterClient) CreateNotificationConfig(ctx context.Context, in return out, nil } -func (c *securityCenterClient) DeleteMuteConfig(ctx context.Context, in *DeleteMuteConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *securityCenterClient) DeleteMuteConfig(ctx context.Context, in *DeleteMuteConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.securitycenter.v1.SecurityCenter/DeleteMuteConfig", in, out, opts...) if err != nil { return nil, err @@ -6101,8 +6101,8 @@ func (c *securityCenterClient) DeleteMuteConfig(ctx context.Context, in *DeleteM return out, nil } -func (c *securityCenterClient) DeleteNotificationConfig(ctx context.Context, in *DeleteNotificationConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *securityCenterClient) DeleteNotificationConfig(ctx context.Context, in *DeleteNotificationConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.securitycenter.v1.SecurityCenter/DeleteNotificationConfig", in, out, opts...) if err != nil { return nil, err @@ -6344,8 +6344,8 @@ func (c *securityCenterClient) CreateBigQueryExport(ctx context.Context, in *Cre return out, nil } -func (c *securityCenterClient) DeleteBigQueryExport(ctx context.Context, in *DeleteBigQueryExportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *securityCenterClient) DeleteBigQueryExport(ctx context.Context, in *DeleteBigQueryExportRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.securitycenter.v1.SecurityCenter/DeleteBigQueryExport", in, out, opts...) if err != nil { return nil, err @@ -6387,9 +6387,9 @@ type SecurityCenterServer interface { // Creates a notification config. CreateNotificationConfig(context.Context, *CreateNotificationConfigRequest) (*NotificationConfig, error) // Deletes an existing mute config. - DeleteMuteConfig(context.Context, *DeleteMuteConfigRequest) (*emptypb.Empty, error) + DeleteMuteConfig(context.Context, *DeleteMuteConfigRequest) (*empty.Empty, error) // Deletes a notification config. - DeleteNotificationConfig(context.Context, *DeleteNotificationConfigRequest) (*emptypb.Empty, error) + DeleteNotificationConfig(context.Context, *DeleteNotificationConfigRequest) (*empty.Empty, error) // Gets a big query export. GetBigQueryExport(context.Context, *GetBigQueryExportRequest) (*BigQueryExport, error) // Gets the access control policy on the specified Source. @@ -6460,7 +6460,7 @@ type SecurityCenterServer interface { // Creates a big query export. CreateBigQueryExport(context.Context, *CreateBigQueryExportRequest) (*BigQueryExport, error) // Deletes an existing big query export. - DeleteBigQueryExport(context.Context, *DeleteBigQueryExportRequest) (*emptypb.Empty, error) + DeleteBigQueryExport(context.Context, *DeleteBigQueryExportRequest) (*empty.Empty, error) // Updates a BigQuery export. UpdateBigQueryExport(context.Context, *UpdateBigQueryExportRequest) (*BigQueryExport, error) // Lists BigQuery exports. Note that when requesting BigQuery exports at a @@ -6490,10 +6490,10 @@ func (*UnimplementedSecurityCenterServer) CreateMuteConfig(context.Context, *Cre func (*UnimplementedSecurityCenterServer) CreateNotificationConfig(context.Context, *CreateNotificationConfigRequest) (*NotificationConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNotificationConfig not implemented") } -func (*UnimplementedSecurityCenterServer) DeleteMuteConfig(context.Context, *DeleteMuteConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedSecurityCenterServer) DeleteMuteConfig(context.Context, *DeleteMuteConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteMuteConfig not implemented") } -func (*UnimplementedSecurityCenterServer) DeleteNotificationConfig(context.Context, *DeleteNotificationConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedSecurityCenterServer) DeleteNotificationConfig(context.Context, *DeleteNotificationConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNotificationConfig not implemented") } func (*UnimplementedSecurityCenterServer) GetBigQueryExport(context.Context, *GetBigQueryExportRequest) (*BigQueryExport, error) { @@ -6574,7 +6574,7 @@ func (*UnimplementedSecurityCenterServer) UpdateSecurityMarks(context.Context, * func (*UnimplementedSecurityCenterServer) CreateBigQueryExport(context.Context, *CreateBigQueryExportRequest) (*BigQueryExport, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBigQueryExport not implemented") } -func (*UnimplementedSecurityCenterServer) DeleteBigQueryExport(context.Context, *DeleteBigQueryExportRequest) (*emptypb.Empty, error) { +func (*UnimplementedSecurityCenterServer) DeleteBigQueryExport(context.Context, *DeleteBigQueryExportRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBigQueryExport not implemented") } func (*UnimplementedSecurityCenterServer) UpdateBigQueryExport(context.Context, *UpdateBigQueryExportRequest) (*BigQueryExport, error) { diff --git a/securitycenter/apiv1/securitycenterpb/source.pb.go b/securitycenter/apiv1/securitycenterpb/source.pb.go index 91556ecb4f3d..53f43d0c4af7 100644 --- a/securitycenter/apiv1/securitycenterpb/source.pb.go +++ b/securitycenter/apiv1/securitycenterpb/source.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/source.proto package securitycenterpb diff --git a/securitycenter/apiv1/securitycenterpb/vulnerability.pb.go b/securitycenter/apiv1/securitycenterpb/vulnerability.pb.go index 4035e26458b6..ebb7cbe92bcb 100644 --- a/securitycenter/apiv1/securitycenterpb/vulnerability.pb.go +++ b/securitycenter/apiv1/securitycenterpb/vulnerability.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/securitycenter/v1/vulnerability.proto package securitycenterpb diff --git a/servicecontrol/apiv1/servicecontrolpb/check_error.pb.go b/servicecontrol/apiv1/servicecontrolpb/check_error.pb.go index 7a41faea8547..0f8054de955b 100644 --- a/servicecontrol/apiv1/servicecontrolpb/check_error.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/check_error.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/check_error.proto package servicecontrolpb diff --git a/servicecontrol/apiv1/servicecontrolpb/distribution.pb.go b/servicecontrol/apiv1/servicecontrolpb/distribution.pb.go index 455b27104788..ceefc7037658 100644 --- a/servicecontrol/apiv1/servicecontrolpb/distribution.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/distribution.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/distribution.proto package servicecontrolpb diff --git a/servicecontrol/apiv1/servicecontrolpb/http_request.pb.go b/servicecontrol/apiv1/servicecontrolpb/http_request.pb.go index b52c700dcfe3..65ec7824c1ba 100644 --- a/servicecontrol/apiv1/servicecontrolpb/http_request.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/http_request.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/http_request.proto package servicecontrolpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -75,7 +75,7 @@ type HttpRequest struct { Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"` // The request processing latency on the server, from the time the request was // received until the response was sent. - Latency *durationpb.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"` + Latency *duration.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"` // Whether or not a cache lookup was attempted. CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup,proto3" json:"cache_lookup,omitempty"` // Whether or not an entity was served from cache @@ -187,7 +187,7 @@ func (x *HttpRequest) GetReferer() string { return "" } -func (x *HttpRequest) GetLatency() *durationpb.Duration { +func (x *HttpRequest) GetLatency() *duration.Duration { if x != nil { return x.Latency } @@ -306,8 +306,8 @@ func file_google_api_servicecontrol_v1_http_request_proto_rawDescGZIP() []byte { var file_google_api_servicecontrol_v1_http_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_api_servicecontrol_v1_http_request_proto_goTypes = []interface{}{ - (*HttpRequest)(nil), // 0: google.api.servicecontrol.v1.HttpRequest - (*durationpb.Duration)(nil), // 1: google.protobuf.Duration + (*HttpRequest)(nil), // 0: google.api.servicecontrol.v1.HttpRequest + (*duration.Duration)(nil), // 1: google.protobuf.Duration } var file_google_api_servicecontrol_v1_http_request_proto_depIdxs = []int32{ 1, // 0: google.api.servicecontrol.v1.HttpRequest.latency:type_name -> google.protobuf.Duration diff --git a/servicecontrol/apiv1/servicecontrolpb/log_entry.pb.go b/servicecontrol/apiv1/servicecontrolpb/log_entry.pb.go index e0f6ad384093..234cb6a03be0 100644 --- a/servicecontrol/apiv1/servicecontrolpb/log_entry.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/log_entry.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/log_entry.proto package servicecontrolpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _type "google.golang.org/genproto/googleapis/logging/type" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -50,7 +50,7 @@ type LogEntry struct { Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` // The time the event described by the log entry occurred. If // omitted, defaults to operation start time. - Timestamp *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The severity of the log entry. The default value is // `LogSeverity.DEFAULT`. Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"` @@ -123,7 +123,7 @@ func (x *LogEntry) GetName() string { return "" } -func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp { +func (x *LogEntry) GetTimestamp() *timestamp.Timestamp { if x != nil { return x.Timestamp } @@ -172,7 +172,7 @@ func (m *LogEntry) GetPayload() isLogEntry_Payload { return nil } -func (x *LogEntry) GetProtoPayload() *anypb.Any { +func (x *LogEntry) GetProtoPayload() *any1.Any { if x, ok := x.GetPayload().(*LogEntry_ProtoPayload); ok { return x.ProtoPayload } @@ -186,7 +186,7 @@ func (x *LogEntry) GetTextPayload() string { return "" } -func (x *LogEntry) GetStructPayload() *structpb.Struct { +func (x *LogEntry) GetStructPayload() *_struct.Struct { if x, ok := x.GetPayload().(*LogEntry_StructPayload); ok { return x.StructPayload } @@ -215,7 +215,7 @@ type LogEntry_ProtoPayload struct { // The log entry payload, represented as a protocol buffer that is // expressed as a JSON object. The only accepted type currently is // [AuditLog][google.cloud.audit.AuditLog]. - ProtoPayload *anypb.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"` + ProtoPayload *any1.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"` } type LogEntry_TextPayload struct { @@ -226,7 +226,7 @@ type LogEntry_TextPayload struct { type LogEntry_StructPayload struct { // The log entry payload, represented as a structure that // is expressed as a JSON object. - StructPayload *structpb.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"` + StructPayload *_struct.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"` } func (*LogEntry_ProtoPayload) isLogEntry_Payload() {} @@ -505,11 +505,11 @@ var file_google_api_servicecontrol_v1_log_entry_proto_goTypes = []interface{}{ (*LogEntryOperation)(nil), // 1: google.api.servicecontrol.v1.LogEntryOperation (*LogEntrySourceLocation)(nil), // 2: google.api.servicecontrol.v1.LogEntrySourceLocation nil, // 3: google.api.servicecontrol.v1.LogEntry.LabelsEntry - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp (_type.LogSeverity)(0), // 5: google.logging.type.LogSeverity (*HttpRequest)(nil), // 6: google.api.servicecontrol.v1.HttpRequest - (*anypb.Any)(nil), // 7: google.protobuf.Any - (*structpb.Struct)(nil), // 8: google.protobuf.Struct + (*any1.Any)(nil), // 7: google.protobuf.Any + (*_struct.Struct)(nil), // 8: google.protobuf.Struct } var file_google_api_servicecontrol_v1_log_entry_proto_depIdxs = []int32{ 4, // 0: google.api.servicecontrol.v1.LogEntry.timestamp:type_name -> google.protobuf.Timestamp diff --git a/servicecontrol/apiv1/servicecontrolpb/metric_value.pb.go b/servicecontrol/apiv1/servicecontrolpb/metric_value.pb.go index 3565602de322..397263befea2 100644 --- a/servicecontrol/apiv1/servicecontrolpb/metric_value.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/metric_value.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/metric_value.proto package servicecontrolpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -52,11 +52,11 @@ type MetricValue struct { // types (cumulative, delta, and gauge). See the metric definition // documentation in the service configuration for details. If not specified, // [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The end of the time period over which this metric value's measurement // applies. If not specified, // [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The value. The type of value used in the request must // agree with the metric definition in the service configuration, otherwise // the MetricValue is rejected. @@ -110,14 +110,14 @@ func (x *MetricValue) GetLabels() map[string]string { return nil } -func (x *MetricValue) GetStartTime() *timestamppb.Timestamp { +func (x *MetricValue) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *MetricValue) GetEndTime() *timestamppb.Timestamp { +func (x *MetricValue) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -350,11 +350,11 @@ func file_google_api_servicecontrol_v1_metric_value_proto_rawDescGZIP() []byte { var file_google_api_servicecontrol_v1_metric_value_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_api_servicecontrol_v1_metric_value_proto_goTypes = []interface{}{ - (*MetricValue)(nil), // 0: google.api.servicecontrol.v1.MetricValue - (*MetricValueSet)(nil), // 1: google.api.servicecontrol.v1.MetricValueSet - nil, // 2: google.api.servicecontrol.v1.MetricValue.LabelsEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*Distribution)(nil), // 4: google.api.servicecontrol.v1.Distribution + (*MetricValue)(nil), // 0: google.api.servicecontrol.v1.MetricValue + (*MetricValueSet)(nil), // 1: google.api.servicecontrol.v1.MetricValueSet + nil, // 2: google.api.servicecontrol.v1.MetricValue.LabelsEntry + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*Distribution)(nil), // 4: google.api.servicecontrol.v1.Distribution } var file_google_api_servicecontrol_v1_metric_value_proto_depIdxs = []int32{ 2, // 0: google.api.servicecontrol.v1.MetricValue.labels:type_name -> google.api.servicecontrol.v1.MetricValue.LabelsEntry diff --git a/servicecontrol/apiv1/servicecontrolpb/operation.pb.go b/servicecontrol/apiv1/servicecontrolpb/operation.pb.go index 6c56880fa141..01c615f4ba17 100644 --- a/servicecontrol/apiv1/servicecontrolpb/operation.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/operation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/operation.proto package servicecontrolpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -121,13 +121,13 @@ type Operation struct { // - api`_`key:API_KEY. ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"` // Required. Start time of the operation. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of the operation. // Required when the operation is used in // [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], // but optional when the operation is used in // [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Labels describing the operation. Only the following labels are allowed: // // - Labels describing monitored resources as defined in @@ -161,7 +161,7 @@ type Operation struct { // DO NOT USE. This is an experimental field. Importance Operation_Importance `protobuf:"varint,11,opt,name=importance,proto3,enum=google.api.servicecontrol.v1.Operation_Importance" json:"importance,omitempty"` // Unimplemented. - Extensions []*anypb.Any `protobuf:"bytes,16,rep,name=extensions,proto3" json:"extensions,omitempty"` + Extensions []*any1.Any `protobuf:"bytes,16,rep,name=extensions,proto3" json:"extensions,omitempty"` } func (x *Operation) Reset() { @@ -217,14 +217,14 @@ func (x *Operation) GetConsumerId() string { return "" } -func (x *Operation) GetStartTime() *timestamppb.Timestamp { +func (x *Operation) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Operation) GetEndTime() *timestamppb.Timestamp { +func (x *Operation) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -259,7 +259,7 @@ func (x *Operation) GetImportance() Operation_Importance { return Operation_LOW } -func (x *Operation) GetExtensions() []*anypb.Any { +func (x *Operation) GetExtensions() []*any1.Any { if x != nil { return x.Extensions } @@ -360,13 +360,13 @@ func file_google_api_servicecontrol_v1_operation_proto_rawDescGZIP() []byte { var file_google_api_servicecontrol_v1_operation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_api_servicecontrol_v1_operation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_api_servicecontrol_v1_operation_proto_goTypes = []interface{}{ - (Operation_Importance)(0), // 0: google.api.servicecontrol.v1.Operation.Importance - (*Operation)(nil), // 1: google.api.servicecontrol.v1.Operation - nil, // 2: google.api.servicecontrol.v1.Operation.LabelsEntry - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*MetricValueSet)(nil), // 4: google.api.servicecontrol.v1.MetricValueSet - (*LogEntry)(nil), // 5: google.api.servicecontrol.v1.LogEntry - (*anypb.Any)(nil), // 6: google.protobuf.Any + (Operation_Importance)(0), // 0: google.api.servicecontrol.v1.Operation.Importance + (*Operation)(nil), // 1: google.api.servicecontrol.v1.Operation + nil, // 2: google.api.servicecontrol.v1.Operation.LabelsEntry + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*MetricValueSet)(nil), // 4: google.api.servicecontrol.v1.MetricValueSet + (*LogEntry)(nil), // 5: google.api.servicecontrol.v1.LogEntry + (*any1.Any)(nil), // 6: google.protobuf.Any } var file_google_api_servicecontrol_v1_operation_proto_depIdxs = []int32{ 3, // 0: google.api.servicecontrol.v1.Operation.start_time:type_name -> google.protobuf.Timestamp diff --git a/servicecontrol/apiv1/servicecontrolpb/quota_controller.pb.go b/servicecontrol/apiv1/servicecontrolpb/quota_controller.pb.go index 02fbc7e24c29..0c0d2decc41e 100644 --- a/servicecontrol/apiv1/servicecontrolpb/quota_controller.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/quota_controller.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/quota_controller.proto package servicecontrolpb diff --git a/servicecontrol/apiv1/servicecontrolpb/service_controller.pb.go b/servicecontrol/apiv1/servicecontrolpb/service_controller.pb.go index efad8135fbce..914377ee27b6 100644 --- a/servicecontrol/apiv1/servicecontrolpb/service_controller.pb.go +++ b/servicecontrol/apiv1/servicecontrolpb/service_controller.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicecontrol/v1/service_controller.proto package servicecontrolpb diff --git a/servicecontrol/go.mod b/servicecontrol/go.mod index 5f71627665b5..61a594e92c34 100644 --- a/servicecontrol/go.mod +++ b/servicecontrol/go.mod @@ -3,16 +3,17 @@ module cloud.google.com/go/servicecontrol go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect @@ -21,5 +22,4 @@ require ( golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/servicedirectory/apiv1/servicedirectorypb/endpoint.pb.go b/servicedirectory/apiv1/servicedirectorypb/endpoint.pb.go index 71b27118eace..1907178c75da 100644 --- a/servicedirectory/apiv1/servicedirectorypb/endpoint.pb.go +++ b/servicedirectory/apiv1/servicedirectorypb/endpoint.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/servicedirectory/v1/endpoint.proto package servicedirectorypb diff --git a/servicedirectory/apiv1/servicedirectorypb/lookup_service.pb.go b/servicedirectory/apiv1/servicedirectorypb/lookup_service.pb.go index 23ec7caf9a3f..18d54bc83b75 100644 --- a/servicedirectory/apiv1/servicedirectorypb/lookup_service.pb.go +++ b/servicedirectory/apiv1/servicedirectorypb/lookup_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/servicedirectory/v1/lookup_service.proto package servicedirectorypb diff --git a/servicedirectory/apiv1/servicedirectorypb/namespace.pb.go b/servicedirectory/apiv1/servicedirectorypb/namespace.pb.go index b38a427e5b47..d772e081163a 100644 --- a/servicedirectory/apiv1/servicedirectorypb/namespace.pb.go +++ b/servicedirectory/apiv1/servicedirectorypb/namespace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/servicedirectory/v1/namespace.proto package servicedirectorypb diff --git a/servicedirectory/apiv1/servicedirectorypb/registration_service.pb.go b/servicedirectory/apiv1/servicedirectorypb/registration_service.pb.go index caf3f3e6f15f..c179a6bf03ac 100644 --- a/servicedirectory/apiv1/servicedirectorypb/registration_service.pb.go +++ b/servicedirectory/apiv1/servicedirectorypb/registration_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/servicedirectory/v1/registration_service.proto package servicedirectorypb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -356,7 +356,7 @@ type UpdateNamespaceRequest struct { // Required. The updated namespace. Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateNamespaceRequest) Reset() { @@ -398,7 +398,7 @@ func (x *UpdateNamespaceRequest) GetNamespace() *Namespace { return nil } -func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateNamespaceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -761,7 +761,7 @@ type UpdateServiceRequest struct { // Required. The updated service. Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateServiceRequest) Reset() { @@ -803,7 +803,7 @@ func (x *UpdateServiceRequest) GetService() *Service { return nil } -func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateServiceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1168,7 +1168,7 @@ type UpdateEndpointRequest struct { // Required. The updated endpoint. Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Required. List of fields to be updated in this request. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateEndpointRequest) Reset() { @@ -1210,7 +1210,7 @@ func (x *UpdateEndpointRequest) GetEndpoint() *Endpoint { return nil } -func (x *UpdateEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateEndpointRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1774,13 +1774,13 @@ var file_google_cloud_servicedirectory_v1_registration_service_proto_goTypes = [ (*UpdateEndpointRequest)(nil), // 16: google.cloud.servicedirectory.v1.UpdateEndpointRequest (*DeleteEndpointRequest)(nil), // 17: google.cloud.servicedirectory.v1.DeleteEndpointRequest (*Namespace)(nil), // 18: google.cloud.servicedirectory.v1.Namespace - (*fieldmaskpb.FieldMask)(nil), // 19: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 19: google.protobuf.FieldMask (*Service)(nil), // 20: google.cloud.servicedirectory.v1.Service (*Endpoint)(nil), // 21: google.cloud.servicedirectory.v1.Endpoint (*v1.GetIamPolicyRequest)(nil), // 22: google.iam.v1.GetIamPolicyRequest (*v1.SetIamPolicyRequest)(nil), // 23: google.iam.v1.SetIamPolicyRequest (*v1.TestIamPermissionsRequest)(nil), // 24: google.iam.v1.TestIamPermissionsRequest - (*emptypb.Empty)(nil), // 25: google.protobuf.Empty + (*empty.Empty)(nil), // 25: google.protobuf.Empty (*v1.Policy)(nil), // 26: google.iam.v1.Policy (*v1.TestIamPermissionsResponse)(nil), // 27: google.iam.v1.TestIamPermissionsResponse } @@ -2108,7 +2108,7 @@ type RegistrationServiceClient interface { UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*Namespace, error) // Deletes a namespace. This also deletes all services and endpoints in // the namespace. - DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a service, and returns the new Service. CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*Service, error) // Lists all services belonging to a namespace. @@ -2119,7 +2119,7 @@ type RegistrationServiceClient interface { UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*Service, error) // Deletes a service. This also deletes all endpoints associated with // the service. - DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a endpoint, and returns the new Endpoint. CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error) // Lists all endpoints. @@ -2129,7 +2129,7 @@ type RegistrationServiceClient interface { // Updates a endpoint. UpdateEndpoint(ctx context.Context, in *UpdateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error) // Deletes a endpoint. - DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the IAM Policy for a resource (namespace or service only). GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Sets the IAM Policy for a resource (namespace or service only). @@ -2182,8 +2182,8 @@ func (c *registrationServiceClient) UpdateNamespace(ctx context.Context, in *Upd return out, nil } -func (c *registrationServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *registrationServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1.RegistrationService/DeleteNamespace", in, out, opts...) if err != nil { return nil, err @@ -2227,8 +2227,8 @@ func (c *registrationServiceClient) UpdateService(ctx context.Context, in *Updat return out, nil } -func (c *registrationServiceClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *registrationServiceClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1.RegistrationService/DeleteService", in, out, opts...) if err != nil { return nil, err @@ -2272,8 +2272,8 @@ func (c *registrationServiceClient) UpdateEndpoint(ctx context.Context, in *Upda return out, nil } -func (c *registrationServiceClient) DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *registrationServiceClient) DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1.RegistrationService/DeleteEndpoint", in, out, opts...) if err != nil { return nil, err @@ -2320,7 +2320,7 @@ type RegistrationServiceServer interface { UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*Namespace, error) // Deletes a namespace. This also deletes all services and endpoints in // the namespace. - DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error) + DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*empty.Empty, error) // Creates a service, and returns the new Service. CreateService(context.Context, *CreateServiceRequest) (*Service, error) // Lists all services belonging to a namespace. @@ -2331,7 +2331,7 @@ type RegistrationServiceServer interface { UpdateService(context.Context, *UpdateServiceRequest) (*Service, error) // Deletes a service. This also deletes all endpoints associated with // the service. - DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error) + DeleteService(context.Context, *DeleteServiceRequest) (*empty.Empty, error) // Creates a endpoint, and returns the new Endpoint. CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error) // Lists all endpoints. @@ -2341,7 +2341,7 @@ type RegistrationServiceServer interface { // Updates a endpoint. UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error) // Deletes a endpoint. - DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*emptypb.Empty, error) + DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*empty.Empty, error) // Gets the IAM Policy for a resource (namespace or service only). GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) // Sets the IAM Policy for a resource (namespace or service only). @@ -2366,7 +2366,7 @@ func (*UnimplementedRegistrationServiceServer) GetNamespace(context.Context, *Ge func (*UnimplementedRegistrationServiceServer) UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*Namespace, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNamespace not implemented") } -func (*UnimplementedRegistrationServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error) { +func (*UnimplementedRegistrationServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") } func (*UnimplementedRegistrationServiceServer) CreateService(context.Context, *CreateServiceRequest) (*Service, error) { @@ -2381,7 +2381,7 @@ func (*UnimplementedRegistrationServiceServer) GetService(context.Context, *GetS func (*UnimplementedRegistrationServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateService not implemented") } -func (*UnimplementedRegistrationServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error) { +func (*UnimplementedRegistrationServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteService not implemented") } func (*UnimplementedRegistrationServiceServer) CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error) { @@ -2396,7 +2396,7 @@ func (*UnimplementedRegistrationServiceServer) GetEndpoint(context.Context, *Get func (*UnimplementedRegistrationServiceServer) UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateEndpoint not implemented") } -func (*UnimplementedRegistrationServiceServer) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*emptypb.Empty, error) { +func (*UnimplementedRegistrationServiceServer) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEndpoint not implemented") } func (*UnimplementedRegistrationServiceServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) { diff --git a/servicedirectory/apiv1/servicedirectorypb/service.pb.go b/servicedirectory/apiv1/servicedirectorypb/service.pb.go index a91a41a790b2..10684ec2c1a1 100644 --- a/servicedirectory/apiv1/servicedirectorypb/service.pb.go +++ b/servicedirectory/apiv1/servicedirectorypb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/servicedirectory/v1/service.proto package servicedirectorypb diff --git a/servicemanagement/apiv1/servicemanagementpb/resources.pb.go b/servicemanagement/apiv1/servicemanagementpb/resources.pb.go index a305859e972f..59814679ba6e 100644 --- a/servicemanagement/apiv1/servicemanagementpb/resources.pb.go +++ b/servicemanagement/apiv1/servicemanagementpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicemanagement/v1/resources.proto package servicemanagementpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" configchange "google.golang.org/genproto/googleapis/api/configchange" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -373,7 +373,7 @@ type OperationMetadata struct { // Percentage of completion of this operation, ranging from 0 to 100. ProgressPercentage int32 `protobuf:"varint,3,opt,name=progress_percentage,json=progressPercentage,proto3" json:"progress_percentage,omitempty"` // The start time of the operation. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } func (x *OperationMetadata) Reset() { @@ -429,7 +429,7 @@ func (x *OperationMetadata) GetProgressPercentage() int32 { return 0 } -func (x *OperationMetadata) GetStartTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -757,7 +757,7 @@ type Rollout struct { // An example of the generated rollout_id is '2016-02-16r1' RolloutId string `protobuf:"bytes,1,opt,name=rollout_id,json=rolloutId,proto3" json:"rollout_id,omitempty"` // Creation time of the rollout. Readonly. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The user who created the Rollout. Readonly. CreatedBy string `protobuf:"bytes,3,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // The status of this rollout. Readonly. In case of a failed rollout, @@ -816,7 +816,7 @@ func (x *Rollout) GetRolloutId() string { return "" } -func (x *Rollout) GetCreateTime() *timestamppb.Timestamp { +func (x *Rollout) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1263,7 +1263,7 @@ var file_google_api_servicemanagement_v1_resources_proto_goTypes = []interface{} (*Rollout_TrafficPercentStrategy)(nil), // 13: google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy (*Rollout_DeleteServiceStrategy)(nil), // 14: google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy nil, // 15: google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntry - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 16: google.protobuf.Timestamp (*configchange.ConfigChange)(nil), // 17: google.api.ConfigChange } var file_google_api_servicemanagement_v1_resources_proto_depIdxs = []int32{ diff --git a/servicemanagement/apiv1/servicemanagementpb/servicemanager.pb.go b/servicemanagement/apiv1/servicemanagementpb/servicemanager.pb.go index fb097ced4c86..3215bdb05cb9 100644 --- a/servicemanagement/apiv1/servicemanagementpb/servicemanager.pb.go +++ b/servicemanagement/apiv1/servicemanagementpb/servicemanager.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/servicemanagement/v1/servicemanager.proto package servicemanagementpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + any1 "github.com/golang/protobuf/ptypes/any" _ "google.golang.org/genproto/googleapis/api/annotations" serviceconfig "google.golang.org/genproto/googleapis/api/serviceconfig" longrunning "google.golang.org/genproto/googleapis/longrunning" @@ -33,7 +34,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" ) const ( @@ -1144,13 +1144,13 @@ type GenerateConfigReportRequest struct { // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], // and [google.api.Service][google.api.Service] - NewConfig *anypb.Any `protobuf:"bytes,1,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` + NewConfig *any1.Any `protobuf:"bytes,1,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` // Optional. Service configuration against which the comparison will be done. // For this version of API, the supported types are // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], // and [google.api.Service][google.api.Service] - OldConfig *anypb.Any `protobuf:"bytes,2,opt,name=old_config,json=oldConfig,proto3" json:"old_config,omitempty"` + OldConfig *any1.Any `protobuf:"bytes,2,opt,name=old_config,json=oldConfig,proto3" json:"old_config,omitempty"` } func (x *GenerateConfigReportRequest) Reset() { @@ -1185,14 +1185,14 @@ func (*GenerateConfigReportRequest) Descriptor() ([]byte, []int) { return file_google_api_servicemanagement_v1_servicemanager_proto_rawDescGZIP(), []int{17} } -func (x *GenerateConfigReportRequest) GetNewConfig() *anypb.Any { +func (x *GenerateConfigReportRequest) GetNewConfig() *any1.Any { if x != nil { return x.NewConfig } return nil } -func (x *GenerateConfigReportRequest) GetOldConfig() *anypb.Any { +func (x *GenerateConfigReportRequest) GetOldConfig() *any1.Any { if x != nil { return x.OldConfig } @@ -1724,7 +1724,7 @@ var file_google_api_servicemanagement_v1_servicemanager_proto_goTypes = []interf (*serviceconfig.Service)(nil), // 21: google.api.Service (*ConfigSource)(nil), // 22: google.api.servicemanagement.v1.ConfigSource (*Rollout)(nil), // 23: google.api.servicemanagement.v1.Rollout - (*anypb.Any)(nil), // 24: google.protobuf.Any + (*any1.Any)(nil), // 24: google.protobuf.Any (*ChangeReport)(nil), // 25: google.api.servicemanagement.v1.ChangeReport (*Diagnostic)(nil), // 26: google.api.servicemanagement.v1.Diagnostic (*longrunning.Operation)(nil), // 27: google.longrunning.Operation diff --git a/servicemanagement/go.mod b/servicemanagement/go.mod index f4f8aacea7af..3bb963f58a18 100644 --- a/servicemanagement/go.mod +++ b/servicemanagement/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/serviceusage/apiv1/serviceusagepb/resources.pb.go b/serviceusage/apiv1/serviceusagepb/resources.pb.go index 0e3f48f238df..6db497480cd0 100644 --- a/serviceusage/apiv1/serviceusagepb/resources.pb.go +++ b/serviceusage/apiv1/serviceusagepb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/serviceusage/v1/resources.proto package serviceusagepb @@ -26,9 +26,9 @@ import ( monitoredres "google.golang.org/genproto/googleapis/api/monitoredres" serviceconfig "google.golang.org/genproto/googleapis/api/serviceconfig" + api "google.golang.org/genproto/protobuf/api" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - apipb "google.golang.org/protobuf/types/known/apipb" ) const ( @@ -194,7 +194,7 @@ type ServiceConfig struct { Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // A list of API interfaces exported by this service. Contains only the names, // versions, and method names of the interfaces. - Apis []*apipb.Api `protobuf:"bytes,3,rep,name=apis,proto3" json:"apis,omitempty"` + Apis []*api.Api `protobuf:"bytes,3,rep,name=apis,proto3" json:"apis,omitempty"` // Additional API documentation. Contains only the summary and the // documentation URL. Documentation *serviceconfig.Documentation `protobuf:"bytes,6,opt,name=documentation,proto3" json:"documentation,omitempty"` @@ -261,7 +261,7 @@ func (x *ServiceConfig) GetTitle() string { return "" } -func (x *ServiceConfig) GetApis() []*apipb.Api { +func (x *ServiceConfig) GetApis() []*api.Api { if x != nil { return x.Apis } @@ -475,7 +475,7 @@ var file_google_api_serviceusage_v1_resources_proto_goTypes = []interface{}{ (*Service)(nil), // 1: google.api.serviceusage.v1.Service (*ServiceConfig)(nil), // 2: google.api.serviceusage.v1.ServiceConfig (*OperationMetadata)(nil), // 3: google.api.serviceusage.v1.OperationMetadata - (*apipb.Api)(nil), // 4: google.protobuf.Api + (*api.Api)(nil), // 4: google.protobuf.Api (*serviceconfig.Documentation)(nil), // 5: google.api.Documentation (*serviceconfig.Quota)(nil), // 6: google.api.Quota (*serviceconfig.Authentication)(nil), // 7: google.api.Authentication diff --git a/serviceusage/apiv1/serviceusagepb/serviceusage.pb.go b/serviceusage/apiv1/serviceusagepb/serviceusage.pb.go index 4d244fc00adc..986b46a2f33d 100644 --- a/serviceusage/apiv1/serviceusagepb/serviceusage.pb.go +++ b/serviceusage/apiv1/serviceusagepb/serviceusage.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/api/serviceusage/v1/serviceusage.proto package serviceusagepb diff --git a/shell/apiv1/shellpb/cloudshell.pb.go b/shell/apiv1/shellpb/cloudshell.pb.go index 27328b71a8f6..17ffc00d7f28 100644 --- a/shell/apiv1/shellpb/cloudshell.pb.go +++ b/shell/apiv1/shellpb/cloudshell.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/shell/v1/cloudshell.proto package shellpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -604,7 +604,7 @@ type AuthorizeEnvironmentRequest struct { IdToken string `protobuf:"bytes,4,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` // The time when the credentials expire. If not set, defaults to one hour from // when the server received the request. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *AuthorizeEnvironmentRequest) Reset() { @@ -660,7 +660,7 @@ func (x *AuthorizeEnvironmentRequest) GetIdToken() string { return "" } -func (x *AuthorizeEnvironmentRequest) GetExpireTime() *timestamppb.Timestamp { +func (x *AuthorizeEnvironmentRequest) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1443,7 +1443,7 @@ var file_google_cloud_shell_v1_cloudshell_proto_goTypes = []interface{}{ (*RemovePublicKeyResponse)(nil), // 17: google.cloud.shell.v1.RemovePublicKeyResponse (*RemovePublicKeyMetadata)(nil), // 18: google.cloud.shell.v1.RemovePublicKeyMetadata (*CloudShellErrorDetails)(nil), // 19: google.cloud.shell.v1.CloudShellErrorDetails - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 20: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 21: google.longrunning.Operation } var file_google_cloud_shell_v1_cloudshell_proto_depIdxs = []int32{ diff --git a/shell/go.mod b/shell/go.mod index 29fad91e944e..b10476747bcc 100644 --- a/shell/go.mod +++ b/shell/go.mod @@ -4,16 +4,17 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect @@ -22,5 +23,4 @@ require ( golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/speech/apiv1/speechpb/cloud_speech.pb.go b/speech/apiv1/speechpb/cloud_speech.pb.go index ed1c64ae987a..224019403db3 100644 --- a/speech/apiv1/speechpb/cloud_speech.pb.go +++ b/speech/apiv1/speechpb/cloud_speech.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/speech/v1/cloud_speech.proto package speechpb @@ -25,6 +25,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" @@ -33,9 +36,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -977,13 +977,13 @@ type RecognitionConfig struct { // the request. For example, "how are you question mark" becomes "how are // you?". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation // for support. If 'false', spoken punctuation is not replaced. - EnableSpokenPunctuation *wrapperspb.BoolValue `protobuf:"bytes,22,opt,name=enable_spoken_punctuation,json=enableSpokenPunctuation,proto3" json:"enable_spoken_punctuation,omitempty"` + EnableSpokenPunctuation *wrappers.BoolValue `protobuf:"bytes,22,opt,name=enable_spoken_punctuation,json=enableSpokenPunctuation,proto3" json:"enable_spoken_punctuation,omitempty"` // The spoken emoji behavior for the call // If not set, uses default behavior based on model of choice // If 'true', adds spoken emoji formatting for the request. This will replace // spoken emojis with the corresponding Unicode symbols in the final // transcript. If 'false', spoken emojis are not replaced. - EnableSpokenEmojis *wrapperspb.BoolValue `protobuf:"bytes,23,opt,name=enable_spoken_emojis,json=enableSpokenEmojis,proto3" json:"enable_spoken_emojis,omitempty"` + EnableSpokenEmojis *wrappers.BoolValue `protobuf:"bytes,23,opt,name=enable_spoken_emojis,json=enableSpokenEmojis,proto3" json:"enable_spoken_emojis,omitempty"` // Config to enable speaker diarization and set additional // parameters to make diarization better suited for your application. // Note: When this is enabled, we send all the words from the beginning of the @@ -1183,14 +1183,14 @@ func (x *RecognitionConfig) GetEnableAutomaticPunctuation() bool { return false } -func (x *RecognitionConfig) GetEnableSpokenPunctuation() *wrapperspb.BoolValue { +func (x *RecognitionConfig) GetEnableSpokenPunctuation() *wrappers.BoolValue { if x != nil { return x.EnableSpokenPunctuation } return nil } -func (x *RecognitionConfig) GetEnableSpokenEmojis() *wrapperspb.BoolValue { +func (x *RecognitionConfig) GetEnableSpokenEmojis() *wrappers.BoolValue { if x != nil { return x.EnableSpokenEmojis } @@ -1620,7 +1620,7 @@ type RecognizeResponse struct { // sequential portions of audio. Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // When available, billed audio seconds for the corresponding request. - TotalBilledTime *durationpb.Duration `protobuf:"bytes,3,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` + TotalBilledTime *duration.Duration `protobuf:"bytes,3,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` } func (x *RecognizeResponse) Reset() { @@ -1662,7 +1662,7 @@ func (x *RecognizeResponse) GetResults() []*SpeechRecognitionResult { return nil } -func (x *RecognizeResponse) GetTotalBilledTime() *durationpb.Duration { +func (x *RecognizeResponse) GetTotalBilledTime() *duration.Duration { if x != nil { return x.TotalBilledTime } @@ -1683,7 +1683,7 @@ type LongRunningRecognizeResponse struct { // sequential portions of audio. Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // When available, billed audio seconds for the corresponding request. - TotalBilledTime *durationpb.Duration `protobuf:"bytes,3,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` + TotalBilledTime *duration.Duration `protobuf:"bytes,3,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` // Original output config if present in the request. OutputConfig *TranscriptOutputConfig `protobuf:"bytes,6,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // If the transcript output fails this field contains the relevant error. @@ -1729,7 +1729,7 @@ func (x *LongRunningRecognizeResponse) GetResults() []*SpeechRecognitionResult { return nil } -func (x *LongRunningRecognizeResponse) GetTotalBilledTime() *durationpb.Duration { +func (x *LongRunningRecognizeResponse) GetTotalBilledTime() *duration.Duration { if x != nil { return x.TotalBilledTime } @@ -1762,9 +1762,9 @@ type LongRunningRecognizeMetadata struct { // when the audio is fully processed and the results are available. ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` // Time when the request was received. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time of the most recent processing update. - LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` + LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` // Output only. The URI of the audio file being transcribed. Empty if the audio was sent // as byte content. Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` @@ -1809,14 +1809,14 @@ func (x *LongRunningRecognizeMetadata) GetProgressPercent() int32 { return 0 } -func (x *LongRunningRecognizeMetadata) GetStartTime() *timestamppb.Timestamp { +func (x *LongRunningRecognizeMetadata) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *LongRunningRecognizeMetadata) GetLastUpdateTime() *timestamppb.Timestamp { +func (x *LongRunningRecognizeMetadata) GetLastUpdateTime() *timestamp.Timestamp { if x != nil { return x.LastUpdateTime } @@ -1896,7 +1896,7 @@ type StreamingRecognizeResponse struct { SpeechEventType StreamingRecognizeResponse_SpeechEventType `protobuf:"varint,4,opt,name=speech_event_type,json=speechEventType,proto3,enum=google.cloud.speech.v1.StreamingRecognizeResponse_SpeechEventType" json:"speech_event_type,omitempty"` // When available, billed audio seconds for the stream. // Set only if this is the last response in the stream. - TotalBilledTime *durationpb.Duration `protobuf:"bytes,5,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` + TotalBilledTime *duration.Duration `protobuf:"bytes,5,opt,name=total_billed_time,json=totalBilledTime,proto3" json:"total_billed_time,omitempty"` } func (x *StreamingRecognizeResponse) Reset() { @@ -1952,7 +1952,7 @@ func (x *StreamingRecognizeResponse) GetSpeechEventType() StreamingRecognizeResp return StreamingRecognizeResponse_SPEECH_EVENT_UNSPECIFIED } -func (x *StreamingRecognizeResponse) GetTotalBilledTime() *durationpb.Duration { +func (x *StreamingRecognizeResponse) GetTotalBilledTime() *duration.Duration { if x != nil { return x.TotalBilledTime } @@ -1985,7 +1985,7 @@ type StreamingRecognitionResult struct { Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"` // Time offset of the end of this result relative to the // beginning of the audio. - ResultEndTime *durationpb.Duration `protobuf:"bytes,4,opt,name=result_end_time,json=resultEndTime,proto3" json:"result_end_time,omitempty"` + ResultEndTime *duration.Duration `protobuf:"bytes,4,opt,name=result_end_time,json=resultEndTime,proto3" json:"result_end_time,omitempty"` // For multi-channel audio, this is the channel number corresponding to the // recognized result for the audio from that channel. // For audio_channel_count = N, its output values can range from '1' to 'N'. @@ -2049,7 +2049,7 @@ func (x *StreamingRecognitionResult) GetStability() float32 { return 0 } -func (x *StreamingRecognitionResult) GetResultEndTime() *durationpb.Duration { +func (x *StreamingRecognitionResult) GetResultEndTime() *duration.Duration { if x != nil { return x.ResultEndTime } @@ -2087,7 +2087,7 @@ type SpeechRecognitionResult struct { ChannelTag int32 `protobuf:"varint,2,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"` // Time offset of the end of this result relative to the // beginning of the audio. - ResultEndTime *durationpb.Duration `protobuf:"bytes,4,opt,name=result_end_time,json=resultEndTime,proto3" json:"result_end_time,omitempty"` + ResultEndTime *duration.Duration `protobuf:"bytes,4,opt,name=result_end_time,json=resultEndTime,proto3" json:"result_end_time,omitempty"` // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag // of the language in this result. This language code was detected to have // the most likelihood of being spoken in the audio. @@ -2140,7 +2140,7 @@ func (x *SpeechRecognitionResult) GetChannelTag() int32 { return 0 } -func (x *SpeechRecognitionResult) GetResultEndTime() *durationpb.Duration { +func (x *SpeechRecognitionResult) GetResultEndTime() *duration.Duration { if x != nil { return x.ResultEndTime } @@ -2244,14 +2244,14 @@ type WordInfo struct { // in the top hypothesis. // This is an experimental feature and the accuracy of the time offset can // vary. - StartTime *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time offset relative to the beginning of the audio, // and corresponding to the end of the spoken word. // This field is only set if `enable_word_time_offsets=true` and only // in the top hypothesis. // This is an experimental feature and the accuracy of the time offset can // vary. - EndTime *durationpb.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The word corresponding to this set of information. Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` // The confidence estimate between 0.0 and 1.0. A higher number @@ -2302,14 +2302,14 @@ func (*WordInfo) Descriptor() ([]byte, []int) { return file_google_cloud_speech_v1_cloud_speech_proto_rawDescGZIP(), []int{17} } -func (x *WordInfo) GetStartTime() *durationpb.Duration { +func (x *WordInfo) GetStartTime() *duration.Duration { if x != nil { return x.StartTime } return nil } -func (x *WordInfo) GetEndTime() *durationpb.Duration { +func (x *WordInfo) GetEndTime() *duration.Duration { if x != nil { return x.EndTime } @@ -2817,10 +2817,10 @@ var file_google_cloud_speech_v1_cloud_speech_proto_goTypes = []interface{}{ (*SpeechRecognitionAlternative)(nil), // 22: google.cloud.speech.v1.SpeechRecognitionAlternative (*WordInfo)(nil), // 23: google.cloud.speech.v1.WordInfo (*SpeechAdaptation)(nil), // 24: google.cloud.speech.v1.SpeechAdaptation - (*wrapperspb.BoolValue)(nil), // 25: google.protobuf.BoolValue - (*durationpb.Duration)(nil), // 26: google.protobuf.Duration + (*wrappers.BoolValue)(nil), // 25: google.protobuf.BoolValue + (*duration.Duration)(nil), // 26: google.protobuf.Duration (*status.Status)(nil), // 27: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 28: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 29: google.longrunning.Operation } var file_google_cloud_speech_v1_cloud_speech_proto_depIdxs = []int32{ diff --git a/speech/apiv1/speechpb/cloud_speech_adaptation.pb.go b/speech/apiv1/speechpb/cloud_speech_adaptation.pb.go index ef1a6de606f9..b35efe02604d 100644 --- a/speech/apiv1/speechpb/cloud_speech_adaptation.pb.go +++ b/speech/apiv1/speechpb/cloud_speech_adaptation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package speechpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -141,7 +141,7 @@ type UpdatePhraseSetRequest struct { // with matching `us` or `eu` location value. PhraseSet *PhraseSet `protobuf:"bytes,1,opt,name=phrase_set,json=phraseSet,proto3" json:"phrase_set,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdatePhraseSetRequest) Reset() { @@ -183,7 +183,7 @@ func (x *UpdatePhraseSetRequest) GetPhraseSet() *PhraseSet { return nil } -func (x *UpdatePhraseSetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatePhraseSetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -538,7 +538,7 @@ type UpdateCustomClassRequest struct { // with matching `us` or `eu` location value. CustomClass *CustomClass `protobuf:"bytes,1,opt,name=custom_class,json=customClass,proto3" json:"custom_class,omitempty"` // The list of fields to be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCustomClassRequest) Reset() { @@ -580,7 +580,7 @@ func (x *UpdateCustomClassRequest) GetCustomClass() *CustomClass { return nil } -func (x *UpdateCustomClassRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCustomClassRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1122,9 +1122,9 @@ var file_google_cloud_speech_v1_cloud_speech_adaptation_proto_goTypes = []interf (*ListCustomClassesResponse)(nil), // 10: google.cloud.speech.v1.ListCustomClassesResponse (*DeleteCustomClassRequest)(nil), // 11: google.cloud.speech.v1.DeleteCustomClassRequest (*PhraseSet)(nil), // 12: google.cloud.speech.v1.PhraseSet - (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 13: google.protobuf.FieldMask (*CustomClass)(nil), // 14: google.cloud.speech.v1.CustomClass - (*emptypb.Empty)(nil), // 15: google.protobuf.Empty + (*empty.Empty)(nil), // 15: google.protobuf.Empty } var file_google_cloud_speech_v1_cloud_speech_adaptation_proto_depIdxs = []int32{ 12, // 0: google.cloud.speech.v1.CreatePhraseSetRequest.phrase_set:type_name -> google.cloud.speech.v1.PhraseSet @@ -1357,7 +1357,7 @@ type AdaptationClient interface { // Update a phrase set. UpdatePhraseSet(ctx context.Context, in *UpdatePhraseSetRequest, opts ...grpc.CallOption) (*PhraseSet, error) // Delete a phrase set. - DeletePhraseSet(ctx context.Context, in *DeletePhraseSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeletePhraseSet(ctx context.Context, in *DeletePhraseSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Create a custom class. CreateCustomClass(ctx context.Context, in *CreateCustomClassRequest, opts ...grpc.CallOption) (*CustomClass, error) // Get a custom class. @@ -1367,7 +1367,7 @@ type AdaptationClient interface { // Update a custom class. UpdateCustomClass(ctx context.Context, in *UpdateCustomClassRequest, opts ...grpc.CallOption) (*CustomClass, error) // Delete a custom class. - DeleteCustomClass(ctx context.Context, in *DeleteCustomClassRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteCustomClass(ctx context.Context, in *DeleteCustomClassRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type adaptationClient struct { @@ -1414,8 +1414,8 @@ func (c *adaptationClient) UpdatePhraseSet(ctx context.Context, in *UpdatePhrase return out, nil } -func (c *adaptationClient) DeletePhraseSet(ctx context.Context, in *DeletePhraseSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *adaptationClient) DeletePhraseSet(ctx context.Context, in *DeletePhraseSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.speech.v1.Adaptation/DeletePhraseSet", in, out, opts...) if err != nil { return nil, err @@ -1459,8 +1459,8 @@ func (c *adaptationClient) UpdateCustomClass(ctx context.Context, in *UpdateCust return out, nil } -func (c *adaptationClient) DeleteCustomClass(ctx context.Context, in *DeleteCustomClassRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *adaptationClient) DeleteCustomClass(ctx context.Context, in *DeleteCustomClassRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.speech.v1.Adaptation/DeleteCustomClass", in, out, opts...) if err != nil { return nil, err @@ -1481,7 +1481,7 @@ type AdaptationServer interface { // Update a phrase set. UpdatePhraseSet(context.Context, *UpdatePhraseSetRequest) (*PhraseSet, error) // Delete a phrase set. - DeletePhraseSet(context.Context, *DeletePhraseSetRequest) (*emptypb.Empty, error) + DeletePhraseSet(context.Context, *DeletePhraseSetRequest) (*empty.Empty, error) // Create a custom class. CreateCustomClass(context.Context, *CreateCustomClassRequest) (*CustomClass, error) // Get a custom class. @@ -1491,7 +1491,7 @@ type AdaptationServer interface { // Update a custom class. UpdateCustomClass(context.Context, *UpdateCustomClassRequest) (*CustomClass, error) // Delete a custom class. - DeleteCustomClass(context.Context, *DeleteCustomClassRequest) (*emptypb.Empty, error) + DeleteCustomClass(context.Context, *DeleteCustomClassRequest) (*empty.Empty, error) } // UnimplementedAdaptationServer can be embedded to have forward compatible implementations. @@ -1510,7 +1510,7 @@ func (*UnimplementedAdaptationServer) ListPhraseSet(context.Context, *ListPhrase func (*UnimplementedAdaptationServer) UpdatePhraseSet(context.Context, *UpdatePhraseSetRequest) (*PhraseSet, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePhraseSet not implemented") } -func (*UnimplementedAdaptationServer) DeletePhraseSet(context.Context, *DeletePhraseSetRequest) (*emptypb.Empty, error) { +func (*UnimplementedAdaptationServer) DeletePhraseSet(context.Context, *DeletePhraseSetRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePhraseSet not implemented") } func (*UnimplementedAdaptationServer) CreateCustomClass(context.Context, *CreateCustomClassRequest) (*CustomClass, error) { @@ -1525,7 +1525,7 @@ func (*UnimplementedAdaptationServer) ListCustomClasses(context.Context, *ListCu func (*UnimplementedAdaptationServer) UpdateCustomClass(context.Context, *UpdateCustomClassRequest) (*CustomClass, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCustomClass not implemented") } -func (*UnimplementedAdaptationServer) DeleteCustomClass(context.Context, *DeleteCustomClassRequest) (*emptypb.Empty, error) { +func (*UnimplementedAdaptationServer) DeleteCustomClass(context.Context, *DeleteCustomClassRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCustomClass not implemented") } diff --git a/speech/apiv1/speechpb/resource.pb.go b/speech/apiv1/speechpb/resource.pb.go index 9ff423ee9109..478716ca48bc 100644 --- a/speech/apiv1/speechpb/resource.pb.go +++ b/speech/apiv1/speechpb/resource.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/speech/v1/resource.proto package speechpb diff --git a/storagetransfer/apiv1/storagetransferpb/transfer.pb.go b/storagetransfer/apiv1/storagetransferpb/transfer.pb.go index 36e383dc2bbf..4f68af4cadf2 100644 --- a/storagetransfer/apiv1/storagetransferpb/transfer.pb.go +++ b/storagetransfer/apiv1/storagetransferpb/transfer.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/storagetransfer/v1/transfer.proto package storagetransferpb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -174,7 +174,7 @@ type UpdateTransferJobRequest struct { // complete transfer specification must be provided. An incomplete // specification missing any required fields is rejected with the error // [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - UpdateTransferJobFieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_transfer_job_field_mask,json=updateTransferJobFieldMask,proto3" json:"update_transfer_job_field_mask,omitempty"` + UpdateTransferJobFieldMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_transfer_job_field_mask,json=updateTransferJobFieldMask,proto3" json:"update_transfer_job_field_mask,omitempty"` } func (x *UpdateTransferJobRequest) Reset() { @@ -230,7 +230,7 @@ func (x *UpdateTransferJobRequest) GetTransferJob() *TransferJob { return nil } -func (x *UpdateTransferJobRequest) GetUpdateTransferJobFieldMask() *fieldmaskpb.FieldMask { +func (x *UpdateTransferJobRequest) GetUpdateTransferJobFieldMask() *field_mask.FieldMask { if x != nil { return x.UpdateTransferJobFieldMask } @@ -755,7 +755,7 @@ type UpdateAgentPoolRequest struct { // * [display_name][google.storagetransfer.v1.AgentPool.display_name] // // * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateAgentPoolRequest) Reset() { @@ -797,7 +797,7 @@ func (x *UpdateAgentPoolRequest) GetAgentPool() *AgentPool { return nil } -func (x *UpdateAgentPoolRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateAgentPoolRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1382,10 +1382,10 @@ var file_google_storagetransfer_v1_transfer_proto_goTypes = []interface{}{ (*ListAgentPoolsRequest)(nil), // 14: google.storagetransfer.v1.ListAgentPoolsRequest (*ListAgentPoolsResponse)(nil), // 15: google.storagetransfer.v1.ListAgentPoolsResponse (*TransferJob)(nil), // 16: google.storagetransfer.v1.TransferJob - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask (*AgentPool)(nil), // 18: google.storagetransfer.v1.AgentPool (*GoogleServiceAccount)(nil), // 19: google.storagetransfer.v1.GoogleServiceAccount - (*emptypb.Empty)(nil), // 20: google.protobuf.Empty + (*empty.Empty)(nil), // 20: google.protobuf.Empty (*longrunning.Operation)(nil), // 21: google.longrunning.Operation } var file_google_storagetransfer_v1_transfer_proto_depIdxs = []int32{ @@ -1689,16 +1689,16 @@ type StorageTransferServiceClient interface { // Lists transfer jobs. ListTransferJobs(ctx context.Context, in *ListTransferJobsRequest, opts ...grpc.CallOption) (*ListTransferJobsResponse, error) // Pauses a transfer operation. - PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Resumes a transfer operation that is paused. - ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Attempts to start a new TransferOperation for the current TransferJob. A // TransferJob has a maximum of one active TransferOperation. If this method // is called while a TransferOperation is active, an error will be returned. RunTransferJob(ctx context.Context, in *RunTransferJobRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a transfer job. Deleting a transfer job sets its status to // [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. - DeleteTransferJob(ctx context.Context, in *DeleteTransferJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTransferJob(ctx context.Context, in *DeleteTransferJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates an agent pool resource. CreateAgentPool(ctx context.Context, in *CreateAgentPoolRequest, opts ...grpc.CallOption) (*AgentPool, error) // Updates an existing agent pool resource. @@ -1708,7 +1708,7 @@ type StorageTransferServiceClient interface { // Lists agent pools. ListAgentPools(ctx context.Context, in *ListAgentPoolsRequest, opts ...grpc.CallOption) (*ListAgentPoolsResponse, error) // Deletes an agent pool. - DeleteAgentPool(ctx context.Context, in *DeleteAgentPoolRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteAgentPool(ctx context.Context, in *DeleteAgentPoolRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type storageTransferServiceClient struct { @@ -1764,8 +1764,8 @@ func (c *storageTransferServiceClient) ListTransferJobs(ctx context.Context, in return out, nil } -func (c *storageTransferServiceClient) PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *storageTransferServiceClient) PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/PauseTransferOperation", in, out, opts...) if err != nil { return nil, err @@ -1773,8 +1773,8 @@ func (c *storageTransferServiceClient) PauseTransferOperation(ctx context.Contex return out, nil } -func (c *storageTransferServiceClient) ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *storageTransferServiceClient) ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/ResumeTransferOperation", in, out, opts...) if err != nil { return nil, err @@ -1791,8 +1791,8 @@ func (c *storageTransferServiceClient) RunTransferJob(ctx context.Context, in *R return out, nil } -func (c *storageTransferServiceClient) DeleteTransferJob(ctx context.Context, in *DeleteTransferJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *storageTransferServiceClient) DeleteTransferJob(ctx context.Context, in *DeleteTransferJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/DeleteTransferJob", in, out, opts...) if err != nil { return nil, err @@ -1836,8 +1836,8 @@ func (c *storageTransferServiceClient) ListAgentPools(ctx context.Context, in *L return out, nil } -func (c *storageTransferServiceClient) DeleteAgentPool(ctx context.Context, in *DeleteAgentPoolRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *storageTransferServiceClient) DeleteAgentPool(ctx context.Context, in *DeleteAgentPoolRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/DeleteAgentPool", in, out, opts...) if err != nil { return nil, err @@ -1872,16 +1872,16 @@ type StorageTransferServiceServer interface { // Lists transfer jobs. ListTransferJobs(context.Context, *ListTransferJobsRequest) (*ListTransferJobsResponse, error) // Pauses a transfer operation. - PauseTransferOperation(context.Context, *PauseTransferOperationRequest) (*emptypb.Empty, error) + PauseTransferOperation(context.Context, *PauseTransferOperationRequest) (*empty.Empty, error) // Resumes a transfer operation that is paused. - ResumeTransferOperation(context.Context, *ResumeTransferOperationRequest) (*emptypb.Empty, error) + ResumeTransferOperation(context.Context, *ResumeTransferOperationRequest) (*empty.Empty, error) // Attempts to start a new TransferOperation for the current TransferJob. A // TransferJob has a maximum of one active TransferOperation. If this method // is called while a TransferOperation is active, an error will be returned. RunTransferJob(context.Context, *RunTransferJobRequest) (*longrunning.Operation, error) // Deletes a transfer job. Deleting a transfer job sets its status to // [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. - DeleteTransferJob(context.Context, *DeleteTransferJobRequest) (*emptypb.Empty, error) + DeleteTransferJob(context.Context, *DeleteTransferJobRequest) (*empty.Empty, error) // Creates an agent pool resource. CreateAgentPool(context.Context, *CreateAgentPoolRequest) (*AgentPool, error) // Updates an existing agent pool resource. @@ -1891,7 +1891,7 @@ type StorageTransferServiceServer interface { // Lists agent pools. ListAgentPools(context.Context, *ListAgentPoolsRequest) (*ListAgentPoolsResponse, error) // Deletes an agent pool. - DeleteAgentPool(context.Context, *DeleteAgentPoolRequest) (*emptypb.Empty, error) + DeleteAgentPool(context.Context, *DeleteAgentPoolRequest) (*empty.Empty, error) } // UnimplementedStorageTransferServiceServer can be embedded to have forward compatible implementations. @@ -1913,16 +1913,16 @@ func (*UnimplementedStorageTransferServiceServer) GetTransferJob(context.Context func (*UnimplementedStorageTransferServiceServer) ListTransferJobs(context.Context, *ListTransferJobsRequest) (*ListTransferJobsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTransferJobs not implemented") } -func (*UnimplementedStorageTransferServiceServer) PauseTransferOperation(context.Context, *PauseTransferOperationRequest) (*emptypb.Empty, error) { +func (*UnimplementedStorageTransferServiceServer) PauseTransferOperation(context.Context, *PauseTransferOperationRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method PauseTransferOperation not implemented") } -func (*UnimplementedStorageTransferServiceServer) ResumeTransferOperation(context.Context, *ResumeTransferOperationRequest) (*emptypb.Empty, error) { +func (*UnimplementedStorageTransferServiceServer) ResumeTransferOperation(context.Context, *ResumeTransferOperationRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ResumeTransferOperation not implemented") } func (*UnimplementedStorageTransferServiceServer) RunTransferJob(context.Context, *RunTransferJobRequest) (*longrunning.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method RunTransferJob not implemented") } -func (*UnimplementedStorageTransferServiceServer) DeleteTransferJob(context.Context, *DeleteTransferJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedStorageTransferServiceServer) DeleteTransferJob(context.Context, *DeleteTransferJobRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTransferJob not implemented") } func (*UnimplementedStorageTransferServiceServer) CreateAgentPool(context.Context, *CreateAgentPoolRequest) (*AgentPool, error) { @@ -1937,7 +1937,7 @@ func (*UnimplementedStorageTransferServiceServer) GetAgentPool(context.Context, func (*UnimplementedStorageTransferServiceServer) ListAgentPools(context.Context, *ListAgentPoolsRequest) (*ListAgentPoolsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAgentPools not implemented") } -func (*UnimplementedStorageTransferServiceServer) DeleteAgentPool(context.Context, *DeleteAgentPoolRequest) (*emptypb.Empty, error) { +func (*UnimplementedStorageTransferServiceServer) DeleteAgentPool(context.Context, *DeleteAgentPoolRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAgentPool not implemented") } diff --git a/storagetransfer/apiv1/storagetransferpb/transfer_types.pb.go b/storagetransfer/apiv1/storagetransferpb/transfer_types.pb.go index 5678f22941de..b61d8d8182fb 100644 --- a/storagetransfer/apiv1/storagetransferpb/transfer_types.pb.go +++ b/storagetransfer/apiv1/storagetransferpb/transfer_types.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/storagetransfer/v1/transfer_types.proto package storagetransferpb @@ -24,14 +24,14 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" code "google.golang.org/genproto/googleapis/rpc/code" date "google.golang.org/genproto/googleapis/type/date" timeofday "google.golang.org/genproto/googleapis/type/timeofday" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1445,7 +1445,7 @@ type ObjectConditions struct { // and the "last modification time" of the object is equal to or // greater than the value of min_time_elapsed_since_last_modification`. // Objects that do not have a "last modification time" are also transferred. - MinTimeElapsedSinceLastModification *durationpb.Duration `protobuf:"bytes,1,opt,name=min_time_elapsed_since_last_modification,json=minTimeElapsedSinceLastModification,proto3" json:"min_time_elapsed_since_last_modification,omitempty"` + MinTimeElapsedSinceLastModification *duration.Duration `protobuf:"bytes,1,opt,name=min_time_elapsed_since_last_modification,json=minTimeElapsedSinceLastModification,proto3" json:"min_time_elapsed_since_last_modification,omitempty"` // Ensures that objects are not transferred if a specific maximum time // has elapsed since the "last modification time". // When a [TransferOperation][google.storagetransfer.v1.TransferOperation] begins, objects with a @@ -1456,7 +1456,7 @@ type ObjectConditions struct { // is less than the value of max_time_elapsed_since_last_modification`. // // Objects that do not have a "last modification time" are also transferred. - MaxTimeElapsedSinceLastModification *durationpb.Duration `protobuf:"bytes,2,opt,name=max_time_elapsed_since_last_modification,json=maxTimeElapsedSinceLastModification,proto3" json:"max_time_elapsed_since_last_modification,omitempty"` + MaxTimeElapsedSinceLastModification *duration.Duration `protobuf:"bytes,2,opt,name=max_time_elapsed_since_last_modification,json=maxTimeElapsedSinceLastModification,proto3" json:"max_time_elapsed_since_last_modification,omitempty"` // If you specify `include_prefixes`, Storage Transfer Service uses the items // in the `include_prefixes` array to determine which objects to include in a // transfer. Objects must start with one of the matching `include_prefixes` @@ -1528,11 +1528,11 @@ type ObjectConditions struct { // * `last_modified_since` to the start of the day // // * `last_modified_before` to the end of the day - LastModifiedSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_modified_since,json=lastModifiedSince,proto3" json:"last_modified_since,omitempty"` + LastModifiedSince *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_modified_since,json=lastModifiedSince,proto3" json:"last_modified_since,omitempty"` // If specified, only objects with a "last modification time" before this // timestamp and objects that don't have a "last modification time" are // transferred. - LastModifiedBefore *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_modified_before,json=lastModifiedBefore,proto3" json:"last_modified_before,omitempty"` + LastModifiedBefore *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_modified_before,json=lastModifiedBefore,proto3" json:"last_modified_before,omitempty"` } func (x *ObjectConditions) Reset() { @@ -1567,14 +1567,14 @@ func (*ObjectConditions) Descriptor() ([]byte, []int) { return file_google_storagetransfer_v1_transfer_types_proto_rawDescGZIP(), []int{3} } -func (x *ObjectConditions) GetMinTimeElapsedSinceLastModification() *durationpb.Duration { +func (x *ObjectConditions) GetMinTimeElapsedSinceLastModification() *duration.Duration { if x != nil { return x.MinTimeElapsedSinceLastModification } return nil } -func (x *ObjectConditions) GetMaxTimeElapsedSinceLastModification() *durationpb.Duration { +func (x *ObjectConditions) GetMaxTimeElapsedSinceLastModification() *duration.Duration { if x != nil { return x.MaxTimeElapsedSinceLastModification } @@ -1595,14 +1595,14 @@ func (x *ObjectConditions) GetExcludePrefixes() []string { return nil } -func (x *ObjectConditions) GetLastModifiedSince() *timestamppb.Timestamp { +func (x *ObjectConditions) GetLastModifiedSince() *timestamp.Timestamp { if x != nil { return x.LastModifiedSince } return nil } -func (x *ObjectConditions) GetLastModifiedBefore() *timestamppb.Timestamp { +func (x *ObjectConditions) GetLastModifiedBefore() *timestamp.Timestamp { if x != nil { return x.LastModifiedBefore } @@ -2906,7 +2906,7 @@ type Schedule struct { // Interval between the start of each scheduled TransferOperation. If // unspecified, the default value is 24 hours. This value may not be less than // 1 hour. - RepeatInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=repeat_interval,json=repeatInterval,proto3" json:"repeat_interval,omitempty"` + RepeatInterval *duration.Duration `protobuf:"bytes,5,opt,name=repeat_interval,json=repeatInterval,proto3" json:"repeat_interval,omitempty"` } func (x *Schedule) Reset() { @@ -2969,7 +2969,7 @@ func (x *Schedule) GetEndTimeOfDay() *timeofday.TimeOfDay { return nil } -func (x *Schedule) GetRepeatInterval() *durationpb.Duration { +func (x *Schedule) GetRepeatInterval() *duration.Duration { if x != nil { return x.RepeatInterval } @@ -3036,11 +3036,11 @@ type TransferJob struct { // current operation. Status TransferJob_Status `protobuf:"varint,6,opt,name=status,proto3,enum=google.storagetransfer.v1.TransferJob_Status" json:"status,omitempty"` // Output only. The time that the transfer job was created. - CreationTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + CreationTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // Output only. The time that the transfer job was last modified. - LastModificationTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_modification_time,json=lastModificationTime,proto3" json:"last_modification_time,omitempty"` + LastModificationTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_modification_time,json=lastModificationTime,proto3" json:"last_modification_time,omitempty"` // Output only. The time that the transfer job was deleted. - DeletionTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"` + DeletionTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"` // The name of the most recently started TransferOperation of this JobConfig. // Present if a TransferOperation has been created for this JobConfig. LatestOperationName string `protobuf:"bytes,12,opt,name=latest_operation_name,json=latestOperationName,proto3" json:"latest_operation_name,omitempty"` @@ -3134,21 +3134,21 @@ func (x *TransferJob) GetStatus() TransferJob_Status { return TransferJob_STATUS_UNSPECIFIED } -func (x *TransferJob) GetCreationTime() *timestamppb.Timestamp { +func (x *TransferJob) GetCreationTime() *timestamp.Timestamp { if x != nil { return x.CreationTime } return nil } -func (x *TransferJob) GetLastModificationTime() *timestamppb.Timestamp { +func (x *TransferJob) GetLastModificationTime() *timestamp.Timestamp { if x != nil { return x.LastModificationTime } return nil } -func (x *TransferJob) GetDeletionTime() *timestamppb.Timestamp { +func (x *TransferJob) GetDeletionTime() *timestamp.Timestamp { if x != nil { return x.DeletionTime } @@ -3725,9 +3725,9 @@ type TransferOperation struct { // Notification configuration. NotificationConfig *NotificationConfig `protobuf:"bytes,10,opt,name=notification_config,json=notificationConfig,proto3" json:"notification_config,omitempty"` // Start time of this transfer execution. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of this transfer execution. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Status of the transfer operation. Status TransferOperation_Status `protobuf:"varint,6,opt,name=status,proto3,enum=google.storagetransfer.v1.TransferOperation_Status" json:"status,omitempty"` // Information about the progress of the transfer operation. @@ -3798,14 +3798,14 @@ func (x *TransferOperation) GetNotificationConfig() *NotificationConfig { return nil } -func (x *TransferOperation) GetStartTime() *timestamppb.Timestamp { +func (x *TransferOperation) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TransferOperation) GetEndTime() *timestamppb.Timestamp { +func (x *TransferOperation) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -4666,8 +4666,8 @@ var file_google_storagetransfer_v1_transfer_types_proto_goTypes = []interface{}{ (*LoggingConfig)(nil), // 43: google.storagetransfer.v1.LoggingConfig (*TransferOperation)(nil), // 44: google.storagetransfer.v1.TransferOperation (*AgentPool_BandwidthLimit)(nil), // 45: google.storagetransfer.v1.AgentPool.BandwidthLimit - (*durationpb.Duration)(nil), // 46: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp + (*duration.Duration)(nil), // 46: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 47: google.protobuf.Timestamp (*date.Date)(nil), // 48: google.type.Date (*timeofday.TimeOfDay)(nil), // 49: google.type.TimeOfDay (code.Code)(0), // 50: google.rpc.Code diff --git a/storagetransfer/go.mod b/storagetransfer/go.mod index 233ce68cea58..81effb8141c3 100644 --- a/storagetransfer/go.mod +++ b/storagetransfer/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/talent/apiv4/talentpb/common.pb.go b/talent/apiv4/talentpb/common.pb.go index 2781ce5ff8cd..5a1bc6f446b5 100644 --- a/talent/apiv4/talentpb/common.pb.go +++ b/talent/apiv4/talentpb/common.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/common.proto package talentpb @@ -24,14 +24,14 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" latlng "google.golang.org/genproto/googleapis/type/latlng" money "google.golang.org/genproto/googleapis/type/money" postaladdress "google.golang.org/genproto/googleapis/type/postaladdress" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -1312,9 +1312,9 @@ type TimestampRange struct { unknownFields protoimpl.UnknownFields // Begin of the period (inclusive). - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of the period (exclusive). - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimestampRange) Reset() { @@ -1349,14 +1349,14 @@ func (*TimestampRange) Descriptor() ([]byte, []int) { return file_google_cloud_talent_v4_common_proto_rawDescGZIP(), []int{0} } -func (x *TimestampRange) GetStartTime() *timestamppb.Timestamp { +func (x *TimestampRange) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimestampRange) GetEndTime() *timestamppb.Timestamp { +func (x *TimestampRange) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1956,14 +1956,14 @@ type BatchOperationMetadata struct { // Count of total item(s) inside an operation. TotalCount int32 `protobuf:"varint,5,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // The time when the batch operation is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the batch operation status is updated. The metadata and the // [update_time][google.cloud.talent.v4.BatchOperationMetadata.update_time] is refreshed every minute otherwise cached data is // returned. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The time when the batch operation is finished and // [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to `true`. - EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *BatchOperationMetadata) Reset() { @@ -2033,21 +2033,21 @@ func (x *BatchOperationMetadata) GetTotalCount() int32 { return 0 } -func (x *BatchOperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *BatchOperationMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *BatchOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2094,7 +2094,7 @@ type CompensationInfo_CompensationEntry struct { // - WEEKLY: 52 // - MONTHLY: 12 // - ANNUAL: 1 - ExpectedUnitsPerYear *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=expected_units_per_year,json=expectedUnitsPerYear,proto3" json:"expected_units_per_year,omitempty"` + ExpectedUnitsPerYear *wrappers.DoubleValue `protobuf:"bytes,6,opt,name=expected_units_per_year,json=expectedUnitsPerYear,proto3" json:"expected_units_per_year,omitempty"` } func (x *CompensationInfo_CompensationEntry) Reset() { @@ -2171,7 +2171,7 @@ func (x *CompensationInfo_CompensationEntry) GetDescription() string { return "" } -func (x *CompensationInfo_CompensationEntry) GetExpectedUnitsPerYear() *wrapperspb.DoubleValue { +func (x *CompensationInfo_CompensationEntry) GetExpectedUnitsPerYear() *wrappers.DoubleValue { if x != nil { return x.ExpectedUnitsPerYear } @@ -2677,11 +2677,11 @@ var file_google_cloud_talent_v4_common_proto_goTypes = []interface{}{ (*BatchOperationMetadata)(nil), // 23: google.cloud.talent.v4.BatchOperationMetadata (*CompensationInfo_CompensationEntry)(nil), // 24: google.cloud.talent.v4.CompensationInfo.CompensationEntry (*CompensationInfo_CompensationRange)(nil), // 25: google.cloud.talent.v4.CompensationInfo.CompensationRange - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*postaladdress.PostalAddress)(nil), // 27: google.type.PostalAddress (*latlng.LatLng)(nil), // 28: google.type.LatLng (*money.Money)(nil), // 29: google.type.Money - (*wrapperspb.DoubleValue)(nil), // 30: google.protobuf.DoubleValue + (*wrappers.DoubleValue)(nil), // 30: google.protobuf.DoubleValue } var file_google_cloud_talent_v4_common_proto_depIdxs = []int32{ 26, // 0: google.cloud.talent.v4.TimestampRange.start_time:type_name -> google.protobuf.Timestamp diff --git a/talent/apiv4/talentpb/company.pb.go b/talent/apiv4/talentpb/company.pb.go index 1e35050fc553..1a309d1fdf5f 100644 --- a/talent/apiv4/talentpb/company.pb.go +++ b/talent/apiv4/talentpb/company.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/company.proto package talentpb diff --git a/talent/apiv4/talentpb/company_service.pb.go b/talent/apiv4/talentpb/company_service.pb.go index 56aa7be29cfb..794d5770cd3c 100644 --- a/talent/apiv4/talentpb/company_service.pb.go +++ b/talent/apiv4/talentpb/company_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/company_service.proto package talentpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -171,7 +171,7 @@ type UpdateCompanyRequest struct { // // A field mask to specify the company fields to be updated. Only // top level fields of [Company][google.cloud.talent.v4.Company] are supported. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCompanyRequest) Reset() { @@ -213,7 +213,7 @@ func (x *UpdateCompanyRequest) GetCompany() *Company { return nil } -func (x *UpdateCompanyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCompanyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -594,9 +594,9 @@ var file_google_cloud_talent_v4_company_service_proto_goTypes = []interface{}{ (*ListCompaniesRequest)(nil), // 4: google.cloud.talent.v4.ListCompaniesRequest (*ListCompaniesResponse)(nil), // 5: google.cloud.talent.v4.ListCompaniesResponse (*Company)(nil), // 6: google.cloud.talent.v4.Company - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask (*ResponseMetadata)(nil), // 8: google.cloud.talent.v4.ResponseMetadata - (*emptypb.Empty)(nil), // 9: google.protobuf.Empty + (*empty.Empty)(nil), // 9: google.protobuf.Empty } var file_google_cloud_talent_v4_company_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.talent.v4.CreateCompanyRequest.company:type_name -> google.cloud.talent.v4.Company @@ -742,7 +742,7 @@ type CompanyServiceClient interface { UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error) // Deletes specified company. // Prerequisite: The company has no jobs associated with it. - DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists all companies associated with the project. ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error) } @@ -782,8 +782,8 @@ func (c *companyServiceClient) UpdateCompany(ctx context.Context, in *UpdateComp return out, nil } -func (c *companyServiceClient) DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *companyServiceClient) DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.talent.v4.CompanyService/DeleteCompany", in, out, opts...) if err != nil { return nil, err @@ -810,7 +810,7 @@ type CompanyServiceServer interface { UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error) // Deletes specified company. // Prerequisite: The company has no jobs associated with it. - DeleteCompany(context.Context, *DeleteCompanyRequest) (*emptypb.Empty, error) + DeleteCompany(context.Context, *DeleteCompanyRequest) (*empty.Empty, error) // Lists all companies associated with the project. ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error) } @@ -828,7 +828,7 @@ func (*UnimplementedCompanyServiceServer) GetCompany(context.Context, *GetCompan func (*UnimplementedCompanyServiceServer) UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCompany not implemented") } -func (*UnimplementedCompanyServiceServer) DeleteCompany(context.Context, *DeleteCompanyRequest) (*emptypb.Empty, error) { +func (*UnimplementedCompanyServiceServer) DeleteCompany(context.Context, *DeleteCompanyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCompany not implemented") } func (*UnimplementedCompanyServiceServer) ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error) { diff --git a/talent/apiv4/talentpb/completion_service.pb.go b/talent/apiv4/talentpb/completion_service.pb.go index 64ae697cde5e..d94a7d521f73 100644 --- a/talent/apiv4/talentpb/completion_service.pb.go +++ b/talent/apiv4/talentpb/completion_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/completion_service.proto package talentpb diff --git a/talent/apiv4/talentpb/event.pb.go b/talent/apiv4/talentpb/event.pb.go index 3fdc7b3d973d..f54ec72ff8a8 100644 --- a/talent/apiv4/talentpb/event.pb.go +++ b/talent/apiv4/talentpb/event.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/event.proto package talentpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -203,7 +203,7 @@ type ClientEvent struct { // Required. A unique identifier, generated by the client application. EventId string `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` // Required. The timestamp of the event. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Required. // // The detail information of a specific event type. @@ -263,7 +263,7 @@ func (x *ClientEvent) GetEventId() string { return "" } -func (x *ClientEvent) GetCreateTime() *timestamppb.Timestamp { +func (x *ClientEvent) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -453,10 +453,10 @@ func file_google_cloud_talent_v4_event_proto_rawDescGZIP() []byte { var file_google_cloud_talent_v4_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_talent_v4_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_talent_v4_event_proto_goTypes = []interface{}{ - (JobEvent_JobEventType)(0), // 0: google.cloud.talent.v4.JobEvent.JobEventType - (*ClientEvent)(nil), // 1: google.cloud.talent.v4.ClientEvent - (*JobEvent)(nil), // 2: google.cloud.talent.v4.JobEvent - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (JobEvent_JobEventType)(0), // 0: google.cloud.talent.v4.JobEvent.JobEventType + (*ClientEvent)(nil), // 1: google.cloud.talent.v4.ClientEvent + (*JobEvent)(nil), // 2: google.cloud.talent.v4.JobEvent + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } var file_google_cloud_talent_v4_event_proto_depIdxs = []int32{ 3, // 0: google.cloud.talent.v4.ClientEvent.create_time:type_name -> google.protobuf.Timestamp diff --git a/talent/apiv4/talentpb/event_service.pb.go b/talent/apiv4/talentpb/event_service.pb.go index a1e7006e236b..153ef36bb063 100644 --- a/talent/apiv4/talentpb/event_service.pb.go +++ b/talent/apiv4/talentpb/event_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/event_service.proto package talentpb diff --git a/talent/apiv4/talentpb/filters.pb.go b/talent/apiv4/talentpb/filters.pb.go index a5385fb591ff..7c0522aa3926 100644 --- a/talent/apiv4/talentpb/filters.pb.go +++ b/talent/apiv4/talentpb/filters.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/filters.proto package talentpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" latlng "google.golang.org/genproto/googleapis/type/latlng" timeofday "google.golang.org/genproto/googleapis/type/timeofday" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -730,7 +730,7 @@ type CommuteFilter struct { StartCoordinates *latlng.LatLng `protobuf:"bytes,2,opt,name=start_coordinates,json=startCoordinates,proto3" json:"start_coordinates,omitempty"` // Required. The maximum travel time in seconds. The maximum allowed value is `3600s` // (one hour). Format is `123s`. - TravelDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` + TravelDuration *duration.Duration `protobuf:"bytes,3,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` // If `true`, jobs without street level addresses may also be returned. // For city level addresses, the city center is used. For state and coarser // level addresses, text matching is used. @@ -792,7 +792,7 @@ func (x *CommuteFilter) GetStartCoordinates() *latlng.LatLng { return nil } -func (x *CommuteFilter) GetTravelDuration() *durationpb.Duration { +func (x *CommuteFilter) GetTravelDuration() *duration.Duration { if x != nil { return x.TravelDuration } @@ -1050,7 +1050,7 @@ var file_google_cloud_talent_v4_filters_proto_goTypes = []interface{}{ (CompensationInfo_CompensationUnit)(0), // 11: google.cloud.talent.v4.CompensationInfo.CompensationUnit (*CompensationInfo_CompensationRange)(nil), // 12: google.cloud.talent.v4.CompensationInfo.CompensationRange (CommuteMethod)(0), // 13: google.cloud.talent.v4.CommuteMethod - (*durationpb.Duration)(nil), // 14: google.protobuf.Duration + (*duration.Duration)(nil), // 14: google.protobuf.Duration (*timeofday.TimeOfDay)(nil), // 15: google.type.TimeOfDay } var file_google_cloud_talent_v4_filters_proto_depIdxs = []int32{ diff --git a/talent/apiv4/talentpb/histogram.pb.go b/talent/apiv4/talentpb/histogram.pb.go index 6ae3780d6d48..64f454f4e090 100644 --- a/talent/apiv4/talentpb/histogram.pb.go +++ b/talent/apiv4/talentpb/histogram.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/histogram.proto package talentpb diff --git a/talent/apiv4/talentpb/job.pb.go b/talent/apiv4/talentpb/job.pb.go index 5eb9d9ee00bf..e97678a9161c 100644 --- a/talent/apiv4/talentpb/job.pb.go +++ b/talent/apiv4/talentpb/job.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/job.proto package talentpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -207,14 +207,14 @@ type Job struct { Visibility Visibility `protobuf:"varint,21,opt,name=visibility,proto3,enum=google.cloud.talent.v4.Visibility" json:"visibility,omitempty"` // The start timestamp of the job in UTC time zone. Typically this field // is used for contracting engagements. Invalid timestamps are ignored. - JobStartTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=job_start_time,json=jobStartTime,proto3" json:"job_start_time,omitempty"` + JobStartTime *timestamp.Timestamp `protobuf:"bytes,22,opt,name=job_start_time,json=jobStartTime,proto3" json:"job_start_time,omitempty"` // The end timestamp of the job. Typically this field is used for contracting // engagements. Invalid timestamps are ignored. - JobEndTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=job_end_time,json=jobEndTime,proto3" json:"job_end_time,omitempty"` + JobEndTime *timestamp.Timestamp `protobuf:"bytes,23,opt,name=job_end_time,json=jobEndTime,proto3" json:"job_end_time,omitempty"` // The timestamp this job posting was most recently published. The default // value is the time the request arrives at the server. Invalid timestamps are // ignored. - PostingPublishTime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=posting_publish_time,json=postingPublishTime,proto3" json:"posting_publish_time,omitempty"` + PostingPublishTime *timestamp.Timestamp `protobuf:"bytes,24,opt,name=posting_publish_time,json=postingPublishTime,proto3" json:"posting_publish_time,omitempty"` // Strongly recommended for the best service experience. // // The expiration timestamp of the job. After this timestamp, the @@ -256,11 +256,11 @@ type Job struct { // [job_end_time][google.cloud.talent.v4.Job.job_end_time], or the masks are empty meaning that every field is // updated, the job posting expires after 30 days from the job's last // update time. Otherwise the expiration date isn't updated. - PostingExpireTime *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=posting_expire_time,json=postingExpireTime,proto3" json:"posting_expire_time,omitempty"` + PostingExpireTime *timestamp.Timestamp `protobuf:"bytes,25,opt,name=posting_expire_time,json=postingExpireTime,proto3" json:"posting_expire_time,omitempty"` // Output only. The timestamp when this job posting was created. - PostingCreateTime *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=posting_create_time,json=postingCreateTime,proto3" json:"posting_create_time,omitempty"` + PostingCreateTime *timestamp.Timestamp `protobuf:"bytes,26,opt,name=posting_create_time,json=postingCreateTime,proto3" json:"posting_create_time,omitempty"` // Output only. The timestamp when this job posting was last updated. - PostingUpdateTime *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=posting_update_time,json=postingUpdateTime,proto3" json:"posting_update_time,omitempty"` + PostingUpdateTime *timestamp.Timestamp `protobuf:"bytes,27,opt,name=posting_update_time,json=postingUpdateTime,proto3" json:"posting_update_time,omitempty"` // Output only. Display name of the company listing the job. CompanyDisplayName string `protobuf:"bytes,28,opt,name=company_display_name,json=companyDisplayName,proto3" json:"company_display_name,omitempty"` // Output only. Derived details about the job posting. @@ -449,42 +449,42 @@ func (x *Job) GetVisibility() Visibility { return Visibility_VISIBILITY_UNSPECIFIED } -func (x *Job) GetJobStartTime() *timestamppb.Timestamp { +func (x *Job) GetJobStartTime() *timestamp.Timestamp { if x != nil { return x.JobStartTime } return nil } -func (x *Job) GetJobEndTime() *timestamppb.Timestamp { +func (x *Job) GetJobEndTime() *timestamp.Timestamp { if x != nil { return x.JobEndTime } return nil } -func (x *Job) GetPostingPublishTime() *timestamppb.Timestamp { +func (x *Job) GetPostingPublishTime() *timestamp.Timestamp { if x != nil { return x.PostingPublishTime } return nil } -func (x *Job) GetPostingExpireTime() *timestamppb.Timestamp { +func (x *Job) GetPostingExpireTime() *timestamp.Timestamp { if x != nil { return x.PostingExpireTime } return nil } -func (x *Job) GetPostingCreateTime() *timestamppb.Timestamp { +func (x *Job) GetPostingCreateTime() *timestamp.Timestamp { if x != nil { return x.PostingCreateTime } return nil } -func (x *Job) GetPostingUpdateTime() *timestamppb.Timestamp { +func (x *Job) GetPostingUpdateTime() *timestamp.Timestamp { if x != nil { return x.PostingUpdateTime } @@ -927,7 +927,7 @@ var file_google_cloud_talent_v4_job_proto_goTypes = []interface{}{ (JobLevel)(0), // 9: google.cloud.talent.v4.JobLevel (PostingRegion)(0), // 10: google.cloud.talent.v4.PostingRegion (Visibility)(0), // 11: google.cloud.talent.v4.Visibility - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 12: google.protobuf.Timestamp (*Location)(nil), // 13: google.cloud.talent.v4.Location (JobCategory)(0), // 14: google.cloud.talent.v4.JobCategory (HtmlSanitization)(0), // 15: google.cloud.talent.v4.HtmlSanitization diff --git a/talent/apiv4/talentpb/job_service.pb.go b/talent/apiv4/talentpb/job_service.pb.go index a7aa3e74ee19..d2cc5b148dec 100644 --- a/talent/apiv4/talentpb/job_service.pb.go +++ b/talent/apiv4/talentpb/job_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/job_service.proto package talentpb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -545,7 +545,7 @@ type UpdateJobRequest struct { // // A field mask to restrict the fields that are updated. Only // top level fields of [Job][google.cloud.talent.v4.Job] are supported. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateJobRequest) Reset() { @@ -587,7 +587,7 @@ func (x *UpdateJobRequest) GetJob() *Job { return nil } -func (x *UpdateJobRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1437,7 +1437,7 @@ type BatchUpdateJobsRequest struct { // will only contains fields that is updated, plus the Id of the Job. // Otherwise, [Job][google.cloud.talent.v4.Job] will include all fields, which can yield a very // large response. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *BatchUpdateJobsRequest) Reset() { @@ -1486,7 +1486,7 @@ func (x *BatchUpdateJobsRequest) GetJobs() []*Job { return nil } -func (x *BatchUpdateJobsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *BatchUpdateJobsRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1963,7 +1963,7 @@ type SearchJobsResponse_CommuteInfo struct { // query location. A duration of 0 seconds indicates that the job isn't // reachable within the requested duration, but was returned as part of an // expanded query. - TravelDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` + TravelDuration *duration.Duration `protobuf:"bytes,2,opt,name=travel_duration,json=travelDuration,proto3" json:"travel_duration,omitempty"` } func (x *SearchJobsResponse_CommuteInfo) Reset() { @@ -2005,7 +2005,7 @@ func (x *SearchJobsResponse_CommuteInfo) GetJobLocation() *Location { return nil } -func (x *SearchJobsResponse_CommuteInfo) GetTravelDuration() *durationpb.Duration { +func (x *SearchJobsResponse_CommuteInfo) GetTravelDuration() *duration.Duration { if x != nil { return x.TravelDuration } @@ -2496,7 +2496,7 @@ var file_google_cloud_talent_v4_job_service_proto_goTypes = []interface{}{ (*SearchJobsResponse_MatchingJob)(nil), // 21: google.cloud.talent.v4.SearchJobsResponse.MatchingJob (*SearchJobsResponse_CommuteInfo)(nil), // 22: google.cloud.talent.v4.SearchJobsResponse.CommuteInfo (*Job)(nil), // 23: google.cloud.talent.v4.Job - (*fieldmaskpb.FieldMask)(nil), // 24: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 24: google.protobuf.FieldMask (*ResponseMetadata)(nil), // 25: google.cloud.talent.v4.ResponseMetadata (*RequestMetadata)(nil), // 26: google.cloud.talent.v4.RequestMetadata (*JobQuery)(nil), // 27: google.cloud.talent.v4.JobQuery @@ -2505,9 +2505,9 @@ var file_google_cloud_talent_v4_job_service_proto_goTypes = []interface{}{ (*Location)(nil), // 30: google.cloud.talent.v4.Location (*SpellingCorrection)(nil), // 31: google.cloud.talent.v4.SpellingCorrection (*status.Status)(nil), // 32: google.rpc.Status - (*durationpb.Duration)(nil), // 33: google.protobuf.Duration + (*duration.Duration)(nil), // 33: google.protobuf.Duration (*longrunning.Operation)(nil), // 34: google.longrunning.Operation - (*emptypb.Empty)(nil), // 35: google.protobuf.Empty + (*empty.Empty)(nil), // 35: google.protobuf.Empty } var file_google_cloud_talent_v4_job_service_proto_depIdxs = []int32{ 23, // 0: google.cloud.talent.v4.CreateJobRequest.job:type_name -> google.cloud.talent.v4.Job @@ -2850,7 +2850,7 @@ type JobServiceClient interface { // // Typically, the job becomes unsearchable within 10 seconds, but it may take // up to 5 minutes. - DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Begins executing a batch delete jobs operation. BatchDeleteJobs(ctx context.Context, in *BatchDeleteJobsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists jobs by filter. @@ -2927,8 +2927,8 @@ func (c *jobServiceClient) BatchUpdateJobs(ctx context.Context, in *BatchUpdateJ return out, nil } -func (c *jobServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *jobServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.talent.v4.JobService/DeleteJob", in, out, opts...) if err != nil { return nil, err @@ -2995,7 +2995,7 @@ type JobServiceServer interface { // // Typically, the job becomes unsearchable within 10 seconds, but it may take // up to 5 minutes. - DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) + DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) // Begins executing a batch delete jobs operation. BatchDeleteJobs(context.Context, *BatchDeleteJobsRequest) (*longrunning.Operation, error) // Lists jobs by filter. @@ -3038,7 +3038,7 @@ func (*UnimplementedJobServiceServer) UpdateJob(context.Context, *UpdateJobReque func (*UnimplementedJobServiceServer) BatchUpdateJobs(context.Context, *BatchUpdateJobsRequest) (*longrunning.Operation, error) { return nil, status1.Errorf(codes.Unimplemented, "method BatchUpdateJobs not implemented") } -func (*UnimplementedJobServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedJobServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteJob not implemented") } func (*UnimplementedJobServiceServer) BatchDeleteJobs(context.Context, *BatchDeleteJobsRequest) (*longrunning.Operation, error) { diff --git a/talent/apiv4/talentpb/tenant.pb.go b/talent/apiv4/talentpb/tenant.pb.go index 33a105096afd..509e036a5036 100644 --- a/talent/apiv4/talentpb/tenant.pb.go +++ b/talent/apiv4/talentpb/tenant.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/tenant.proto package talentpb diff --git a/talent/apiv4/talentpb/tenant_service.pb.go b/talent/apiv4/talentpb/tenant_service.pb.go index e333543e220c..a303aad5ee83 100644 --- a/talent/apiv4/talentpb/tenant_service.pb.go +++ b/talent/apiv4/talentpb/tenant_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/talent/v4/tenant_service.proto package talentpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -170,7 +170,7 @@ type UpdateTenantRequest struct { // // A field mask to specify the tenant fields to be updated. Only // top level fields of [Tenant][google.cloud.talent.v4.Tenant] are supported. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateTenantRequest) Reset() { @@ -212,7 +212,7 @@ func (x *UpdateTenantRequest) GetTenant() *Tenant { return nil } -func (x *UpdateTenantRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTenantRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -564,16 +564,16 @@ func file_google_cloud_talent_v4_tenant_service_proto_rawDescGZIP() []byte { var file_google_cloud_talent_v4_tenant_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_google_cloud_talent_v4_tenant_service_proto_goTypes = []interface{}{ - (*CreateTenantRequest)(nil), // 0: google.cloud.talent.v4.CreateTenantRequest - (*GetTenantRequest)(nil), // 1: google.cloud.talent.v4.GetTenantRequest - (*UpdateTenantRequest)(nil), // 2: google.cloud.talent.v4.UpdateTenantRequest - (*DeleteTenantRequest)(nil), // 3: google.cloud.talent.v4.DeleteTenantRequest - (*ListTenantsRequest)(nil), // 4: google.cloud.talent.v4.ListTenantsRequest - (*ListTenantsResponse)(nil), // 5: google.cloud.talent.v4.ListTenantsResponse - (*Tenant)(nil), // 6: google.cloud.talent.v4.Tenant - (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask - (*ResponseMetadata)(nil), // 8: google.cloud.talent.v4.ResponseMetadata - (*emptypb.Empty)(nil), // 9: google.protobuf.Empty + (*CreateTenantRequest)(nil), // 0: google.cloud.talent.v4.CreateTenantRequest + (*GetTenantRequest)(nil), // 1: google.cloud.talent.v4.GetTenantRequest + (*UpdateTenantRequest)(nil), // 2: google.cloud.talent.v4.UpdateTenantRequest + (*DeleteTenantRequest)(nil), // 3: google.cloud.talent.v4.DeleteTenantRequest + (*ListTenantsRequest)(nil), // 4: google.cloud.talent.v4.ListTenantsRequest + (*ListTenantsResponse)(nil), // 5: google.cloud.talent.v4.ListTenantsResponse + (*Tenant)(nil), // 6: google.cloud.talent.v4.Tenant + (*field_mask.FieldMask)(nil), // 7: google.protobuf.FieldMask + (*ResponseMetadata)(nil), // 8: google.cloud.talent.v4.ResponseMetadata + (*empty.Empty)(nil), // 9: google.protobuf.Empty } var file_google_cloud_talent_v4_tenant_service_proto_depIdxs = []int32{ 6, // 0: google.cloud.talent.v4.CreateTenantRequest.tenant:type_name -> google.cloud.talent.v4.Tenant @@ -718,7 +718,7 @@ type TenantServiceClient interface { // Updates specified tenant. UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*Tenant, error) // Deletes specified tenant. - DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists all tenants associated with the project. ListTenants(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error) } @@ -758,8 +758,8 @@ func (c *tenantServiceClient) UpdateTenant(ctx context.Context, in *UpdateTenant return out, nil } -func (c *tenantServiceClient) DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *tenantServiceClient) DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.talent.v4.TenantService/DeleteTenant", in, out, opts...) if err != nil { return nil, err @@ -785,7 +785,7 @@ type TenantServiceServer interface { // Updates specified tenant. UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error) // Deletes specified tenant. - DeleteTenant(context.Context, *DeleteTenantRequest) (*emptypb.Empty, error) + DeleteTenant(context.Context, *DeleteTenantRequest) (*empty.Empty, error) // Lists all tenants associated with the project. ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error) } @@ -803,7 +803,7 @@ func (*UnimplementedTenantServiceServer) GetTenant(context.Context, *GetTenantRe func (*UnimplementedTenantServiceServer) UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTenant not implemented") } -func (*UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*emptypb.Empty, error) { +func (*UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTenant not implemented") } func (*UnimplementedTenantServiceServer) ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error) { diff --git a/texttospeech/apiv1/texttospeechpb/cloud_tts.pb.go b/texttospeech/apiv1/texttospeechpb/cloud_tts.pb.go index af7fcf20177e..2db7b8831311 100644 --- a/texttospeech/apiv1/texttospeechpb/cloud_tts.pb.go +++ b/texttospeech/apiv1/texttospeechpb/cloud_tts.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/texttospeech/v1/cloud_tts.proto package texttospeechpb diff --git a/texttospeech/go.mod b/texttospeech/go.mod index 3238755b596d..6ea885efdc0b 100644 --- a/texttospeech/go.mod +++ b/texttospeech/go.mod @@ -8,6 +8,7 @@ require ( google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 ) require ( @@ -22,5 +23,4 @@ require ( golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/tpu/apiv1/tpupb/cloud_tpu.pb.go b/tpu/apiv1/tpupb/cloud_tpu.pb.go index 600629ff0b32..1ccc659da8c7 100644 --- a/tpu/apiv1/tpupb/cloud_tpu.pb.go +++ b/tpu/apiv1/tpupb/cloud_tpu.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/tpu/v1/cloud_tpu.proto package tpupb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -505,7 +505,7 @@ type Node struct { // that data. ServiceAccount string `protobuf:"bytes,15,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` // Output only. The time when the node was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The scheduling options for this node. SchedulingConfig *SchedulingConfig `protobuf:"bytes,17,opt,name=scheduling_config,json=schedulingConfig,proto3" json:"scheduling_config,omitempty"` // Output only. The network endpoints where TPU workers can be accessed and @@ -639,7 +639,7 @@ func (x *Node) GetServiceAccount() string { return "" } -func (x *Node) GetCreateTime() *timestamppb.Timestamp { +func (x *Node) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -1675,9 +1675,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Target of the operation - for example // projects/project-1/connectivityTests/test-1 Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` @@ -1723,14 +1723,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_tpu_v1_cloud_tpu_proto_rawDescGZIP(), []int{19} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1779,7 +1779,7 @@ type Symptom struct { unknownFields protoimpl.UnknownFields // Timestamp when the Symptom is created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Type of the Symptom. SymptomType Symptom_SymptomType `protobuf:"varint,2,opt,name=symptom_type,json=symptomType,proto3,enum=google.cloud.tpu.v1.Symptom_SymptomType" json:"symptom_type,omitempty"` // Detailed information of the current Symptom. @@ -1820,7 +1820,7 @@ func (*Symptom) Descriptor() ([]byte, []int) { return file_google_cloud_tpu_v1_cloud_tpu_proto_rawDescGZIP(), []int{20} } -func (x *Symptom) GetCreateTime() *timestamppb.Timestamp { +func (x *Symptom) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -2326,7 +2326,7 @@ var file_google_cloud_tpu_v1_cloud_tpu_proto_goTypes = []interface{}{ (*OperationMetadata)(nil), // 23: google.cloud.tpu.v1.OperationMetadata (*Symptom)(nil), // 24: google.cloud.tpu.v1.Symptom nil, // 25: google.cloud.tpu.v1.Node.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 26: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 27: google.longrunning.Operation } var file_google_cloud_tpu_v1_cloud_tpu_proto_depIdxs = []int32{ diff --git a/tpu/go.mod b/tpu/go.mod index 076d6f23e4ee..a01f6569c1ea 100644 --- a/tpu/go.mod +++ b/tpu/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/trace/apiv1/tracepb/trace.pb.go b/trace/apiv1/tracepb/trace.pb.go index 5c1ec8b70061..7d320b0b1b19 100644 --- a/trace/apiv1/tracepb/trace.pb.go +++ b/trace/apiv1/tracepb/trace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/cloudtrace/v1/trace.proto package tracepb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -305,9 +305,9 @@ type TraceSpan struct { // cross-trace spans. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Start time of the span in nanoseconds from the UNIX epoch. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of the span in nanoseconds from the UNIX epoch. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Optional. ID of the parent span, if any. ParentSpanId uint64 `protobuf:"fixed64,6,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // Collection of labels associated with the span. Label keys must be less than @@ -401,14 +401,14 @@ func (x *TraceSpan) GetName() string { return "" } -func (x *TraceSpan) GetStartTime() *timestamppb.Timestamp { +func (x *TraceSpan) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TraceSpan) GetEndTime() *timestamppb.Timestamp { +func (x *TraceSpan) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -450,10 +450,10 @@ type ListTracesRequest struct { PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Start of the time interval (inclusive) during which the trace data was // collected from the application. - StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of the time interval (inclusive) during which the trace data was // collected from the application. - EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Optional. A filter against labels for the request. // // By default, searches use prefix matching. To specify exact match, prepend @@ -561,14 +561,14 @@ func (x *ListTracesRequest) GetPageToken() string { return "" } -func (x *ListTracesRequest) GetStartTime() *timestamppb.Timestamp { +func (x *ListTracesRequest) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ListTracesRequest) GetEndTime() *timestamppb.Timestamp { +func (x *ListTracesRequest) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -960,8 +960,8 @@ var file_google_devtools_cloudtrace_v1_trace_proto_goTypes = []interface{}{ (*GetTraceRequest)(nil), // 7: google.devtools.cloudtrace.v1.GetTraceRequest (*PatchTracesRequest)(nil), // 8: google.devtools.cloudtrace.v1.PatchTracesRequest nil, // 9: google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 11: google.protobuf.Empty + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*empty.Empty)(nil), // 11: google.protobuf.Empty } var file_google_devtools_cloudtrace_v1_trace_proto_depIdxs = []int32{ 4, // 0: google.devtools.cloudtrace.v1.Trace.spans:type_name -> google.devtools.cloudtrace.v1.TraceSpan @@ -1121,7 +1121,7 @@ type TraceServiceClient interface { // in the existing trace and its spans are overwritten by the provided values, // and any new fields provided are merged with the existing trace data. If the // ID does not match, a new trace is created. - PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type traceServiceClient struct { @@ -1150,8 +1150,8 @@ func (c *traceServiceClient) GetTrace(ctx context.Context, in *GetTraceRequest, return out, nil } -func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", in, out, opts...) if err != nil { return nil, err @@ -1170,7 +1170,7 @@ type TraceServiceServer interface { // in the existing trace and its spans are overwritten by the provided values, // and any new fields provided are merged with the existing trace data. If the // ID does not match, a new trace is created. - PatchTraces(context.Context, *PatchTracesRequest) (*emptypb.Empty, error) + PatchTraces(context.Context, *PatchTracesRequest) (*empty.Empty, error) } // UnimplementedTraceServiceServer can be embedded to have forward compatible implementations. @@ -1183,7 +1183,7 @@ func (*UnimplementedTraceServiceServer) ListTraces(context.Context, *ListTracesR func (*UnimplementedTraceServiceServer) GetTrace(context.Context, *GetTraceRequest) (*Trace, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTrace not implemented") } -func (*UnimplementedTraceServiceServer) PatchTraces(context.Context, *PatchTracesRequest) (*emptypb.Empty, error) { +func (*UnimplementedTraceServiceServer) PatchTraces(context.Context, *PatchTracesRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method PatchTraces not implemented") } diff --git a/trace/apiv2/tracepb/trace.pb.go b/trace/apiv2/tracepb/trace.pb.go index d0b067382324..68a19c60f027 100644 --- a/trace/apiv2/tracepb/trace.pb.go +++ b/trace/apiv2/tracepb/trace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/cloudtrace/v2/trace.proto package tracepb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) const ( @@ -258,11 +258,11 @@ type Span struct { // Required. The start time of the span. On the client side, this is the time kept by // the local machine where the span execution starts. On the server side, this // is the time when the server's application handler starts running. - StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Required. The end time of the span. On the client side, this is the time kept by // the local machine where the span execution ends. On the server side, this // is the time when the server application handler stops running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // A set of attributes on the span. You can have up to 32 attributes per // span. Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"` @@ -279,10 +279,10 @@ type Span struct { // the same process as its parent. If you do not set this parameter, // Stackdriver Trace is unable to take advantage of this helpful // information. - SameProcessAsParentSpan *wrapperspb.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,omitempty"` + SameProcessAsParentSpan *wrappers.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,omitempty"` // Optional. The number of child spans that were generated while this span // was active. If set, allows implementation to detect missing child spans. - ChildSpanCount *wrapperspb.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"` + ChildSpanCount *wrappers.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"` // Optional. Distinguishes between spans generated in a particular context. For example, // two spans with the same name may be distinguished using `CLIENT` (caller) // and `SERVER` (callee) to identify an RPC call. @@ -349,14 +349,14 @@ func (x *Span) GetDisplayName() *TruncatableString { return nil } -func (x *Span) GetStartTime() *timestamppb.Timestamp { +func (x *Span) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Span) GetEndTime() *timestamppb.Timestamp { +func (x *Span) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -398,14 +398,14 @@ func (x *Span) GetStatus() *status.Status { return nil } -func (x *Span) GetSameProcessAsParentSpan() *wrapperspb.BoolValue { +func (x *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue { if x != nil { return x.SameProcessAsParentSpan } return nil } -func (x *Span) GetChildSpanCount() *wrapperspb.Int32Value { +func (x *Span) GetChildSpanCount() *wrappers.Int32Value { if x != nil { return x.ChildSpanCount } @@ -784,7 +784,7 @@ type Span_TimeEvent struct { unknownFields protoimpl.UnknownFields // The timestamp indicating the time the event occurred. - Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // A `TimeEvent` can contain either an `Annotation` object or a // `MessageEvent` object, but not both. // @@ -827,7 +827,7 @@ func (*Span_TimeEvent) Descriptor() ([]byte, []int) { return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 1} } -func (x *Span_TimeEvent) GetTime() *timestamppb.Timestamp { +func (x *Span_TimeEvent) GetTime() *timestamp.Timestamp { if x != nil { return x.Time } @@ -1706,10 +1706,10 @@ var file_google_devtools_cloudtrace_v2_trace_proto_goTypes = []interface{}{ (*Span_TimeEvent_MessageEvent)(nil), // 15: google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent (*StackTrace_StackFrame)(nil), // 16: google.devtools.cloudtrace.v2.StackTrace.StackFrame (*StackTrace_StackFrames)(nil), // 17: google.devtools.cloudtrace.v2.StackTrace.StackFrames - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp (*status.Status)(nil), // 19: google.rpc.Status - (*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue - (*wrapperspb.Int32Value)(nil), // 21: google.protobuf.Int32Value + (*wrappers.BoolValue)(nil), // 20: google.protobuf.BoolValue + (*wrappers.Int32Value)(nil), // 21: google.protobuf.Int32Value } var file_google_devtools_cloudtrace_v2_trace_proto_depIdxs = []int32{ 7, // 0: google.devtools.cloudtrace.v2.Span.display_name:type_name -> google.devtools.cloudtrace.v2.TruncatableString diff --git a/trace/apiv2/tracepb/tracing.pb.go b/trace/apiv2/tracepb/tracing.pb.go index 604153c5792e..9401ef30373f 100644 --- a/trace/apiv2/tracepb/tracing.pb.go +++ b/trace/apiv2/tracepb/tracing.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/devtools/cloudtrace/v2/tracing.proto package tracepb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -190,7 +190,7 @@ var file_google_devtools_cloudtrace_v2_tracing_proto_msgTypes = make([]protoimpl var file_google_devtools_cloudtrace_v2_tracing_proto_goTypes = []interface{}{ (*BatchWriteSpansRequest)(nil), // 0: google.devtools.cloudtrace.v2.BatchWriteSpansRequest (*Span)(nil), // 1: google.devtools.cloudtrace.v2.Span - (*emptypb.Empty)(nil), // 2: google.protobuf.Empty + (*empty.Empty)(nil), // 2: google.protobuf.Empty } var file_google_devtools_cloudtrace_v2_tracing_proto_depIdxs = []int32{ 1, // 0: google.devtools.cloudtrace.v2.BatchWriteSpansRequest.spans:type_name -> google.devtools.cloudtrace.v2.Span @@ -259,7 +259,7 @@ const _ = grpc.SupportPackageIsVersion6 type TraceServiceClient interface { // Sends new spans to new or existing traces. You cannot update // existing spans. - BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a new span. CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) } @@ -272,8 +272,8 @@ func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient { return &traceServiceClient{cc} } -func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, opts...) if err != nil { return nil, err @@ -294,7 +294,7 @@ func (c *traceServiceClient) CreateSpan(ctx context.Context, in *Span, opts ...g type TraceServiceServer interface { // Sends new spans to new or existing traces. You cannot update // existing spans. - BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*emptypb.Empty, error) + BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error) // Creates a new span. CreateSpan(context.Context, *Span) (*Span, error) } @@ -303,7 +303,7 @@ type TraceServiceServer interface { type UnimplementedTraceServiceServer struct { } -func (*UnimplementedTraceServiceServer) BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*emptypb.Empty, error) { +func (*UnimplementedTraceServiceServer) BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method BatchWriteSpans not implemented") } func (*UnimplementedTraceServiceServer) CreateSpan(context.Context, *Span) (*Span, error) { diff --git a/trace/go.mod b/trace/go.mod index 51135cb743b1..e351fa96590f 100644 --- a/trace/go.mod +++ b/trace/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/translate/apiv3/translatepb/translation_service.pb.go b/translate/apiv3/translatepb/translation_service.pb.go index 32a51e4daa57..c3d2b3aa9775 100644 --- a/translate/apiv3/translatepb/translation_service.pb.go +++ b/translate/apiv3/translatepb/translation_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/translate/v3/translation_service.proto package translatepb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -2218,7 +2218,7 @@ type BatchTranslateMetadata struct { // target languages and appears here shortly after the call is submitted. TotalCharacters int64 `protobuf:"varint,4,opt,name=total_characters,json=totalCharacters,proto3" json:"total_characters,omitempty"` // Time when the operation was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` } func (x *BatchTranslateMetadata) Reset() { @@ -2281,7 +2281,7 @@ func (x *BatchTranslateMetadata) GetTotalCharacters() int64 { return 0 } -func (x *BatchTranslateMetadata) GetSubmitTime() *timestamppb.Timestamp { +func (x *BatchTranslateMetadata) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } @@ -2304,11 +2304,11 @@ type BatchTranslateResponse struct { // Number of characters that have failed to process (Unicode codepoints). FailedCharacters int64 `protobuf:"varint,3,opt,name=failed_characters,json=failedCharacters,proto3" json:"failed_characters,omitempty"` // Time when the operation was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // The time when the operation is finished and // [google.longrunning.Operation.done][google.longrunning.Operation.done] is // set to true. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *BatchTranslateResponse) Reset() { @@ -2364,14 +2364,14 @@ func (x *BatchTranslateResponse) GetFailedCharacters() int64 { return 0 } -func (x *BatchTranslateResponse) GetSubmitTime() *timestamppb.Timestamp { +func (x *BatchTranslateResponse) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } return nil } -func (x *BatchTranslateResponse) GetEndTime() *timestamppb.Timestamp { +func (x *BatchTranslateResponse) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2491,9 +2491,9 @@ type Glossary struct { // Output only. The number of entries defined in the glossary. EntryCount int32 `protobuf:"varint,6,opt,name=entry_count,json=entryCount,proto3" json:"entry_count,omitempty"` // Output only. When CreateGlossary was called. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // Output only. When the glossary creation was finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *Glossary) Reset() { @@ -2570,14 +2570,14 @@ func (x *Glossary) GetEntryCount() int32 { return 0 } -func (x *Glossary) GetSubmitTime() *timestamppb.Timestamp { +func (x *Glossary) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } return nil } -func (x *Glossary) GetEndTime() *timestamppb.Timestamp { +func (x *Glossary) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2926,7 +2926,7 @@ type CreateGlossaryMetadata struct { // The current state of the glossary creation operation. State CreateGlossaryMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.translation.v3.CreateGlossaryMetadata_State" json:"state,omitempty"` // The time when the operation was submitted to the server. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` } func (x *CreateGlossaryMetadata) Reset() { @@ -2975,7 +2975,7 @@ func (x *CreateGlossaryMetadata) GetState() CreateGlossaryMetadata_State { return CreateGlossaryMetadata_STATE_UNSPECIFIED } -func (x *CreateGlossaryMetadata) GetSubmitTime() *timestamppb.Timestamp { +func (x *CreateGlossaryMetadata) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } @@ -2995,7 +2995,7 @@ type DeleteGlossaryMetadata struct { // The current state of the glossary deletion operation. State DeleteGlossaryMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.translation.v3.DeleteGlossaryMetadata_State" json:"state,omitempty"` // The time when the operation was submitted to the server. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` } func (x *DeleteGlossaryMetadata) Reset() { @@ -3044,7 +3044,7 @@ func (x *DeleteGlossaryMetadata) GetState() DeleteGlossaryMetadata_State { return DeleteGlossaryMetadata_STATE_UNSPECIFIED } -func (x *DeleteGlossaryMetadata) GetSubmitTime() *timestamppb.Timestamp { +func (x *DeleteGlossaryMetadata) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } @@ -3062,11 +3062,11 @@ type DeleteGlossaryResponse struct { // The name of the deleted glossary. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The time when the operation was submitted to the server. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // The time when the glossary deletion is finished and // [google.longrunning.Operation.done][google.longrunning.Operation.done] is // set to true. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *DeleteGlossaryResponse) Reset() { @@ -3108,14 +3108,14 @@ func (x *DeleteGlossaryResponse) GetName() string { return "" } -func (x *DeleteGlossaryResponse) GetSubmitTime() *timestamppb.Timestamp { +func (x *DeleteGlossaryResponse) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } return nil } -func (x *DeleteGlossaryResponse) GetEndTime() *timestamppb.Timestamp { +func (x *DeleteGlossaryResponse) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3510,11 +3510,11 @@ type BatchTranslateDocumentResponse struct { // clear page definition, such as XLSX. TotalBillableCharacters int64 `protobuf:"varint,8,opt,name=total_billable_characters,json=totalBillableCharacters,proto3" json:"total_billable_characters,omitempty"` // Time when the operation was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // The time when the operation is finished and // [google.longrunning.Operation.done][google.longrunning.Operation.done] is // set to true. - EndTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *BatchTranslateDocumentResponse) Reset() { @@ -3605,14 +3605,14 @@ func (x *BatchTranslateDocumentResponse) GetTotalBillableCharacters() int64 { return 0 } -func (x *BatchTranslateDocumentResponse) GetSubmitTime() *timestamppb.Timestamp { +func (x *BatchTranslateDocumentResponse) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } return nil } -func (x *BatchTranslateDocumentResponse) GetEndTime() *timestamppb.Timestamp { +func (x *BatchTranslateDocumentResponse) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -3651,7 +3651,7 @@ type BatchTranslateDocumentMetadata struct { // clear page definition (such as XLSX) so far. TotalBillableCharacters int64 `protobuf:"varint,9,opt,name=total_billable_characters,json=totalBillableCharacters,proto3" json:"total_billable_characters,omitempty"` // Time when the operation was submitted. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` } func (x *BatchTranslateDocumentMetadata) Reset() { @@ -3749,7 +3749,7 @@ func (x *BatchTranslateDocumentMetadata) GetTotalBillableCharacters() int64 { return 0 } -func (x *BatchTranslateDocumentMetadata) GetSubmitTime() *timestamppb.Timestamp { +func (x *BatchTranslateDocumentMetadata) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } @@ -4777,7 +4777,7 @@ var file_google_cloud_translate_v3_translation_service_proto_goTypes = []interfa nil, // 49: google.cloud.translation.v3.BatchTranslateDocumentRequest.ModelsEntry nil, // 50: google.cloud.translation.v3.BatchTranslateDocumentRequest.GlossariesEntry nil, // 51: google.cloud.translation.v3.BatchTranslateDocumentRequest.FormatConversionsEntry - (*timestamppb.Timestamp)(nil), // 52: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 52: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 53: google.longrunning.Operation } var file_google_cloud_translate_v3_translation_service_proto_depIdxs = []int32{ diff --git a/translate/go.mod b/translate/go.mod index 346af0d9c6ee..777bd182c8e7 100644 --- a/translate/go.mod +++ b/translate/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 golang.org/x/text v0.3.8 google.golang.org/api v0.99.0 @@ -15,7 +16,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect diff --git a/video/go.mod b/video/go.mod index 8a5c6e2c0a69..f7b1c36df147 100644 --- a/video/go.mod +++ b/video/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/video/livestream/apiv1/livestreampb/outputs.pb.go b/video/livestream/apiv1/livestreampb/outputs.pb.go index 64ebc082dcf6..71fb709d805f 100644 --- a/video/livestream/apiv1/livestreampb/outputs.pb.go +++ b/video/livestream/apiv1/livestreampb/outputs.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/livestream/v1/outputs.proto package livestreampb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -318,7 +318,7 @@ type Manifest struct { // errors while accessing segments which are listed in the manifest that the // player has, but were already deleted from the output Google Cloud Storage // bucket. Default value is `60s`. - SegmentKeepDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=segment_keep_duration,json=segmentKeepDuration,proto3" json:"segment_keep_duration,omitempty"` + SegmentKeepDuration *duration.Duration `protobuf:"bytes,5,opt,name=segment_keep_duration,json=segmentKeepDuration,proto3" json:"segment_keep_duration,omitempty"` } func (x *Manifest) Reset() { @@ -381,7 +381,7 @@ func (x *Manifest) GetMaxSegmentCount() int32 { return 0 } -func (x *Manifest) GetSegmentKeepDuration() *durationpb.Duration { +func (x *Manifest) GetSegmentKeepDuration() *duration.Duration { if x != nil { return x.SegmentKeepDuration } @@ -419,7 +419,7 @@ type SpriteSheet struct { RowCount int32 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"` // Create sprites at regular intervals. Valid range is [1 second, 1 hour] and // the default value is `10s`. - Interval *durationpb.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"` + Interval *duration.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"` // The quality of the generated sprite sheet. Enter a value between 1 // and 100, where 1 is the lowest quality and 100 is the highest quality. // The default is 100. A high quality value corresponds to a low image data @@ -501,7 +501,7 @@ func (x *SpriteSheet) GetRowCount() int32 { return 0 } -func (x *SpriteSheet) GetInterval() *durationpb.Duration { +func (x *SpriteSheet) GetInterval() *duration.Duration { if x != nil { return x.Interval } @@ -833,7 +833,7 @@ type SegmentSettings struct { // // All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in the same manifest must have the // same segment duration. - SegmentDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` + SegmentDuration *duration.Duration `protobuf:"bytes,1,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` } func (x *SegmentSettings) Reset() { @@ -868,7 +868,7 @@ func (*SegmentSettings) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_outputs_proto_rawDescGZIP(), []int{8} } -func (x *SegmentSettings) GetSegmentDuration() *durationpb.Duration { +func (x *SegmentSettings) GetSegmentDuration() *duration.Duration { if x != nil { return x.SegmentDuration } @@ -1191,7 +1191,7 @@ func (x *VideoStream_H264CodecSettings) GetGopFrameCount() int32 { return 0 } -func (x *VideoStream_H264CodecSettings) GetGopDuration() *durationpb.Duration { +func (x *VideoStream_H264CodecSettings) GetGopDuration() *duration.Duration { if x, ok := x.GetGopMode().(*VideoStream_H264CodecSettings_GopDuration); ok { return x.GopDuration } @@ -1275,7 +1275,7 @@ type VideoStream_H264CodecSettings_GopDuration struct { // by `gopDuration`. Valid range is [2s, 20s]. // // All video streams in the same channel must have the same GOP size. - GopDuration *durationpb.Duration `protobuf:"bytes,8,opt,name=gop_duration,json=gopDuration,proto3,oneof"` + GopDuration *duration.Duration `protobuf:"bytes,8,opt,name=gop_duration,json=gopDuration,proto3,oneof"` } func (*VideoStream_H264CodecSettings_GopFrameCount) isVideoStream_H264CodecSettings_GopMode() {} @@ -1609,7 +1609,7 @@ var file_google_cloud_video_livestream_v1_outputs_proto_goTypes = []interface{}{ (*PreprocessingConfig_Pad)(nil), // 11: google.cloud.video.livestream.v1.PreprocessingConfig.Pad (*VideoStream_H264CodecSettings)(nil), // 12: google.cloud.video.livestream.v1.VideoStream.H264CodecSettings (*AudioStream_AudioMapping)(nil), // 13: google.cloud.video.livestream.v1.AudioStream.AudioMapping - (*durationpb.Duration)(nil), // 14: google.protobuf.Duration + (*duration.Duration)(nil), // 14: google.protobuf.Duration } var file_google_cloud_video_livestream_v1_outputs_proto_depIdxs = []int32{ 6, // 0: google.cloud.video.livestream.v1.ElementaryStream.video_stream:type_name -> google.cloud.video.livestream.v1.VideoStream diff --git a/video/livestream/apiv1/livestreampb/resources.pb.go b/video/livestream/apiv1/livestreampb/resources.pb.go index 539849d75c46..53f0b3a64523 100644 --- a/video/livestream/apiv1/livestreampb/resources.pb.go +++ b/video/livestream/apiv1/livestreampb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/livestream/v1/resources.proto package livestreampb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -379,9 +379,9 @@ type Input struct { // `projects/{project}/locations/{location}/inputs/{inputId}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User-defined key/value metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Source type. @@ -445,14 +445,14 @@ func (x *Input) GetName() string { return "" } -func (x *Input) GetCreateTime() *timestamppb.Timestamp { +func (x *Input) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Input) GetUpdateTime() *timestamppb.Timestamp { +func (x *Input) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -522,9 +522,9 @@ type Channel struct { // `projects/{project}/locations/{location}/channels/{channelId}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User-defined key/value metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // A list of input attachments that this channel uses. @@ -594,14 +594,14 @@ func (x *Channel) GetName() string { return "" } -func (x *Channel) GetCreateTime() *timestamppb.Timestamp { +func (x *Channel) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Channel) GetUpdateTime() *timestamppb.Timestamp { +func (x *Channel) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -745,7 +745,7 @@ type InputStreamProperty struct { // The time that the current input stream is accepted and the connection is // established. - LastEstablishTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_establish_time,json=lastEstablishTime,proto3" json:"last_establish_time,omitempty"` + LastEstablishTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_establish_time,json=lastEstablishTime,proto3" json:"last_establish_time,omitempty"` // Properties of the video streams. VideoStreams []*VideoStreamProperty `protobuf:"bytes,2,rep,name=video_streams,json=videoStreams,proto3" json:"video_streams,omitempty"` // Properties of the audio streams. @@ -784,7 +784,7 @@ func (*InputStreamProperty) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{3} } -func (x *InputStreamProperty) GetLastEstablishTime() *timestamppb.Timestamp { +func (x *InputStreamProperty) GetLastEstablishTime() *timestamp.Timestamp { if x != nil { return x.LastEstablishTime } @@ -1143,9 +1143,9 @@ type Event struct { // `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User-defined key/value metadata. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Operation to be executed by this event. @@ -1161,7 +1161,7 @@ type Event struct { // The time when the event should be executed. When [execute_now][google.cloud.video.livestream.v1.Event.execute_now] is set to // `true`, this field should not be set in `CreateEvent` request and will be // populated with the time that the server schedules the event. - ExecutionTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"` + ExecutionTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"` // Output only. The state of the event. State Event_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.video.livestream.v1.Event_State" json:"state,omitempty"` // Output only. An error object that describes the reason for the failure. @@ -1208,14 +1208,14 @@ func (x *Event) GetName() string { return "" } -func (x *Event) GetCreateTime() *timestamppb.Timestamp { +func (x *Event) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Event) GetUpdateTime() *timestamppb.Timestamp { +func (x *Event) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1250,7 +1250,7 @@ func (x *Event) GetExecuteNow() bool { return false } -func (x *Event) GetExecutionTime() *timestamppb.Timestamp { +func (x *Event) GetExecutionTime() *timestamp.Timestamp { if x != nil { return x.ExecutionTime } @@ -1441,7 +1441,7 @@ type Event_AdBreakTask struct { unknownFields protoimpl.UnknownFields // Duration of an ad opportunity. Must be greater than 0. - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *Event_AdBreakTask) Reset() { @@ -1476,7 +1476,7 @@ func (*Event_AdBreakTask) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{9, 0} } -func (x *Event_AdBreakTask) GetDuration() *durationpb.Duration { +func (x *Event_AdBreakTask) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -1846,14 +1846,14 @@ var file_google_cloud_video_livestream_v1_resources_proto_goTypes = []interface{ (*InputAttachment_AutomaticFailover)(nil), // 19: google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover (*Event_AdBreakTask)(nil), // 20: google.cloud.video.livestream.v1.Event.AdBreakTask nil, // 21: google.cloud.video.livestream.v1.Event.LabelsEntry - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 22: google.protobuf.Timestamp (*PreprocessingConfig)(nil), // 23: google.cloud.video.livestream.v1.PreprocessingConfig (*ElementaryStream)(nil), // 24: google.cloud.video.livestream.v1.ElementaryStream (*MuxStream)(nil), // 25: google.cloud.video.livestream.v1.MuxStream (*Manifest)(nil), // 26: google.cloud.video.livestream.v1.Manifest (*SpriteSheet)(nil), // 27: google.cloud.video.livestream.v1.SpriteSheet (*status.Status)(nil), // 28: google.rpc.Status - (*durationpb.Duration)(nil), // 29: google.protobuf.Duration + (*duration.Duration)(nil), // 29: google.protobuf.Duration } var file_google_cloud_video_livestream_v1_resources_proto_depIdxs = []int32{ 22, // 0: google.cloud.video.livestream.v1.Input.create_time:type_name -> google.protobuf.Timestamp diff --git a/video/livestream/apiv1/livestreampb/service.pb.go b/video/livestream/apiv1/livestreampb/service.pb.go index f87ea40960d1..68aa6b1eb007 100644 --- a/video/livestream/apiv1/livestreampb/service.pb.go +++ b/video/livestream/apiv1/livestreampb/service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/livestream/v1/service.proto package livestreampb @@ -25,16 +25,16 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -445,7 +445,7 @@ type UpdateChannelRequest struct { // // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The channel resource to be updated. Channel *Channel `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -496,7 +496,7 @@ func (*UpdateChannelRequest) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_service_proto_rawDescGZIP(), []int{5} } -func (x *UpdateChannelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateChannelRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1044,7 +1044,7 @@ type UpdateInputRequest struct { // // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The input resource to be updated. Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -1095,7 +1095,7 @@ func (*UpdateInputRequest) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_service_proto_rawDescGZIP(), []int{13} } -func (x *UpdateInputRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateInputRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1533,9 +1533,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -1582,14 +1582,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_video_livestream_v1_service_proto_rawDescGZIP(), []int{20} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2117,12 +2117,12 @@ var file_google_cloud_video_livestream_v1_service_proto_goTypes = []interface{}{ (*ChannelOperationResponse)(nil), // 19: google.cloud.video.livestream.v1.ChannelOperationResponse (*OperationMetadata)(nil), // 20: google.cloud.video.livestream.v1.OperationMetadata (*Channel)(nil), // 21: google.cloud.video.livestream.v1.Channel - (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 22: google.protobuf.FieldMask (*Input)(nil), // 23: google.cloud.video.livestream.v1.Input (*Event)(nil), // 24: google.cloud.video.livestream.v1.Event - (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 25: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 26: google.longrunning.Operation - (*emptypb.Empty)(nil), // 27: google.protobuf.Empty + (*empty.Empty)(nil), // 27: google.protobuf.Empty } var file_google_cloud_video_livestream_v1_service_proto_depIdxs = []int32{ 21, // 0: google.cloud.video.livestream.v1.CreateChannelRequest.channel:type_name -> google.cloud.video.livestream.v1.Channel @@ -2502,7 +2502,7 @@ type LivestreamServiceClient interface { // Returns the specified event. GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*Event, error) // Deletes the specified event. - DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type livestreamServiceClient struct { @@ -2648,8 +2648,8 @@ func (c *livestreamServiceClient) GetEvent(ctx context.Context, in *GetEventRequ return out, nil } -func (c *livestreamServiceClient) DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *livestreamServiceClient) DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.video.livestream.v1.LivestreamService/DeleteEvent", in, out, opts...) if err != nil { return nil, err @@ -2693,7 +2693,7 @@ type LivestreamServiceServer interface { // Returns the specified event. GetEvent(context.Context, *GetEventRequest) (*Event, error) // Deletes the specified event. - DeleteEvent(context.Context, *DeleteEventRequest) (*emptypb.Empty, error) + DeleteEvent(context.Context, *DeleteEventRequest) (*empty.Empty, error) } // UnimplementedLivestreamServiceServer can be embedded to have forward compatible implementations. @@ -2745,7 +2745,7 @@ func (*UnimplementedLivestreamServiceServer) ListEvents(context.Context, *ListEv func (*UnimplementedLivestreamServiceServer) GetEvent(context.Context, *GetEventRequest) (*Event, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEvent not implemented") } -func (*UnimplementedLivestreamServiceServer) DeleteEvent(context.Context, *DeleteEventRequest) (*emptypb.Empty, error) { +func (*UnimplementedLivestreamServiceServer) DeleteEvent(context.Context, *DeleteEventRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEvent not implemented") } diff --git a/video/stitcher/apiv1/stitcherpb/ad_tag_details.pb.go b/video/stitcher/apiv1/stitcherpb/ad_tag_details.pb.go index 749545698ae7..814f1b477a3f 100644 --- a/video/stitcher/apiv1/stitcherpb/ad_tag_details.pb.go +++ b/video/stitcher/apiv1/stitcherpb/ad_tag_details.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/ad_tag_details.proto package stitcherpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -230,7 +230,7 @@ type RequestMetadata struct { unknownFields protoimpl.UnknownFields // The HTTP headers of the ad request. - Headers *structpb.Struct `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"` + Headers *_struct.Struct `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"` } func (x *RequestMetadata) Reset() { @@ -265,7 +265,7 @@ func (*RequestMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_video_stitcher_v1_ad_tag_details_proto_rawDescGZIP(), []int{3} } -func (x *RequestMetadata) GetHeaders() *structpb.Struct { +func (x *RequestMetadata) GetHeaders() *_struct.Struct { if x != nil { return x.Headers } @@ -281,13 +281,13 @@ type ResponseMetadata struct { // Error message received when making the ad request. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Headers from the response. - Headers *structpb.Struct `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"` + Headers *_struct.Struct `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"` // Status code for the response. StatusCode string `protobuf:"bytes,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // Size in bytes of the response. SizeBytes int32 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` // Total time elapsed for the response. - Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` // The body of the response. Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` } @@ -331,7 +331,7 @@ func (x *ResponseMetadata) GetError() string { return "" } -func (x *ResponseMetadata) GetHeaders() *structpb.Struct { +func (x *ResponseMetadata) GetHeaders() *_struct.Struct { if x != nil { return x.Headers } @@ -352,7 +352,7 @@ func (x *ResponseMetadata) GetSizeBytes() int32 { return 0 } -func (x *ResponseMetadata) GetDuration() *durationpb.Duration { +func (x *ResponseMetadata) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -472,13 +472,13 @@ func file_google_cloud_video_stitcher_v1_ad_tag_details_proto_rawDescGZIP() []by var file_google_cloud_video_stitcher_v1_ad_tag_details_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_cloud_video_stitcher_v1_ad_tag_details_proto_goTypes = []interface{}{ - (*LiveAdTagDetail)(nil), // 0: google.cloud.video.stitcher.v1.LiveAdTagDetail - (*VodAdTagDetail)(nil), // 1: google.cloud.video.stitcher.v1.VodAdTagDetail - (*AdRequest)(nil), // 2: google.cloud.video.stitcher.v1.AdRequest - (*RequestMetadata)(nil), // 3: google.cloud.video.stitcher.v1.RequestMetadata - (*ResponseMetadata)(nil), // 4: google.cloud.video.stitcher.v1.ResponseMetadata - (*structpb.Struct)(nil), // 5: google.protobuf.Struct - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (*LiveAdTagDetail)(nil), // 0: google.cloud.video.stitcher.v1.LiveAdTagDetail + (*VodAdTagDetail)(nil), // 1: google.cloud.video.stitcher.v1.VodAdTagDetail + (*AdRequest)(nil), // 2: google.cloud.video.stitcher.v1.AdRequest + (*RequestMetadata)(nil), // 3: google.cloud.video.stitcher.v1.RequestMetadata + (*ResponseMetadata)(nil), // 4: google.cloud.video.stitcher.v1.ResponseMetadata + (*_struct.Struct)(nil), // 5: google.protobuf.Struct + (*duration.Duration)(nil), // 6: google.protobuf.Duration } var file_google_cloud_video_stitcher_v1_ad_tag_details_proto_depIdxs = []int32{ 2, // 0: google.cloud.video.stitcher.v1.LiveAdTagDetail.ad_requests:type_name -> google.cloud.video.stitcher.v1.AdRequest diff --git a/video/stitcher/apiv1/stitcherpb/cdn_keys.pb.go b/video/stitcher/apiv1/stitcherpb/cdn_keys.pb.go index 8829e86ea263..fc7acf33bb7d 100644 --- a/video/stitcher/apiv1/stitcherpb/cdn_keys.pb.go +++ b/video/stitcher/apiv1/stitcherpb/cdn_keys.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/cdn_keys.proto package stitcherpb diff --git a/video/stitcher/apiv1/stitcherpb/companions.pb.go b/video/stitcher/apiv1/stitcherpb/companions.pb.go index 7c793924afcd..f12c96c1bb59 100644 --- a/video/stitcher/apiv1/stitcherpb/companions.pb.go +++ b/video/stitcher/apiv1/stitcherpb/companions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/companions.proto package stitcherpb diff --git a/video/stitcher/apiv1/stitcherpb/events.pb.go b/video/stitcher/apiv1/stitcherpb/events.pb.go index b36edeaefcde..6ef26177c169 100644 --- a/video/stitcher/apiv1/stitcherpb/events.pb.go +++ b/video/stitcher/apiv1/stitcherpb/events.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/events.proto package stitcherpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -190,7 +190,7 @@ type Event struct { // The ID of the event. Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // The offset in seconds if the event type is `PROGRESS`. - Offset *durationpb.Duration `protobuf:"bytes,4,opt,name=offset,proto3" json:"offset,omitempty"` + Offset *duration.Duration `protobuf:"bytes,4,opt,name=offset,proto3" json:"offset,omitempty"` } func (x *Event) Reset() { @@ -246,7 +246,7 @@ func (x *Event) GetId() string { return "" } -func (x *Event) GetOffset() *durationpb.Duration { +func (x *Event) GetOffset() *duration.Duration { if x != nil { return x.Offset } @@ -262,7 +262,7 @@ type ProgressEvent struct { // The time when the following tracking events occurs. The time is in // seconds relative to the start of the VOD asset. - TimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` // The list of progress tracking events for the ad break. These can be of // the following IAB types: `BREAK_START`, `BREAK_END`, `IMPRESSION`, // `CREATIVE_VIEW`, `START`, `FIRST_QUARTILE`, `MIDPOINT`, `THIRD_QUARTILE`, @@ -302,7 +302,7 @@ func (*ProgressEvent) Descriptor() ([]byte, []int) { return file_google_cloud_video_stitcher_v1_events_proto_rawDescGZIP(), []int{1} } -func (x *ProgressEvent) GetTimeOffset() *durationpb.Duration { +func (x *ProgressEvent) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -395,10 +395,10 @@ func file_google_cloud_video_stitcher_v1_events_proto_rawDescGZIP() []byte { var file_google_cloud_video_stitcher_v1_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_video_stitcher_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_video_stitcher_v1_events_proto_goTypes = []interface{}{ - (Event_EventType)(0), // 0: google.cloud.video.stitcher.v1.Event.EventType - (*Event)(nil), // 1: google.cloud.video.stitcher.v1.Event - (*ProgressEvent)(nil), // 2: google.cloud.video.stitcher.v1.ProgressEvent - (*durationpb.Duration)(nil), // 3: google.protobuf.Duration + (Event_EventType)(0), // 0: google.cloud.video.stitcher.v1.Event.EventType + (*Event)(nil), // 1: google.cloud.video.stitcher.v1.Event + (*ProgressEvent)(nil), // 2: google.cloud.video.stitcher.v1.ProgressEvent + (*duration.Duration)(nil), // 3: google.protobuf.Duration } var file_google_cloud_video_stitcher_v1_events_proto_depIdxs = []int32{ 0, // 0: google.cloud.video.stitcher.v1.Event.type:type_name -> google.cloud.video.stitcher.v1.Event.EventType diff --git a/video/stitcher/apiv1/stitcherpb/sessions.pb.go b/video/stitcher/apiv1/stitcherpb/sessions.pb.go index 3890af51f9b4..86ad88bf62ec 100644 --- a/video/stitcher/apiv1/stitcherpb/sessions.pb.go +++ b/video/stitcher/apiv1/stitcherpb/sessions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/sessions.proto package stitcherpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -347,7 +347,7 @@ type VodSessionAd struct { unknownFields protoimpl.UnknownFields // Duration in seconds of the ad. - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` // Metadata of companion ads associated with the ad. CompanionAds *CompanionAds `protobuf:"bytes,2,opt,name=companion_ads,json=companionAds,proto3" json:"companion_ads,omitempty"` // The list of progress tracking events for the ad break. These can be of @@ -390,7 +390,7 @@ func (*VodSessionAd) Descriptor() ([]byte, []int) { return file_google_cloud_video_stitcher_v1_sessions_proto_rawDescGZIP(), []int{2} } -func (x *VodSessionAd) GetDuration() *durationpb.Duration { +func (x *VodSessionAd) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -419,7 +419,7 @@ type VodSessionContent struct { // The total duration in seconds of the content including the ads stitched // in. - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` } func (x *VodSessionContent) Reset() { @@ -454,7 +454,7 @@ func (*VodSessionContent) Descriptor() ([]byte, []int) { return file_google_cloud_video_stitcher_v1_sessions_proto_rawDescGZIP(), []int{3} } -func (x *VodSessionContent) GetDuration() *durationpb.Duration { +func (x *VodSessionContent) GetDuration() *duration.Duration { if x != nil { return x.Duration } @@ -472,9 +472,9 @@ type VodSessionAdBreak struct { // Ordered list of ads stitched into the ad break. Ads []*VodSessionAd `protobuf:"bytes,2,rep,name=ads,proto3" json:"ads,omitempty"` // Ad break end time in seconds relative to the start of the VOD asset. - EndTimeOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` + EndTimeOffset *duration.Duration `protobuf:"bytes,3,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` // Ad break start time in seconds relative to the start of the VOD asset. - StartTimeOffset *durationpb.Duration `protobuf:"bytes,4,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,4,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` } func (x *VodSessionAdBreak) Reset() { @@ -523,14 +523,14 @@ func (x *VodSessionAdBreak) GetAds() []*VodSessionAd { return nil } -func (x *VodSessionAdBreak) GetEndTimeOffset() *durationpb.Duration { +func (x *VodSessionAdBreak) GetEndTimeOffset() *duration.Duration { if x != nil { return x.EndTimeOffset } return nil } -func (x *VodSessionAdBreak) GetStartTimeOffset() *durationpb.Duration { +func (x *VodSessionAdBreak) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } @@ -1111,7 +1111,7 @@ var file_google_cloud_video_stitcher_v1_sessions_proto_goTypes = []interface{}{ nil, // 11: google.cloud.video.stitcher.v1.VodSession.AdTagMacroMapEntry nil, // 12: google.cloud.video.stitcher.v1.LiveSession.AdTagMapEntry nil, // 13: google.cloud.video.stitcher.v1.LiveSession.AdTagMacrosEntry - (*durationpb.Duration)(nil), // 14: google.protobuf.Duration + (*duration.Duration)(nil), // 14: google.protobuf.Duration (*CompanionAds)(nil), // 15: google.cloud.video.stitcher.v1.CompanionAds (*Event)(nil), // 16: google.cloud.video.stitcher.v1.Event (*ProgressEvent)(nil), // 17: google.cloud.video.stitcher.v1.ProgressEvent diff --git a/video/stitcher/apiv1/stitcherpb/slates.pb.go b/video/stitcher/apiv1/stitcherpb/slates.pb.go index 153181361e27..da9a95b9315f 100644 --- a/video/stitcher/apiv1/stitcherpb/slates.pb.go +++ b/video/stitcher/apiv1/stitcherpb/slates.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/slates.proto package stitcherpb diff --git a/video/stitcher/apiv1/stitcherpb/stitch_details.pb.go b/video/stitcher/apiv1/stitcherpb/stitch_details.pb.go index 10e8aa47ea89..ffe712affd6f 100644 --- a/video/stitcher/apiv1/stitcherpb/stitch_details.pb.go +++ b/video/stitcher/apiv1/stitcherpb/stitch_details.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/stitch_details.proto package stitcherpb @@ -24,11 +24,11 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -108,11 +108,11 @@ type AdStitchDetail struct { // Required. The ad ID of the processed ad. AdId string `protobuf:"bytes,2,opt,name=ad_id,json=adId,proto3" json:"ad_id,omitempty"` // Required. The time offset of the processed ad. - AdTimeOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=ad_time_offset,json=adTimeOffset,proto3" json:"ad_time_offset,omitempty"` + AdTimeOffset *duration.Duration `protobuf:"bytes,3,opt,name=ad_time_offset,json=adTimeOffset,proto3" json:"ad_time_offset,omitempty"` // Optional. Indicates the reason why the ad has been skipped. SkipReason string `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"` // Optional. The metadata of the chosen media file for the ad. - Media map[string]*structpb.Value `protobuf:"bytes,5,rep,name=media,proto3" json:"media,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Media map[string]*_struct.Value `protobuf:"bytes,5,rep,name=media,proto3" json:"media,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *AdStitchDetail) Reset() { @@ -161,7 +161,7 @@ func (x *AdStitchDetail) GetAdId() string { return "" } -func (x *AdStitchDetail) GetAdTimeOffset() *durationpb.Duration { +func (x *AdStitchDetail) GetAdTimeOffset() *duration.Duration { if x != nil { return x.AdTimeOffset } @@ -175,7 +175,7 @@ func (x *AdStitchDetail) GetSkipReason() string { return "" } -func (x *AdStitchDetail) GetMedia() map[string]*structpb.Value { +func (x *AdStitchDetail) GetMedia() map[string]*_struct.Value { if x != nil { return x.Media } @@ -264,11 +264,11 @@ func file_google_cloud_video_stitcher_v1_stitch_details_proto_rawDescGZIP() []by var file_google_cloud_video_stitcher_v1_stitch_details_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_video_stitcher_v1_stitch_details_proto_goTypes = []interface{}{ - (*VodStitchDetail)(nil), // 0: google.cloud.video.stitcher.v1.VodStitchDetail - (*AdStitchDetail)(nil), // 1: google.cloud.video.stitcher.v1.AdStitchDetail - nil, // 2: google.cloud.video.stitcher.v1.AdStitchDetail.MediaEntry - (*durationpb.Duration)(nil), // 3: google.protobuf.Duration - (*structpb.Value)(nil), // 4: google.protobuf.Value + (*VodStitchDetail)(nil), // 0: google.cloud.video.stitcher.v1.VodStitchDetail + (*AdStitchDetail)(nil), // 1: google.cloud.video.stitcher.v1.AdStitchDetail + nil, // 2: google.cloud.video.stitcher.v1.AdStitchDetail.MediaEntry + (*duration.Duration)(nil), // 3: google.protobuf.Duration + (*_struct.Value)(nil), // 4: google.protobuf.Value } var file_google_cloud_video_stitcher_v1_stitch_details_proto_depIdxs = []int32{ 1, // 0: google.cloud.video.stitcher.v1.VodStitchDetail.ad_stitch_details:type_name -> google.cloud.video.stitcher.v1.AdStitchDetail diff --git a/video/stitcher/apiv1/stitcherpb/video_stitcher_service.pb.go b/video/stitcher/apiv1/stitcherpb/video_stitcher_service.pb.go index 23d2a29d6d05..5c5f3698b7bb 100644 --- a/video/stitcher/apiv1/stitcherpb/video_stitcher_service.pb.go +++ b/video/stitcher/apiv1/stitcherpb/video_stitcher_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/stitcher/v1/video_stitcher_service.proto package stitcherpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -380,7 +380,7 @@ type UpdateCdnKeyRequest struct { // Required. The update mask applies to the resource. // For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateCdnKeyRequest) Reset() { @@ -422,7 +422,7 @@ func (x *UpdateCdnKeyRequest) GetCdnKey() *CdnKey { return nil } -func (x *UpdateCdnKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateCdnKeyRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1349,7 +1349,7 @@ type UpdateSlateRequest struct { // Required. The resource with updated fields. Slate *Slate `protobuf:"bytes,1,opt,name=slate,proto3" json:"slate,omitempty"` // Required. The update mask which specifies fields which should be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSlateRequest) Reset() { @@ -1391,7 +1391,7 @@ func (x *UpdateSlateRequest) GetSlate() *Slate { return nil } -func (x *UpdateSlateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSlateRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2123,14 +2123,14 @@ var file_google_cloud_video_stitcher_v1_video_stitcher_service_proto_goTypes = [ (*CreateLiveSessionRequest)(nil), // 23: google.cloud.video.stitcher.v1.CreateLiveSessionRequest (*GetLiveSessionRequest)(nil), // 24: google.cloud.video.stitcher.v1.GetLiveSessionRequest (*CdnKey)(nil), // 25: google.cloud.video.stitcher.v1.CdnKey - (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 26: google.protobuf.FieldMask (*VodSession)(nil), // 27: google.cloud.video.stitcher.v1.VodSession (*VodStitchDetail)(nil), // 28: google.cloud.video.stitcher.v1.VodStitchDetail (*VodAdTagDetail)(nil), // 29: google.cloud.video.stitcher.v1.VodAdTagDetail (*LiveAdTagDetail)(nil), // 30: google.cloud.video.stitcher.v1.LiveAdTagDetail (*Slate)(nil), // 31: google.cloud.video.stitcher.v1.Slate (*LiveSession)(nil), // 32: google.cloud.video.stitcher.v1.LiveSession - (*emptypb.Empty)(nil), // 33: google.protobuf.Empty + (*empty.Empty)(nil), // 33: google.protobuf.Empty } var file_google_cloud_video_stitcher_v1_video_stitcher_service_proto_depIdxs = []int32{ 25, // 0: google.cloud.video.stitcher.v1.CreateCdnKeyRequest.cdn_key:type_name -> google.cloud.video.stitcher.v1.CdnKey @@ -2544,7 +2544,7 @@ type VideoStitcherServiceClient interface { // Returns the specified CDN key. GetCdnKey(ctx context.Context, in *GetCdnKeyRequest, opts ...grpc.CallOption) (*CdnKey, error) // Deletes the specified CDN key. - DeleteCdnKey(ctx context.Context, in *DeleteCdnKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteCdnKey(ctx context.Context, in *DeleteCdnKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the specified CDN key. Only update fields specified // in the call method body. UpdateCdnKey(ctx context.Context, in *UpdateCdnKeyRequest, opts ...grpc.CallOption) (*CdnKey, error) @@ -2576,7 +2576,7 @@ type VideoStitcherServiceClient interface { // Updates the specified slate. UpdateSlate(ctx context.Context, in *UpdateSlateRequest, opts ...grpc.CallOption) (*Slate, error) // Deletes the specified slate. - DeleteSlate(ctx context.Context, in *DeleteSlateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteSlate(ctx context.Context, in *DeleteSlateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a new live session. CreateLiveSession(ctx context.Context, in *CreateLiveSessionRequest, opts ...grpc.CallOption) (*LiveSession, error) // Returns the details for the specified live session. @@ -2618,8 +2618,8 @@ func (c *videoStitcherServiceClient) GetCdnKey(ctx context.Context, in *GetCdnKe return out, nil } -func (c *videoStitcherServiceClient) DeleteCdnKey(ctx context.Context, in *DeleteCdnKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *videoStitcherServiceClient) DeleteCdnKey(ctx context.Context, in *DeleteCdnKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteCdnKey", in, out, opts...) if err != nil { return nil, err @@ -2744,8 +2744,8 @@ func (c *videoStitcherServiceClient) UpdateSlate(ctx context.Context, in *Update return out, nil } -func (c *videoStitcherServiceClient) DeleteSlate(ctx context.Context, in *DeleteSlateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *videoStitcherServiceClient) DeleteSlate(ctx context.Context, in *DeleteSlateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteSlate", in, out, opts...) if err != nil { return nil, err @@ -2780,7 +2780,7 @@ type VideoStitcherServiceServer interface { // Returns the specified CDN key. GetCdnKey(context.Context, *GetCdnKeyRequest) (*CdnKey, error) // Deletes the specified CDN key. - DeleteCdnKey(context.Context, *DeleteCdnKeyRequest) (*emptypb.Empty, error) + DeleteCdnKey(context.Context, *DeleteCdnKeyRequest) (*empty.Empty, error) // Updates the specified CDN key. Only update fields specified // in the call method body. UpdateCdnKey(context.Context, *UpdateCdnKeyRequest) (*CdnKey, error) @@ -2812,7 +2812,7 @@ type VideoStitcherServiceServer interface { // Updates the specified slate. UpdateSlate(context.Context, *UpdateSlateRequest) (*Slate, error) // Deletes the specified slate. - DeleteSlate(context.Context, *DeleteSlateRequest) (*emptypb.Empty, error) + DeleteSlate(context.Context, *DeleteSlateRequest) (*empty.Empty, error) // Creates a new live session. CreateLiveSession(context.Context, *CreateLiveSessionRequest) (*LiveSession, error) // Returns the details for the specified live session. @@ -2832,7 +2832,7 @@ func (*UnimplementedVideoStitcherServiceServer) ListCdnKeys(context.Context, *Li func (*UnimplementedVideoStitcherServiceServer) GetCdnKey(context.Context, *GetCdnKeyRequest) (*CdnKey, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCdnKey not implemented") } -func (*UnimplementedVideoStitcherServiceServer) DeleteCdnKey(context.Context, *DeleteCdnKeyRequest) (*emptypb.Empty, error) { +func (*UnimplementedVideoStitcherServiceServer) DeleteCdnKey(context.Context, *DeleteCdnKeyRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCdnKey not implemented") } func (*UnimplementedVideoStitcherServiceServer) UpdateCdnKey(context.Context, *UpdateCdnKeyRequest) (*CdnKey, error) { @@ -2874,7 +2874,7 @@ func (*UnimplementedVideoStitcherServiceServer) GetSlate(context.Context, *GetSl func (*UnimplementedVideoStitcherServiceServer) UpdateSlate(context.Context, *UpdateSlateRequest) (*Slate, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSlate not implemented") } -func (*UnimplementedVideoStitcherServiceServer) DeleteSlate(context.Context, *DeleteSlateRequest) (*emptypb.Empty, error) { +func (*UnimplementedVideoStitcherServiceServer) DeleteSlate(context.Context, *DeleteSlateRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSlate not implemented") } func (*UnimplementedVideoStitcherServiceServer) CreateLiveSession(context.Context, *CreateLiveSessionRequest) (*LiveSession, error) { diff --git a/video/transcoder/apiv1/transcoderpb/resources.pb.go b/video/transcoder/apiv1/transcoderpb/resources.pb.go index 0b6ccca610de..8ee3c3cc2f80 100644 --- a/video/transcoder/apiv1/transcoderpb/resources.pb.go +++ b/video/transcoder/apiv1/transcoderpb/resources.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/transcoder/v1/resources.proto package transcoderpb @@ -24,12 +24,12 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -242,11 +242,11 @@ type Job struct { // Output only. The current state of the job. State Job_ProcessingState `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.video.transcoder.v1.Job_ProcessingState" json:"state,omitempty"` // Output only. The time the job was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the transcoding started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time the transcoding finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Job time to live value in days, which will be effective after job // completion. Job should be deleted automatically after the given TTL. Enter // a value between 1 and 90. The default is 30. @@ -340,21 +340,21 @@ func (x *Job) GetState() Job_ProcessingState { return Job_PROCESSING_STATE_UNSPECIFIED } -func (x *Job) GetCreateTime() *timestamppb.Timestamp { +func (x *Job) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Job) GetStartTime() *timestamppb.Timestamp { +func (x *Job) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Job) GetEndTime() *timestamppb.Timestamp { +func (x *Job) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -749,10 +749,10 @@ type EditAtom struct { // End time in seconds for the atom, relative to the input file timeline. // When `end_time_offset` is not specified, the `inputs` are used until // the end of the atom. - EndTimeOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` + EndTimeOffset *duration.Duration `protobuf:"bytes,3,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` // Start time in seconds for the atom, relative to the input file timeline. // The default is `0s`. - StartTimeOffset *durationpb.Duration `protobuf:"bytes,4,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,4,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` } func (x *EditAtom) Reset() { @@ -801,14 +801,14 @@ func (x *EditAtom) GetInputs() []string { return nil } -func (x *EditAtom) GetEndTimeOffset() *durationpb.Duration { +func (x *EditAtom) GetEndTimeOffset() *duration.Duration { if x != nil { return x.EndTimeOffset } return nil } -func (x *EditAtom) GetStartTimeOffset() *durationpb.Duration { +func (x *EditAtom) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } @@ -823,7 +823,7 @@ type AdBreak struct { // Start time in seconds for the ad break, relative to the output file // timeline. The default is `0s`. - StartTimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` } func (x *AdBreak) Reset() { @@ -858,7 +858,7 @@ func (*AdBreak) Descriptor() ([]byte, []int) { return file_google_cloud_video_transcoder_v1_resources_proto_rawDescGZIP(), []int{6} } -func (x *AdBreak) GetStartTimeOffset() *durationpb.Duration { +func (x *AdBreak) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } @@ -1236,11 +1236,11 @@ type SpriteSheet struct { RowCount int32 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"` // Start time in seconds, relative to the output file timeline. Determines the // first sprite to pick. The default is `0s`. - StartTimeOffset *durationpb.Duration `protobuf:"bytes,7,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,7,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` // End time in seconds, relative to the output file timeline. When // `end_time_offset` is not specified, the sprites are generated until the end // of the output file. - EndTimeOffset *durationpb.Duration `protobuf:"bytes,8,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` + EndTimeOffset *duration.Duration `protobuf:"bytes,8,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` // Specify either total number of sprites or interval to create sprites. // // Types that are assignable to ExtractionStrategy: @@ -1329,14 +1329,14 @@ func (x *SpriteSheet) GetRowCount() int32 { return 0 } -func (x *SpriteSheet) GetStartTimeOffset() *durationpb.Duration { +func (x *SpriteSheet) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } return nil } -func (x *SpriteSheet) GetEndTimeOffset() *durationpb.Duration { +func (x *SpriteSheet) GetEndTimeOffset() *duration.Duration { if x != nil { return x.EndTimeOffset } @@ -1357,7 +1357,7 @@ func (x *SpriteSheet) GetTotalCount() int32 { return 0 } -func (x *SpriteSheet) GetInterval() *durationpb.Duration { +func (x *SpriteSheet) GetInterval() *duration.Duration { if x, ok := x.GetExtractionStrategy().(*SpriteSheet_Interval); ok { return x.Interval } @@ -1385,7 +1385,7 @@ type SpriteSheet_TotalCount struct { type SpriteSheet_Interval struct { // Starting from `0s`, create sprites at regular intervals. Specify the // interval value in seconds. - Interval *durationpb.Duration `protobuf:"bytes,10,opt,name=interval,proto3,oneof"` + Interval *duration.Duration `protobuf:"bytes,10,opt,name=interval,proto3,oneof"` } func (*SpriteSheet_TotalCount) isSpriteSheet_ExtractionStrategy() {} @@ -1836,7 +1836,7 @@ type SegmentSettings struct { // `segmentDuration` must be greater than or equal to // [`gopDuration`](#videostream), and `segmentDuration` must be divisible by // [`gopDuration`](#videostream). - SegmentDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` + SegmentDuration *duration.Duration `protobuf:"bytes,1,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` // Required. Create an individual segment file. The default is `false`. IndividualSegments bool `protobuf:"varint,3,opt,name=individual_segments,json=individualSegments,proto3" json:"individual_segments,omitempty"` } @@ -1873,7 +1873,7 @@ func (*SegmentSettings) Descriptor() ([]byte, []int) { return file_google_cloud_video_transcoder_v1_resources_proto_rawDescGZIP(), []int{17} } -func (x *SegmentSettings) GetSegmentDuration() *durationpb.Duration { +func (x *SegmentSettings) GetSegmentDuration() *duration.Duration { if x != nil { return x.SegmentDuration } @@ -2030,7 +2030,7 @@ type Overlay_AnimationStatic struct { // output video. Xy *Overlay_NormalizedCoordinate `protobuf:"bytes,1,opt,name=xy,proto3" json:"xy,omitempty"` // The time to start displaying the overlay object, in seconds. Default: 0 - StartTimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` } func (x *Overlay_AnimationStatic) Reset() { @@ -2072,7 +2072,7 @@ func (x *Overlay_AnimationStatic) GetXy() *Overlay_NormalizedCoordinate { return nil } -func (x *Overlay_AnimationStatic) GetStartTimeOffset() *durationpb.Duration { +func (x *Overlay_AnimationStatic) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } @@ -2094,10 +2094,10 @@ type Overlay_AnimationFade struct { // output video. Xy *Overlay_NormalizedCoordinate `protobuf:"bytes,2,opt,name=xy,proto3" json:"xy,omitempty"` // The time to start the fade animation, in seconds. Default: 0 - StartTimeOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,3,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` // The time to end the fade animation, in seconds. Default: // `start_time_offset` + 1s - EndTimeOffset *durationpb.Duration `protobuf:"bytes,4,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` + EndTimeOffset *duration.Duration `protobuf:"bytes,4,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` } func (x *Overlay_AnimationFade) Reset() { @@ -2146,14 +2146,14 @@ func (x *Overlay_AnimationFade) GetXy() *Overlay_NormalizedCoordinate { return nil } -func (x *Overlay_AnimationFade) GetStartTimeOffset() *durationpb.Duration { +func (x *Overlay_AnimationFade) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } return nil } -func (x *Overlay_AnimationFade) GetEndTimeOffset() *durationpb.Duration { +func (x *Overlay_AnimationFade) GetEndTimeOffset() *duration.Duration { if x != nil { return x.EndTimeOffset } @@ -2169,7 +2169,7 @@ type Overlay_AnimationEnd struct { unknownFields protoimpl.UnknownFields // The time to end overlay object, in seconds. Default: 0 - StartTimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` } func (x *Overlay_AnimationEnd) Reset() { @@ -2204,7 +2204,7 @@ func (*Overlay_AnimationEnd) Descriptor() ([]byte, []int) { return file_google_cloud_video_transcoder_v1_resources_proto_rawDescGZIP(), []int{12, 4} } -func (x *Overlay_AnimationEnd) GetStartTimeOffset() *durationpb.Duration { +func (x *Overlay_AnimationEnd) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } @@ -2967,7 +2967,7 @@ func (x *VideoStream_H264CodecSettings) GetGopFrameCount() int32 { return 0 } -func (x *VideoStream_H264CodecSettings) GetGopDuration() *durationpb.Duration { +func (x *VideoStream_H264CodecSettings) GetGopDuration() *duration.Duration { if x, ok := x.GetGopMode().(*VideoStream_H264CodecSettings_GopDuration); ok { return x.GopDuration } @@ -3060,7 +3060,7 @@ type VideoStream_H264CodecSettings_GopDuration struct { // [`segmentDuration`](#SegmentSettings), and // [`segmentDuration`](#SegmentSettings) must be divisible by // `gopDuration`. - GopDuration *durationpb.Duration `protobuf:"bytes,10,opt,name=gop_duration,json=gopDuration,proto3,oneof"` + GopDuration *duration.Duration `protobuf:"bytes,10,opt,name=gop_duration,json=gopDuration,proto3,oneof"` } func (*VideoStream_H264CodecSettings_GopFrameCount) isVideoStream_H264CodecSettings_GopMode() {} @@ -3294,7 +3294,7 @@ func (x *VideoStream_H265CodecSettings) GetGopFrameCount() int32 { return 0 } -func (x *VideoStream_H265CodecSettings) GetGopDuration() *durationpb.Duration { +func (x *VideoStream_H265CodecSettings) GetGopDuration() *duration.Duration { if x, ok := x.GetGopMode().(*VideoStream_H265CodecSettings_GopDuration); ok { return x.GopDuration } @@ -3380,7 +3380,7 @@ type VideoStream_H265CodecSettings_GopDuration struct { // [`segmentDuration`](#SegmentSettings), and // [`segmentDuration`](#SegmentSettings) must be divisible by // `gopDuration`. - GopDuration *durationpb.Duration `protobuf:"bytes,10,opt,name=gop_duration,json=gopDuration,proto3,oneof"` + GopDuration *duration.Duration `protobuf:"bytes,10,opt,name=gop_duration,json=gopDuration,proto3,oneof"` } func (*VideoStream_H265CodecSettings_GopFrameCount) isVideoStream_H265CodecSettings_GopMode() {} @@ -3555,7 +3555,7 @@ func (x *VideoStream_Vp9CodecSettings) GetGopFrameCount() int32 { return 0 } -func (x *VideoStream_Vp9CodecSettings) GetGopDuration() *durationpb.Duration { +func (x *VideoStream_Vp9CodecSettings) GetGopDuration() *duration.Duration { if x, ok := x.GetGopMode().(*VideoStream_Vp9CodecSettings_GopDuration); ok { return x.GopDuration } @@ -3585,7 +3585,7 @@ type VideoStream_Vp9CodecSettings_GopDuration struct { // [`segmentDuration`](#SegmentSettings), and // [`segmentDuration`](#SegmentSettings) must be divisible by // `gopDuration`. - GopDuration *durationpb.Duration `protobuf:"bytes,9,opt,name=gop_duration,json=gopDuration,proto3,oneof"` + GopDuration *duration.Duration `protobuf:"bytes,9,opt,name=gop_duration,json=gopDuration,proto3,oneof"` } func (*VideoStream_Vp9CodecSettings_GopFrameCount) isVideoStream_Vp9CodecSettings_GopMode() {} @@ -4430,9 +4430,9 @@ var file_google_cloud_video_transcoder_v1_resources_proto_goTypes = []interface{ (*VideoStream_Vp9CodecSettings)(nil), // 37: google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings (*AudioStream_AudioMapping)(nil), // 38: google.cloud.video.transcoder.v1.AudioStream.AudioMapping (*TextStream_TextMapping)(nil), // 39: google.cloud.video.transcoder.v1.TextStream.TextMapping - (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 40: google.protobuf.Timestamp (*status.Status)(nil), // 41: google.rpc.Status - (*durationpb.Duration)(nil), // 42: google.protobuf.Duration + (*duration.Duration)(nil), // 42: google.protobuf.Duration } var file_google_cloud_video_transcoder_v1_resources_proto_depIdxs = []int32{ 5, // 0: google.cloud.video.transcoder.v1.Job.config:type_name -> google.cloud.video.transcoder.v1.JobConfig diff --git a/video/transcoder/apiv1/transcoderpb/services.pb.go b/video/transcoder/apiv1/transcoderpb/services.pb.go index be7f7ca704b7..2b1a5f72552e 100644 --- a/video/transcoder/apiv1/transcoderpb/services.pb.go +++ b/video/transcoder/apiv1/transcoderpb/services.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/video/transcoder/v1/services.proto package transcoderpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) const ( @@ -963,7 +963,7 @@ var file_google_cloud_video_transcoder_v1_services_proto_goTypes = []interface{} (*ListJobTemplatesResponse)(nil), // 9: google.cloud.video.transcoder.v1.ListJobTemplatesResponse (*Job)(nil), // 10: google.cloud.video.transcoder.v1.Job (*JobTemplate)(nil), // 11: google.cloud.video.transcoder.v1.JobTemplate - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*empty.Empty)(nil), // 12: google.protobuf.Empty } var file_google_cloud_video_transcoder_v1_services_proto_depIdxs = []int32{ 10, // 0: google.cloud.video.transcoder.v1.CreateJobRequest.job:type_name -> google.cloud.video.transcoder.v1.Job @@ -1160,7 +1160,7 @@ type TranscoderServiceClient interface { // Returns the job data. GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) // Deletes a job. - DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a job template in the specified region. CreateJobTemplate(ctx context.Context, in *CreateJobTemplateRequest, opts ...grpc.CallOption) (*JobTemplate, error) // Lists job templates in the specified region. @@ -1168,7 +1168,7 @@ type TranscoderServiceClient interface { // Returns the job template data. GetJobTemplate(ctx context.Context, in *GetJobTemplateRequest, opts ...grpc.CallOption) (*JobTemplate, error) // Deletes a job template. - DeleteJobTemplate(ctx context.Context, in *DeleteJobTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteJobTemplate(ctx context.Context, in *DeleteJobTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type transcoderServiceClient struct { @@ -1206,8 +1206,8 @@ func (c *transcoderServiceClient) GetJob(ctx context.Context, in *GetJobRequest, return out, nil } -func (c *transcoderServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *transcoderServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.video.transcoder.v1.TranscoderService/DeleteJob", in, out, opts...) if err != nil { return nil, err @@ -1242,8 +1242,8 @@ func (c *transcoderServiceClient) GetJobTemplate(ctx context.Context, in *GetJob return out, nil } -func (c *transcoderServiceClient) DeleteJobTemplate(ctx context.Context, in *DeleteJobTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *transcoderServiceClient) DeleteJobTemplate(ctx context.Context, in *DeleteJobTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.video.transcoder.v1.TranscoderService/DeleteJobTemplate", in, out, opts...) if err != nil { return nil, err @@ -1260,7 +1260,7 @@ type TranscoderServiceServer interface { // Returns the job data. GetJob(context.Context, *GetJobRequest) (*Job, error) // Deletes a job. - DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) + DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) // Creates a job template in the specified region. CreateJobTemplate(context.Context, *CreateJobTemplateRequest) (*JobTemplate, error) // Lists job templates in the specified region. @@ -1268,7 +1268,7 @@ type TranscoderServiceServer interface { // Returns the job template data. GetJobTemplate(context.Context, *GetJobTemplateRequest) (*JobTemplate, error) // Deletes a job template. - DeleteJobTemplate(context.Context, *DeleteJobTemplateRequest) (*emptypb.Empty, error) + DeleteJobTemplate(context.Context, *DeleteJobTemplateRequest) (*empty.Empty, error) } // UnimplementedTranscoderServiceServer can be embedded to have forward compatible implementations. @@ -1284,7 +1284,7 @@ func (*UnimplementedTranscoderServiceServer) ListJobs(context.Context, *ListJobs func (*UnimplementedTranscoderServiceServer) GetJob(context.Context, *GetJobRequest) (*Job, error) { return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") } -func (*UnimplementedTranscoderServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) { +func (*UnimplementedTranscoderServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented") } func (*UnimplementedTranscoderServiceServer) CreateJobTemplate(context.Context, *CreateJobTemplateRequest) (*JobTemplate, error) { @@ -1296,7 +1296,7 @@ func (*UnimplementedTranscoderServiceServer) ListJobTemplates(context.Context, * func (*UnimplementedTranscoderServiceServer) GetJobTemplate(context.Context, *GetJobTemplateRequest) (*JobTemplate, error) { return nil, status.Errorf(codes.Unimplemented, "method GetJobTemplate not implemented") } -func (*UnimplementedTranscoderServiceServer) DeleteJobTemplate(context.Context, *DeleteJobTemplateRequest) (*emptypb.Empty, error) { +func (*UnimplementedTranscoderServiceServer) DeleteJobTemplate(context.Context, *DeleteJobTemplateRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteJobTemplate not implemented") } diff --git a/videointelligence/apiv1/videointelligencepb/video_intelligence.pb.go b/videointelligence/apiv1/videointelligencepb/video_intelligence.pb.go index 9dfd221af8fb..5da116e3adc5 100644 --- a/videointelligence/apiv1/videointelligencepb/video_intelligence.pb.go +++ b/videointelligence/apiv1/videointelligencepb/video_intelligence.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/videointelligence/v1/video_intelligence.proto package videointelligencepb @@ -25,6 +25,8 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" @@ -33,8 +35,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -953,10 +953,10 @@ type VideoSegment struct { // Time-offset, relative to the beginning of the video, // corresponding to the start of the segment (inclusive). - StartTimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` + StartTimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` // Time-offset, relative to the beginning of the video, // corresponding to the end of the segment (inclusive). - EndTimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` + EndTimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` } func (x *VideoSegment) Reset() { @@ -991,14 +991,14 @@ func (*VideoSegment) Descriptor() ([]byte, []int) { return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{9} } -func (x *VideoSegment) GetStartTimeOffset() *durationpb.Duration { +func (x *VideoSegment) GetStartTimeOffset() *duration.Duration { if x != nil { return x.StartTimeOffset } return nil } -func (x *VideoSegment) GetEndTimeOffset() *durationpb.Duration { +func (x *VideoSegment) GetEndTimeOffset() *duration.Duration { if x != nil { return x.EndTimeOffset } @@ -1071,7 +1071,7 @@ type LabelFrame struct { // Time-offset, relative to the beginning of the video, corresponding to the // video frame for this location. - TimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` // Confidence that the label is accurate. Range: [0, 1]. Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` } @@ -1108,7 +1108,7 @@ func (*LabelFrame) Descriptor() ([]byte, []int) { return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{11} } -func (x *LabelFrame) GetTimeOffset() *durationpb.Duration { +func (x *LabelFrame) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -1287,7 +1287,7 @@ type ExplicitContentFrame struct { // Time-offset, relative to the beginning of the video, corresponding to the // video frame for this location. - TimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` // Likelihood of the pornography content.. PornographyLikelihood Likelihood `protobuf:"varint,2,opt,name=pornography_likelihood,json=pornographyLikelihood,proto3,enum=google.cloud.videointelligence.v1.Likelihood" json:"pornography_likelihood,omitempty"` } @@ -1324,7 +1324,7 @@ func (*ExplicitContentFrame) Descriptor() ([]byte, []int) { return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{14} } -func (x *ExplicitContentFrame) GetTimeOffset() *durationpb.Duration { +func (x *ExplicitContentFrame) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -1664,7 +1664,7 @@ type FaceFrame struct { NormalizedBoundingBoxes []*NormalizedBoundingBox `protobuf:"bytes,1,rep,name=normalized_bounding_boxes,json=normalizedBoundingBoxes,proto3" json:"normalized_bounding_boxes,omitempty"` // Time-offset, relative to the beginning of the video, // corresponding to the video frame for this location. - TimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` } func (x *FaceFrame) Reset() { @@ -1706,7 +1706,7 @@ func (x *FaceFrame) GetNormalizedBoundingBoxes() []*NormalizedBoundingBox { return nil } -func (x *FaceFrame) GetTimeOffset() *durationpb.Duration { +func (x *FaceFrame) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -1794,7 +1794,7 @@ type TimestampedObject struct { NormalizedBoundingBox *NormalizedBoundingBox `protobuf:"bytes,1,opt,name=normalized_bounding_box,json=normalizedBoundingBox,proto3" json:"normalized_bounding_box,omitempty"` // Time-offset, relative to the beginning of the video, // corresponding to the video frame for this object. - TimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` // Optional. The attributes of the object in the bounding box. Attributes []*DetectedAttribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` // Optional. The detected landmarks. @@ -1840,7 +1840,7 @@ func (x *TimestampedObject) GetNormalizedBoundingBox() *NormalizedBoundingBox { return nil } -func (x *TimestampedObject) GetTimeOffset() *durationpb.Duration { +func (x *TimestampedObject) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -2351,9 +2351,9 @@ type VideoAnnotationProgress struct { // 100 when fully processed. ProgressPercent int32 `protobuf:"varint,2,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` // Time when the request was received. - StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time of the most recent update. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Specifies which feature is being tracked if the request contains more than // one feature. Feature Feature `protobuf:"varint,5,opt,name=feature,proto3,enum=google.cloud.videointelligence.v1.Feature" json:"feature,omitempty"` @@ -2408,14 +2408,14 @@ func (x *VideoAnnotationProgress) GetProgressPercent() int32 { return 0 } -func (x *VideoAnnotationProgress) GetStartTime() *timestamppb.Timestamp { +func (x *VideoAnnotationProgress) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *VideoAnnotationProgress) GetUpdateTime() *timestamppb.Timestamp { +func (x *VideoAnnotationProgress) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2839,12 +2839,12 @@ type WordInfo struct { // corresponding to the start of the spoken word. This field is only set if // `enable_word_time_offsets=true` and only in the top hypothesis. This is an // experimental feature and the accuracy of the time offset can vary. - StartTime *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time offset relative to the beginning of the audio, and // corresponding to the end of the spoken word. This field is only set if // `enable_word_time_offsets=true` and only in the top hypothesis. This is an // experimental feature and the accuracy of the time offset can vary. - EndTime *durationpb.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // The word corresponding to this set of information. Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` // Output only. The confidence estimate between 0.0 and 1.0. A higher number @@ -2893,14 +2893,14 @@ func (*WordInfo) Descriptor() ([]byte, []int) { return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{34} } -func (x *WordInfo) GetStartTime() *durationpb.Duration { +func (x *WordInfo) GetStartTime() *duration.Duration { if x != nil { return x.StartTime } return nil } -func (x *WordInfo) GetEndTime() *durationpb.Duration { +func (x *WordInfo) GetEndTime() *duration.Duration { if x != nil { return x.EndTime } @@ -3134,7 +3134,7 @@ type TextFrame struct { // Bounding polygon of the detected text for this frame. RotatedBoundingBox *NormalizedBoundingPoly `protobuf:"bytes,1,opt,name=rotated_bounding_box,json=rotatedBoundingBox,proto3" json:"rotated_bounding_box,omitempty"` // Timestamp of this frame. - TimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` } func (x *TextFrame) Reset() { @@ -3176,7 +3176,7 @@ func (x *TextFrame) GetRotatedBoundingBox() *NormalizedBoundingPoly { return nil } -func (x *TextFrame) GetTimeOffset() *durationpb.Duration { +func (x *TextFrame) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -3262,7 +3262,7 @@ type ObjectTrackingFrame struct { // The normalized bounding box location of this object track for the frame. NormalizedBoundingBox *NormalizedBoundingBox `protobuf:"bytes,1,opt,name=normalized_bounding_box,json=normalizedBoundingBox,proto3" json:"normalized_bounding_box,omitempty"` // The timestamp of the frame in microseconds. - TimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` + TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` } func (x *ObjectTrackingFrame) Reset() { @@ -3304,7 +3304,7 @@ func (x *ObjectTrackingFrame) GetNormalizedBoundingBox() *NormalizedBoundingBox return nil } -func (x *ObjectTrackingFrame) GetTimeOffset() *durationpb.Duration { +func (x *ObjectTrackingFrame) GetTimeOffset() *duration.Duration { if x != nil { return x.TimeOffset } @@ -4306,9 +4306,9 @@ var file_google_cloud_videointelligence_v1_video_intelligence_proto_goTypes = [] (*ObjectTrackingFrame)(nil), // 43: google.cloud.videointelligence.v1.ObjectTrackingFrame (*ObjectTrackingAnnotation)(nil), // 44: google.cloud.videointelligence.v1.ObjectTrackingAnnotation (*LogoRecognitionAnnotation)(nil), // 45: google.cloud.videointelligence.v1.LogoRecognitionAnnotation - (*durationpb.Duration)(nil), // 46: google.protobuf.Duration + (*duration.Duration)(nil), // 46: google.protobuf.Duration (*status.Status)(nil), // 47: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 48: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 48: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 49: google.longrunning.Operation } var file_google_cloud_videointelligence_v1_video_intelligence_proto_depIdxs = []int32{ diff --git a/vision/v2/apiv1/visionpb/geometry.pb.go b/vision/v2/apiv1/visionpb/geometry.pb.go index 1de81cb58b7b..95736af46d5f 100644 --- a/vision/v2/apiv1/visionpb/geometry.pb.go +++ b/vision/v2/apiv1/visionpb/geometry.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/geometry.proto package visionpb diff --git a/vision/v2/apiv1/visionpb/image_annotator.pb.go b/vision/v2/apiv1/visionpb/image_annotator.pb.go index aca104f2db46..1572ca3cef25 100644 --- a/vision/v2/apiv1/visionpb/image_annotator.pb.go +++ b/vision/v2/apiv1/visionpb/image_annotator.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/image_annotator.proto package visionpb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" @@ -35,7 +36,6 @@ import ( status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -3269,9 +3269,9 @@ type OperationMetadata struct { // Current state of the batch operation. State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.vision.v1.OperationMetadata_State" json:"state,omitempty"` // The time when the batch request was received. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the operation result was last updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *OperationMetadata) Reset() { @@ -3313,14 +3313,14 @@ func (x *OperationMetadata) GetState() OperationMetadata_State { return OperationMetadata_STATE_UNSPECIFIED } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetUpdateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -4175,7 +4175,7 @@ var file_google_cloud_vision_v1_image_annotator_proto_goTypes = []interface{}{ (*WebDetection)(nil), // 49: google.cloud.vision.v1.WebDetection (*ProductSearchResults)(nil), // 50: google.cloud.vision.v1.ProductSearchResults (*status.Status)(nil), // 51: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 52: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 52: google.protobuf.Timestamp (*Position)(nil), // 53: google.cloud.vision.v1.Position (*longrunning.Operation)(nil), // 54: google.longrunning.Operation } diff --git a/vision/v2/apiv1/visionpb/product_search.pb.go b/vision/v2/apiv1/visionpb/product_search.pb.go index 2d0f1209a789..0fe0e6faee19 100644 --- a/vision/v2/apiv1/visionpb/product_search.pb.go +++ b/vision/v2/apiv1/visionpb/product_search.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/product_search.proto package visionpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -139,7 +139,7 @@ type ProductSearchResults struct { // Timestamp of the index which provided these results. Products added to the // product set and products removed from the product set after this time are // not reflected in the current results. - IndexTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` + IndexTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` // List of results, one for each product match. Results []*ProductSearchResults_Result `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` // List of results grouped by products detected in the query image. Each entry @@ -181,7 +181,7 @@ func (*ProductSearchResults) Descriptor() ([]byte, []int) { return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{1} } -func (x *ProductSearchResults) GetIndexTime() *timestamppb.Timestamp { +func (x *ProductSearchResults) GetIndexTime() *timestamp.Timestamp { if x != nil { return x.IndexTime } @@ -529,7 +529,7 @@ var file_google_cloud_vision_v1_product_search_proto_goTypes = []interface{}{ (*ProductSearchResults_ObjectAnnotation)(nil), // 3: google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation (*ProductSearchResults_GroupedResult)(nil), // 4: google.cloud.vision.v1.ProductSearchResults.GroupedResult (*BoundingPoly)(nil), // 5: google.cloud.vision.v1.BoundingPoly - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp (*Product)(nil), // 7: google.cloud.vision.v1.Product } var file_google_cloud_vision_v1_product_search_proto_depIdxs = []int32{ diff --git a/vision/v2/apiv1/visionpb/product_search_service.pb.go b/vision/v2/apiv1/visionpb/product_search_service.pb.go index bf0f1e10c649..381e4694828d 100644 --- a/vision/v2/apiv1/visionpb/product_search_service.pb.go +++ b/vision/v2/apiv1/visionpb/product_search_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/product_search_service.proto package visionpb @@ -25,17 +25,17 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -240,7 +240,7 @@ type ProductSet struct { // "1970-01-01T00:00:00Z". // // This field is ignored when creating a ProductSet. - IndexTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` + IndexTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` // Output only. If there was an error with indexing the product set, the field // is populated. // @@ -294,7 +294,7 @@ func (x *ProductSet) GetDisplayName() string { return "" } -func (x *ProductSet) GetIndexTime() *timestamppb.Timestamp { +func (x *ProductSet) GetIndexTime() *timestamp.Timestamp { if x != nil { return x.IndexTime } @@ -658,7 +658,7 @@ type UpdateProductRequest struct { // If update_mask isn't specified, all mutable fields are to be updated. // Valid mask paths include `product_labels`, `display_name`, and // `description`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateProductRequest) Reset() { @@ -700,7 +700,7 @@ func (x *UpdateProductRequest) GetProduct() *Product { return nil } -func (x *UpdateProductRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateProductRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1023,7 +1023,7 @@ type UpdateProductSetRequest struct { // update. // If update_mask isn't specified, all mutable fields are to be updated. // Valid mask path is `display_name`. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateProductSetRequest) Reset() { @@ -1065,7 +1065,7 @@ func (x *UpdateProductSetRequest) GetProductSet() *ProductSet { return nil } -func (x *UpdateProductSetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateProductSetRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -2020,10 +2020,10 @@ type BatchOperationMetadata struct { // The current state of the batch operation. State BatchOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.vision.v1.BatchOperationMetadata_State" json:"state,omitempty"` // The time when the batch request was submitted to the server. - SubmitTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` + SubmitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // The time when the batch request is finished and // [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *BatchOperationMetadata) Reset() { @@ -2065,14 +2065,14 @@ func (x *BatchOperationMetadata) GetState() BatchOperationMetadata_State { return BatchOperationMetadata_STATE_UNSPECIFIED } -func (x *BatchOperationMetadata) GetSubmitTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetSubmitTime() *timestamp.Timestamp { if x != nil { return x.SubmitTime } return nil } -func (x *BatchOperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *BatchOperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -2946,11 +2946,11 @@ var file_google_cloud_vision_v1_product_search_service_proto_goTypes = []interfa (*ProductSetPurgeConfig)(nil), // 30: google.cloud.vision.v1.ProductSetPurgeConfig (*PurgeProductsRequest)(nil), // 31: google.cloud.vision.v1.PurgeProductsRequest (*Product_KeyValue)(nil), // 32: google.cloud.vision.v1.Product.KeyValue - (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 33: google.protobuf.Timestamp (*status.Status)(nil), // 34: google.rpc.Status (*BoundingPoly)(nil), // 35: google.cloud.vision.v1.BoundingPoly - (*fieldmaskpb.FieldMask)(nil), // 36: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 37: google.protobuf.Empty + (*field_mask.FieldMask)(nil), // 36: google.protobuf.FieldMask + (*empty.Empty)(nil), // 37: google.protobuf.Empty (*longrunning.Operation)(nil), // 38: google.longrunning.Operation } var file_google_cloud_vision_v1_product_search_service_proto_depIdxs = []int32{ @@ -3487,7 +3487,7 @@ type ProductSearchClient interface { // ProductSet are not deleted. // // The actual image files are not deleted from Google Cloud Storage. - DeleteProductSet(ctx context.Context, in *DeleteProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteProductSet(ctx context.Context, in *DeleteProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates and returns a new product resource. // // Possible errors: @@ -3530,7 +3530,7 @@ type ProductSearchClient interface { // Metadata of the product and all its images will be deleted right away, but // search queries against ProductSets containing the product may still work // until all related caches are refreshed. - DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates and returns a new ReferenceImage resource. // // The `bounding_poly` field is optional. If `bounding_poly` is not specified, @@ -3558,7 +3558,7 @@ type ProductSearchClient interface { // caches are refreshed. // // The actual image files are not deleted from Google Cloud Storage. - DeleteReferenceImage(ctx context.Context, in *DeleteReferenceImageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteReferenceImage(ctx context.Context, in *DeleteReferenceImageRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists reference images. // // Possible errors: @@ -3581,9 +3581,9 @@ type ProductSearchClient interface { // Possible errors: // // * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - AddProductToProductSet(ctx context.Context, in *AddProductToProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + AddProductToProductSet(ctx context.Context, in *AddProductToProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Removes a Product from the specified ProductSet. - RemoveProductFromProductSet(ctx context.Context, in *RemoveProductFromProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + RemoveProductFromProductSet(ctx context.Context, in *RemoveProductFromProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists the Products in a ProductSet, in an unspecified order. If the // ProductSet does not exist, the products field of the response will be // empty. @@ -3675,8 +3675,8 @@ func (c *productSearchClient) UpdateProductSet(ctx context.Context, in *UpdatePr return out, nil } -func (c *productSearchClient) DeleteProductSet(ctx context.Context, in *DeleteProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productSearchClient) DeleteProductSet(ctx context.Context, in *DeleteProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.vision.v1.ProductSearch/DeleteProductSet", in, out, opts...) if err != nil { return nil, err @@ -3720,8 +3720,8 @@ func (c *productSearchClient) UpdateProduct(ctx context.Context, in *UpdateProdu return out, nil } -func (c *productSearchClient) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productSearchClient) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.vision.v1.ProductSearch/DeleteProduct", in, out, opts...) if err != nil { return nil, err @@ -3738,8 +3738,8 @@ func (c *productSearchClient) CreateReferenceImage(ctx context.Context, in *Crea return out, nil } -func (c *productSearchClient) DeleteReferenceImage(ctx context.Context, in *DeleteReferenceImageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productSearchClient) DeleteReferenceImage(ctx context.Context, in *DeleteReferenceImageRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.vision.v1.ProductSearch/DeleteReferenceImage", in, out, opts...) if err != nil { return nil, err @@ -3765,8 +3765,8 @@ func (c *productSearchClient) GetReferenceImage(ctx context.Context, in *GetRefe return out, nil } -func (c *productSearchClient) AddProductToProductSet(ctx context.Context, in *AddProductToProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productSearchClient) AddProductToProductSet(ctx context.Context, in *AddProductToProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.vision.v1.ProductSearch/AddProductToProductSet", in, out, opts...) if err != nil { return nil, err @@ -3774,8 +3774,8 @@ func (c *productSearchClient) AddProductToProductSet(ctx context.Context, in *Ad return out, nil } -func (c *productSearchClient) RemoveProductFromProductSet(ctx context.Context, in *RemoveProductFromProductSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *productSearchClient) RemoveProductFromProductSet(ctx context.Context, in *RemoveProductFromProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.vision.v1.ProductSearch/RemoveProductFromProductSet", in, out, opts...) if err != nil { return nil, err @@ -3845,7 +3845,7 @@ type ProductSearchServer interface { // ProductSet are not deleted. // // The actual image files are not deleted from Google Cloud Storage. - DeleteProductSet(context.Context, *DeleteProductSetRequest) (*emptypb.Empty, error) + DeleteProductSet(context.Context, *DeleteProductSetRequest) (*empty.Empty, error) // Creates and returns a new product resource. // // Possible errors: @@ -3888,7 +3888,7 @@ type ProductSearchServer interface { // Metadata of the product and all its images will be deleted right away, but // search queries against ProductSets containing the product may still work // until all related caches are refreshed. - DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error) + DeleteProduct(context.Context, *DeleteProductRequest) (*empty.Empty, error) // Creates and returns a new ReferenceImage resource. // // The `bounding_poly` field is optional. If `bounding_poly` is not specified, @@ -3916,7 +3916,7 @@ type ProductSearchServer interface { // caches are refreshed. // // The actual image files are not deleted from Google Cloud Storage. - DeleteReferenceImage(context.Context, *DeleteReferenceImageRequest) (*emptypb.Empty, error) + DeleteReferenceImage(context.Context, *DeleteReferenceImageRequest) (*empty.Empty, error) // Lists reference images. // // Possible errors: @@ -3939,9 +3939,9 @@ type ProductSearchServer interface { // Possible errors: // // * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - AddProductToProductSet(context.Context, *AddProductToProductSetRequest) (*emptypb.Empty, error) + AddProductToProductSet(context.Context, *AddProductToProductSetRequest) (*empty.Empty, error) // Removes a Product from the specified ProductSet. - RemoveProductFromProductSet(context.Context, *RemoveProductFromProductSetRequest) (*emptypb.Empty, error) + RemoveProductFromProductSet(context.Context, *RemoveProductFromProductSetRequest) (*empty.Empty, error) // Lists the Products in a ProductSet, in an unspecified order. If the // ProductSet does not exist, the products field of the response will be // empty. @@ -4005,7 +4005,7 @@ func (*UnimplementedProductSearchServer) GetProductSet(context.Context, *GetProd func (*UnimplementedProductSearchServer) UpdateProductSet(context.Context, *UpdateProductSetRequest) (*ProductSet, error) { return nil, status1.Errorf(codes.Unimplemented, "method UpdateProductSet not implemented") } -func (*UnimplementedProductSearchServer) DeleteProductSet(context.Context, *DeleteProductSetRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductSearchServer) DeleteProductSet(context.Context, *DeleteProductSetRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteProductSet not implemented") } func (*UnimplementedProductSearchServer) CreateProduct(context.Context, *CreateProductRequest) (*Product, error) { @@ -4020,13 +4020,13 @@ func (*UnimplementedProductSearchServer) GetProduct(context.Context, *GetProduct func (*UnimplementedProductSearchServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error) { return nil, status1.Errorf(codes.Unimplemented, "method UpdateProduct not implemented") } -func (*UnimplementedProductSearchServer) DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductSearchServer) DeleteProduct(context.Context, *DeleteProductRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteProduct not implemented") } func (*UnimplementedProductSearchServer) CreateReferenceImage(context.Context, *CreateReferenceImageRequest) (*ReferenceImage, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateReferenceImage not implemented") } -func (*UnimplementedProductSearchServer) DeleteReferenceImage(context.Context, *DeleteReferenceImageRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductSearchServer) DeleteReferenceImage(context.Context, *DeleteReferenceImageRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteReferenceImage not implemented") } func (*UnimplementedProductSearchServer) ListReferenceImages(context.Context, *ListReferenceImagesRequest) (*ListReferenceImagesResponse, error) { @@ -4035,10 +4035,10 @@ func (*UnimplementedProductSearchServer) ListReferenceImages(context.Context, *L func (*UnimplementedProductSearchServer) GetReferenceImage(context.Context, *GetReferenceImageRequest) (*ReferenceImage, error) { return nil, status1.Errorf(codes.Unimplemented, "method GetReferenceImage not implemented") } -func (*UnimplementedProductSearchServer) AddProductToProductSet(context.Context, *AddProductToProductSetRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductSearchServer) AddProductToProductSet(context.Context, *AddProductToProductSetRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method AddProductToProductSet not implemented") } -func (*UnimplementedProductSearchServer) RemoveProductFromProductSet(context.Context, *RemoveProductFromProductSetRequest) (*emptypb.Empty, error) { +func (*UnimplementedProductSearchServer) RemoveProductFromProductSet(context.Context, *RemoveProductFromProductSetRequest) (*empty.Empty, error) { return nil, status1.Errorf(codes.Unimplemented, "method RemoveProductFromProductSet not implemented") } func (*UnimplementedProductSearchServer) ListProductsInProductSet(context.Context, *ListProductsInProductSetRequest) (*ListProductsInProductSetResponse, error) { diff --git a/vision/v2/apiv1/visionpb/text_annotation.pb.go b/vision/v2/apiv1/visionpb/text_annotation.pb.go index f1fb81f1c472..c9111f688434 100644 --- a/vision/v2/apiv1/visionpb/text_annotation.pb.go +++ b/vision/v2/apiv1/visionpb/text_annotation.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/text_annotation.proto package visionpb diff --git a/vision/v2/apiv1/visionpb/web_detection.pb.go b/vision/v2/apiv1/visionpb/web_detection.pb.go index 8d1168186167..d8ff6f1a04a8 100644 --- a/vision/v2/apiv1/visionpb/web_detection.pb.go +++ b/vision/v2/apiv1/visionpb/web_detection.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vision/v1/web_detection.proto package visionpb diff --git a/vision/v2/go.mod b/vision/v2/go.mod index f9491b47cb65..0e3a6465b6b7 100644 --- a/vision/v2/go.mod +++ b/vision/v2/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 cloud.google.com/go/vision v1.2.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -15,7 +16,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go b/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go index 334f5d35150d..52b0161d6361 100644 --- a/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go +++ b/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vmmigration/v1/vmmigration.proto package vmmigrationpb @@ -25,18 +25,18 @@ import ( reflect "reflect" sync "sync" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" errdetails "google.golang.org/genproto/googleapis/rpc/errdetails" status "google.golang.org/genproto/googleapis/rpc/status" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1219,7 +1219,7 @@ type ReplicationCycle struct { unknownFields protoimpl.UnknownFields // The time the replication cycle has started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The current progress in percentage of this cycle. ProgressPercent int32 `protobuf:"varint,5,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` } @@ -1256,7 +1256,7 @@ func (*ReplicationCycle) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{0} } -func (x *ReplicationCycle) GetStartTime() *timestamppb.Timestamp { +func (x *ReplicationCycle) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -1278,7 +1278,7 @@ type ReplicationSync struct { // The most updated snapshot created time in the source that finished // replication. - LastSyncTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"` + LastSyncTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"` } func (x *ReplicationSync) Reset() { @@ -1313,7 +1313,7 @@ func (*ReplicationSync) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{1} } -func (x *ReplicationSync) GetLastSyncTime() *timestamppb.Timestamp { +func (x *ReplicationSync) GetLastSyncTime() *timestamp.Timestamp { if x != nil { return x.LastSyncTime } @@ -1348,16 +1348,16 @@ type MigratingVm struct { Policy *SchedulePolicy `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"` // Output only. The time the migrating VM was created (this refers to this // resource and not to the time it was installed in the source). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last time the migrating VM resource was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The most updated snapshot created time in the source that // finished replication. LastSync *ReplicationSync `protobuf:"bytes,11,opt,name=last_sync,json=lastSync,proto3" json:"last_sync,omitempty"` // Output only. State of the MigratingVm. State MigratingVm_State `protobuf:"varint,23,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.MigratingVm_State" json:"state,omitempty"` // Output only. The last time the migrating VM state was updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,22,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. The percentage progress of the current running replication // cycle. CurrentSyncInfo *ReplicationCycle `protobuf:"bytes,13,opt,name=current_sync_info,json=currentSyncInfo,proto3" json:"current_sync_info,omitempty"` @@ -1465,14 +1465,14 @@ func (x *MigratingVm) GetPolicy() *SchedulePolicy { return nil } -func (x *MigratingVm) GetCreateTime() *timestamppb.Timestamp { +func (x *MigratingVm) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *MigratingVm) GetUpdateTime() *timestamppb.Timestamp { +func (x *MigratingVm) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -1493,7 +1493,7 @@ func (x *MigratingVm) GetState() MigratingVm_State { return MigratingVm_STATE_UNSPECIFIED } -func (x *MigratingVm) GetStateTime() *timestamppb.Timestamp { +func (x *MigratingVm) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -1576,15 +1576,15 @@ type CloneJob struct { TargetVmDetails isCloneJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` // Output only. The time the clone job was created (as an API call, not when // it was actually created in the target). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the clone job was ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,22,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The name of the clone. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Output only. State of the clone job. State CloneJob_State `protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CloneJob_State" json:"state,omitempty"` // Output only. The time the state was last updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. Provides details for the errors that led to the Clone Job's // state. Error *status.Status `protobuf:"bytes,17,opt,name=error,proto3" json:"error,omitempty"` @@ -1636,14 +1636,14 @@ func (x *CloneJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails { return nil } -func (x *CloneJob) GetCreateTime() *timestamppb.Timestamp { +func (x *CloneJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CloneJob) GetEndTime() *timestamppb.Timestamp { +func (x *CloneJob) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1664,7 +1664,7 @@ func (x *CloneJob) GetState() CloneJob_State { return CloneJob_STATE_UNSPECIFIED } -func (x *CloneJob) GetStateTime() *timestamppb.Timestamp { +func (x *CloneJob) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -1705,15 +1705,15 @@ type CutoverJob struct { TargetVmDetails isCutoverJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` // Output only. The time the cutover job was created (as an API call, not when // it was actually created in the target). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the cutover job had finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The name of the cutover job. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Output only. State of the cutover job. State CutoverJob_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CutoverJob_State" json:"state,omitempty"` // Output only. The time the state was last updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. The current progress in percentage of the cutover job. ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` // Output only. Provides details for the errors that led to the Cutover Job's @@ -1770,14 +1770,14 @@ func (x *CutoverJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails return nil } -func (x *CutoverJob) GetCreateTime() *timestamppb.Timestamp { +func (x *CutoverJob) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CutoverJob) GetEndTime() *timestamppb.Timestamp { +func (x *CutoverJob) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1798,7 +1798,7 @@ func (x *CutoverJob) GetState() CutoverJob_State { return CutoverJob_STATE_UNSPECIFIED } -func (x *CutoverJob) GetStateTime() *timestamppb.Timestamp { +func (x *CutoverJob) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -2236,9 +2236,9 @@ type Source struct { // Output only. The Source name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time timestamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The labels of the source. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // User-provided description of the source. @@ -2298,14 +2298,14 @@ func (x *Source) GetName() string { return "" } -func (x *Source) GetCreateTime() *timestamppb.Timestamp { +func (x *Source) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Source) GetUpdateTime() *timestamppb.Timestamp { +func (x *Source) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2425,9 +2425,9 @@ type DatacenterConnector struct { // Output only. The time the connector was created (as an API call, not when // it was actually installed). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last time the connector was updated with an API call. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The connector's name. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Immutable. A unique key for this connector. This key is internal to the OVA @@ -2447,7 +2447,7 @@ type DatacenterConnector struct { // checks. State DatacenterConnector_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.DatacenterConnector_State" json:"state,omitempty"` // Output only. The time the state was last set. - StateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. Provides details on the state of the Datacenter Connector in // case of an error. Error *status.Status `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"` @@ -2497,14 +2497,14 @@ func (*DatacenterConnector) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{13} } -func (x *DatacenterConnector) GetCreateTime() *timestamppb.Timestamp { +func (x *DatacenterConnector) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *DatacenterConnector) GetUpdateTime() *timestamppb.Timestamp { +func (x *DatacenterConnector) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -2553,7 +2553,7 @@ func (x *DatacenterConnector) GetState() DatacenterConnector_State { return DatacenterConnector_STATE_UNSPECIFIED } -func (x *DatacenterConnector) GetStateTime() *timestamppb.Timestamp { +func (x *DatacenterConnector) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -2608,7 +2608,7 @@ type UpgradeStatus struct { // Provides details on the state of the upgrade operation in case of an error. Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // The time the operation was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The version from which we upgraded. PreviousVersion string `protobuf:"bytes,5,opt,name=previous_version,json=previousVersion,proto3" json:"previous_version,omitempty"` } @@ -2666,7 +2666,7 @@ func (x *UpgradeStatus) GetError() *status.Status { return nil } -func (x *UpgradeStatus) GetStartTime() *timestamppb.Timestamp { +func (x *UpgradeStatus) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } @@ -3126,7 +3126,7 @@ type UpdateSourceRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The update request body. Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -3177,7 +3177,7 @@ func (*UpdateSourceRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{21} } -func (x *UpdateSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateSourceRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -3541,7 +3541,7 @@ type FetchInventoryResponse struct { SourceVms isFetchInventoryResponse_SourceVms `protobuf_oneof:"SourceVms"` // Output only. The timestamp when the source was last queried (if the result // is from the cache). - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *FetchInventoryResponse) Reset() { @@ -3590,7 +3590,7 @@ func (x *FetchInventoryResponse) GetVmwareVms() *VmwareVmsDetails { return nil } -func (x *FetchInventoryResponse) GetUpdateTime() *timestamppb.Timestamp { +func (x *FetchInventoryResponse) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -3622,20 +3622,20 @@ type UtilizationReport struct { // Output only. Current state of the report. State UtilizationReport_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_State" json:"state,omitempty"` // Output only. The time the state was last set. - StateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + StateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` // Output only. Provides details on the state of the report in case of an // error. Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // Output only. The time the report was created (this refers to the time of // the request, not the time the report creation completed). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time frame of the report. TimeFrame UtilizationReport_TimeFrame `protobuf:"varint,7,opt,name=time_frame,json=timeFrame,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_TimeFrame" json:"time_frame,omitempty"` // Output only. The point in time when the time frame ends. Notice that the // time frame is counted backwards. For instance if the "frame_end_time" value // is 2021/01/20 and the time frame is WEEK then the report covers the week // between 2021/01/20 and 2021/01/14. - FrameEndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=frame_end_time,json=frameEndTime,proto3" json:"frame_end_time,omitempty"` + FrameEndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=frame_end_time,json=frameEndTime,proto3" json:"frame_end_time,omitempty"` // Output only. Total number of VMs included in the report. VmCount int32 `protobuf:"varint,9,opt,name=vm_count,json=vmCount,proto3" json:"vm_count,omitempty"` // List of utilization information per VM. @@ -3698,7 +3698,7 @@ func (x *UtilizationReport) GetState() UtilizationReport_State { return UtilizationReport_STATE_UNSPECIFIED } -func (x *UtilizationReport) GetStateTime() *timestamppb.Timestamp { +func (x *UtilizationReport) GetStateTime() *timestamp.Timestamp { if x != nil { return x.StateTime } @@ -3712,7 +3712,7 @@ func (x *UtilizationReport) GetError() *status.Status { return nil } -func (x *UtilizationReport) GetCreateTime() *timestamppb.Timestamp { +func (x *UtilizationReport) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } @@ -3726,7 +3726,7 @@ func (x *UtilizationReport) GetTimeFrame() UtilizationReport_TimeFrame { return UtilizationReport_TIME_FRAME_UNSPECIFIED } -func (x *UtilizationReport) GetFrameEndTime() *timestamppb.Timestamp { +func (x *UtilizationReport) GetFrameEndTime() *timestamp.Timestamp { if x != nil { return x.FrameEndTime } @@ -5528,7 +5528,7 @@ type SchedulePolicy struct { unknownFields protoimpl.UnknownFields // The idle duration between replication stages. - IdleDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=idle_duration,json=idleDuration,proto3" json:"idle_duration,omitempty"` + IdleDuration *duration.Duration `protobuf:"bytes,1,opt,name=idle_duration,json=idleDuration,proto3" json:"idle_duration,omitempty"` // A flag to indicate whether to skip OS adaptation during the replication // sync. OS adaptation is a process where the VM's operating system undergoes // changes and adaptations to fully function on Compute Engine. @@ -5567,7 +5567,7 @@ func (*SchedulePolicy) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{48} } -func (x *SchedulePolicy) GetIdleDuration() *durationpb.Duration { +func (x *SchedulePolicy) GetIdleDuration() *duration.Duration { if x != nil { return x.IdleDuration } @@ -5907,7 +5907,7 @@ type UpdateMigratingVmRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The update request body. MigratingVm *MigratingVm `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -5958,7 +5958,7 @@ func (*UpdateMigratingVmRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{53} } -func (x *UpdateMigratingVmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateMigratingVmRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -6395,9 +6395,9 @@ type TargetProject struct { Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The time this target project resource was created (not related // to when the Compute Engine project it points to was created). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last time the target project resource was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *TargetProject) Reset() { @@ -6453,14 +6453,14 @@ func (x *TargetProject) GetDescription() string { return "" } -func (x *TargetProject) GetCreateTime() *timestamppb.Timestamp { +func (x *TargetProject) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *TargetProject) GetUpdateTime() *timestamppb.Timestamp { +func (x *TargetProject) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -6775,7 +6775,7 @@ type UpdateTargetProjectRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The update request body. TargetProject *TargetProject `protobuf:"bytes,2,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -6826,7 +6826,7 @@ func (*UpdateTargetProjectRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{68} } -func (x *UpdateTargetProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateTargetProjectRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -6927,9 +6927,9 @@ type Group struct { // Output only. The Group name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The create time timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The update time timestamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // User-provided description of the group. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Display name is a user defined name for this group which can be updated. @@ -6975,14 +6975,14 @@ func (x *Group) GetName() string { return "" } -func (x *Group) GetCreateTime() *timestamppb.Timestamp { +func (x *Group) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Group) GetUpdateTime() *timestamppb.Timestamp { +func (x *Group) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } @@ -7311,7 +7311,7 @@ type UpdateGroupRequest struct { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The update request body. Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // A request ID to identify requests. Specify a unique request ID @@ -7362,7 +7362,7 @@ func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{75} } -func (x *UpdateGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateGroupRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -8039,9 +8039,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. @@ -8090,14 +8090,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{87} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -8157,7 +8157,7 @@ type MigrationError struct { // current error. HelpLinks []*errdetails.Help_Link `protobuf:"bytes,4,rep,name=help_links,json=helpLinks,proto3" json:"help_links,omitempty"` // Output only. The time the error occurred. - ErrorTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` + ErrorTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` } func (x *MigrationError) Reset() { @@ -8220,7 +8220,7 @@ func (x *MigrationError) GetHelpLinks() []*errdetails.Help_Link { return nil } -func (x *MigrationError) GetErrorTime() *timestamppb.Timestamp { +func (x *MigrationError) GetErrorTime() *timestamp.Timestamp { if x != nil { return x.ErrorTime } @@ -10541,10 +10541,10 @@ var file_google_cloud_vmmigration_v1_vmmigration_proto_goTypes = []interface{}{ nil, // 111: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry nil, // 112: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry nil, // 113: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry - (*timestamppb.Timestamp)(nil), // 114: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 114: google.protobuf.Timestamp (*status.Status)(nil), // 115: google.rpc.Status - (*fieldmaskpb.FieldMask)(nil), // 116: google.protobuf.FieldMask - (*durationpb.Duration)(nil), // 117: google.protobuf.Duration + (*field_mask.FieldMask)(nil), // 116: google.protobuf.FieldMask + (*duration.Duration)(nil), // 117: google.protobuf.Duration (*errdetails.LocalizedMessage)(nil), // 118: google.rpc.LocalizedMessage (*errdetails.Help_Link)(nil), // 119: google.rpc.Help.Link (*longrunning.Operation)(nil), // 120: google.longrunning.Operation diff --git a/vmmigration/go.mod b/vmmigration/go.mod index 6610bd5f383f..574d1f6d6bce 100644 --- a/vmmigration/go.mod +++ b/vmmigration/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/vpcaccess/apiv1/vpcaccesspb/vpc_access.pb.go b/vpcaccess/apiv1/vpcaccesspb/vpc_access.pb.go index afc66052f860..9fb44ee2d97e 100644 --- a/vpcaccess/apiv1/vpcaccesspb/vpc_access.pb.go +++ b/vpcaccess/apiv1/vpcaccesspb/vpc_access.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/vpcaccess/v1/vpc_access.proto package vpcaccesspb @@ -25,6 +25,7 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" grpc "google.golang.org/grpc" @@ -32,7 +33,6 @@ import ( status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -548,9 +548,9 @@ type OperationMetadata struct { // google.cloud.vpcaccess.v1.Connectors.CreateConnector. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // Output only. Time when the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the operation completed. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Name of the resource that this operation is acting on e.g. // projects/my-project/locations/us-central1/connectors/v1. Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` @@ -595,14 +595,14 @@ func (x *OperationMetadata) GetMethod() string { return "" } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -897,7 +897,7 @@ var file_google_cloud_vpcaccess_v1_vpc_access_proto_goTypes = []interface{}{ (*DeleteConnectorRequest)(nil), // 6: google.cloud.vpcaccess.v1.DeleteConnectorRequest (*OperationMetadata)(nil), // 7: google.cloud.vpcaccess.v1.OperationMetadata (*Connector_Subnet)(nil), // 8: google.cloud.vpcaccess.v1.Connector.Subnet - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp (*longrunning.Operation)(nil), // 10: google.longrunning.Operation } var file_google_cloud_vpcaccess_v1_vpc_access_proto_depIdxs = []int32{ diff --git a/vpcaccess/go.mod b/vpcaccess/go.mod index 4d7abef5eb3c..984456c45ce6 100644 --- a/vpcaccess/go.mod +++ b/vpcaccess/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.104.0 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -14,7 +15,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/webrisk/apiv1/webriskpb/webrisk.pb.go b/webrisk/apiv1/webriskpb/webrisk.pb.go index 764306e193e0..d26e6638003f 100644 --- a/webrisk/apiv1/webriskpb/webrisk.pb.go +++ b/webrisk/apiv1/webriskpb/webrisk.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/webrisk/v1/webrisk.proto package webriskpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -311,7 +311,7 @@ type ComputeThreatListDiffResponse struct { // request. Querying sooner is unlikely to produce a meaningful diff. // Waiting longer is acceptable considering the use case. // If this field is not set clients may update as soon as they want. - RecommendedNextDiff *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=recommended_next_diff,json=recommendedNextDiff,proto3" json:"recommended_next_diff,omitempty"` + RecommendedNextDiff *timestamp.Timestamp `protobuf:"bytes,2,opt,name=recommended_next_diff,json=recommendedNextDiff,proto3" json:"recommended_next_diff,omitempty"` } func (x *ComputeThreatListDiffResponse) Reset() { @@ -381,7 +381,7 @@ func (x *ComputeThreatListDiffResponse) GetChecksum() *ComputeThreatListDiffResp return nil } -func (x *ComputeThreatListDiffResponse) GetRecommendedNextDiff() *timestamppb.Timestamp { +func (x *ComputeThreatListDiffResponse) GetRecommendedNextDiff() *timestamp.Timestamp { if x != nil { return x.RecommendedNextDiff } @@ -565,7 +565,7 @@ type SearchHashesResponse struct { Threats []*SearchHashesResponse_ThreatHash `protobuf:"bytes,1,rep,name=threats,proto3" json:"threats,omitempty"` // For requested entities that did not match the threat list, how long to // cache the response until. - NegativeExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=negative_expire_time,json=negativeExpireTime,proto3" json:"negative_expire_time,omitempty"` + NegativeExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=negative_expire_time,json=negativeExpireTime,proto3" json:"negative_expire_time,omitempty"` } func (x *SearchHashesResponse) Reset() { @@ -607,7 +607,7 @@ func (x *SearchHashesResponse) GetThreats() []*SearchHashesResponse_ThreatHash { return nil } -func (x *SearchHashesResponse) GetNegativeExpireTime() *timestamppb.Timestamp { +func (x *SearchHashesResponse) GetNegativeExpireTime() *timestamp.Timestamp { if x != nil { return x.NegativeExpireTime } @@ -1176,7 +1176,7 @@ type SearchUrisResponse_ThreatUri struct { ThreatTypes []ThreatType `protobuf:"varint,1,rep,packed,name=threat_types,json=threatTypes,proto3,enum=google.cloud.webrisk.v1.ThreatType" json:"threat_types,omitempty"` // The cache lifetime for the returned match. Clients must not cache this // response past this timestamp to avoid false positives. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *SearchUrisResponse_ThreatUri) Reset() { @@ -1218,7 +1218,7 @@ func (x *SearchUrisResponse_ThreatUri) GetThreatTypes() []ThreatType { return nil } -func (x *SearchUrisResponse_ThreatUri) GetExpireTime() *timestamppb.Timestamp { +func (x *SearchUrisResponse_ThreatUri) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1239,7 +1239,7 @@ type SearchHashesResponse_ThreatHash struct { Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // The cache lifetime for the returned match. Clients must not cache this // response past this timestamp to avoid false positives. - ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` } func (x *SearchHashesResponse_ThreatHash) Reset() { @@ -1288,7 +1288,7 @@ func (x *SearchHashesResponse_ThreatHash) GetHash() []byte { return nil } -func (x *SearchHashesResponse_ThreatHash) GetExpireTime() *timestamppb.Timestamp { +func (x *SearchHashesResponse_ThreatHash) GetExpireTime() *timestamp.Timestamp { if x != nil { return x.ExpireTime } @@ -1598,7 +1598,7 @@ var file_google_cloud_webrisk_v1_webrisk_proto_goTypes = []interface{}{ (*ComputeThreatListDiffResponse_Checksum)(nil), // 17: google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum (*SearchUrisResponse_ThreatUri)(nil), // 18: google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri (*SearchHashesResponse_ThreatHash)(nil), // 19: google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 20: google.protobuf.Timestamp } var file_google_cloud_webrisk_v1_webrisk_proto_depIdxs = []int32{ 0, // 0: google.cloud.webrisk.v1.ComputeThreatListDiffRequest.threat_type:type_name -> google.cloud.webrisk.v1.ThreatType diff --git a/websecurityscanner/apiv1/websecurityscannerpb/crawled_url.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/crawled_url.pb.go index 57dc6b3f8370..1a3f938b6846 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/crawled_url.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/crawled_url.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/crawled_url.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/finding.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/finding.pb.go index a486738de80d..3e58d8ad59a7 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/finding.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/finding.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/finding.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/finding_addon.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/finding_addon.pb.go index 9dde37398d25..5d4a35619035 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/finding_addon.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/finding_addon.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/finding_addon.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/finding_type_stats.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/finding_type_stats.pb.go index 3f9955ccd99d..f0bec40f5e16 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/finding_type_stats.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/finding_type_stats.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/finding_type_stats.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_config.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_config.pb.go index 37e89ad77d4d..912a97d72aca 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_config.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_config.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_config.proto package websecurityscannerpb @@ -24,10 +24,10 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -485,7 +485,7 @@ type ScanConfig_Schedule struct { // refreshed by the server after each run. If unspecified, it will default // to current server time, which means the scan will be scheduled to start // immediately. - ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Required. The duration of time between executions in days. IntervalDurationDays int32 `protobuf:"varint,2,opt,name=interval_duration_days,json=intervalDurationDays,proto3" json:"interval_duration_days,omitempty"` } @@ -522,7 +522,7 @@ func (*ScanConfig_Schedule) Descriptor() ([]byte, []int) { return file_google_cloud_websecurityscanner_v1_scan_config_proto_rawDescGZIP(), []int{0, 1} } -func (x *ScanConfig_Schedule) GetScheduleTime() *timestamppb.Timestamp { +func (x *ScanConfig_Schedule) GetScheduleTime() *timestamp.Timestamp { if x != nil { return x.ScheduleTime } @@ -978,7 +978,7 @@ var file_google_cloud_websecurityscanner_v1_scan_config_proto_goTypes = []interf (*ScanConfig_Authentication_CustomAccount)(nil), // 7: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount (*ScanConfig_Authentication_IapCredential)(nil), // 8: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential (*ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo)(nil), // 9: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp } var file_google_cloud_websecurityscanner_v1_scan_config_proto_depIdxs = []int32{ 4, // 0: google.cloud.websecurityscanner.v1.ScanConfig.authentication:type_name -> google.cloud.websecurityscanner.v1.ScanConfig.Authentication diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_config_error.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_config_error.pb.go index aaa0db1e538b..3a5d9a8abfae 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_config_error.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_config_error.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_config_error.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_run.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_run.pb.go index 8c50e2002dbb..f76ecf2be38d 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_run.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_run.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_run.proto package websecurityscannerpb @@ -24,9 +24,9 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -169,10 +169,10 @@ type ScanRun struct { // execution state reaches "FINISHED". ResultState ScanRun_ResultState `protobuf:"varint,3,opt,name=result_state,json=resultState,proto3,enum=google.cloud.websecurityscanner.v1.ScanRun_ResultState" json:"result_state,omitempty"` // Output only. The time at which the ScanRun started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. The time at which the ScanRun reached termination state - that the ScanRun // is either finished or stopped by user. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, // the value represents the number of URLs crawled up to now. UrlsCrawledCount int64 `protobuf:"varint,6,opt,name=urls_crawled_count,json=urlsCrawledCount,proto3" json:"urls_crawled_count,omitempty"` @@ -248,14 +248,14 @@ func (x *ScanRun) GetResultState() ScanRun_ResultState { return ScanRun_RESULT_STATE_UNSPECIFIED } -func (x *ScanRun) GetStartTime() *timestamppb.Timestamp { +func (x *ScanRun) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *ScanRun) GetEndTime() *timestamppb.Timestamp { +func (x *ScanRun) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -411,12 +411,12 @@ func file_google_cloud_websecurityscanner_v1_scan_run_proto_rawDescGZIP() []byte var file_google_cloud_websecurityscanner_v1_scan_run_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_google_cloud_websecurityscanner_v1_scan_run_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_cloud_websecurityscanner_v1_scan_run_proto_goTypes = []interface{}{ - (ScanRun_ExecutionState)(0), // 0: google.cloud.websecurityscanner.v1.ScanRun.ExecutionState - (ScanRun_ResultState)(0), // 1: google.cloud.websecurityscanner.v1.ScanRun.ResultState - (*ScanRun)(nil), // 2: google.cloud.websecurityscanner.v1.ScanRun - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*ScanRunErrorTrace)(nil), // 4: google.cloud.websecurityscanner.v1.ScanRunErrorTrace - (*ScanRunWarningTrace)(nil), // 5: google.cloud.websecurityscanner.v1.ScanRunWarningTrace + (ScanRun_ExecutionState)(0), // 0: google.cloud.websecurityscanner.v1.ScanRun.ExecutionState + (ScanRun_ResultState)(0), // 1: google.cloud.websecurityscanner.v1.ScanRun.ResultState + (*ScanRun)(nil), // 2: google.cloud.websecurityscanner.v1.ScanRun + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*ScanRunErrorTrace)(nil), // 4: google.cloud.websecurityscanner.v1.ScanRunErrorTrace + (*ScanRunWarningTrace)(nil), // 5: google.cloud.websecurityscanner.v1.ScanRunWarningTrace } var file_google_cloud_websecurityscanner_v1_scan_run_proto_depIdxs = []int32{ 0, // 0: google.cloud.websecurityscanner.v1.ScanRun.execution_state:type_name -> google.cloud.websecurityscanner.v1.ScanRun.ExecutionState diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_error_trace.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_error_trace.pb.go index 90795dfa5fd0..c7811c074a1d 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_error_trace.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_error_trace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_log.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_log.pb.go index 2e021c7898fe..a9f094d46f8c 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_log.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_log.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_run_log.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_warning_trace.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_warning_trace.pb.go index de54ae75ed69..a978e5f6b93e 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/scan_run_warning_trace.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/scan_run_warning_trace.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package websecurityscannerpb diff --git a/websecurityscanner/apiv1/websecurityscannerpb/web_security_scanner.pb.go b/websecurityscanner/apiv1/websecurityscannerpb/web_security_scanner.pb.go index c6027d8154c4..b7e5cb25e145 100644 --- a/websecurityscanner/apiv1/websecurityscannerpb/web_security_scanner.pb.go +++ b/websecurityscanner/apiv1/websecurityscannerpb/web_security_scanner.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package websecurityscannerpb @@ -25,14 +25,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -286,7 +286,7 @@ type UpdateScanConfigRequest struct { // Required. The update mask applies to the resource. For the `FieldMask` definition, // see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateScanConfigRequest) Reset() { @@ -328,7 +328,7 @@ func (x *UpdateScanConfigRequest) GetScanConfig() *ScanConfig { return nil } -func (x *UpdateScanConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateScanConfigRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1461,12 +1461,12 @@ var file_google_cloud_websecurityscanner_v1_web_security_scanner_proto_goTypes = (*ListFindingTypeStatsRequest)(nil), // 16: google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest (*ListFindingTypeStatsResponse)(nil), // 17: google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse (*ScanConfig)(nil), // 18: google.cloud.websecurityscanner.v1.ScanConfig - (*fieldmaskpb.FieldMask)(nil), // 19: google.protobuf.FieldMask + (*field_mask.FieldMask)(nil), // 19: google.protobuf.FieldMask (*ScanRun)(nil), // 20: google.cloud.websecurityscanner.v1.ScanRun (*CrawledUrl)(nil), // 21: google.cloud.websecurityscanner.v1.CrawledUrl (*Finding)(nil), // 22: google.cloud.websecurityscanner.v1.Finding (*FindingTypeStats)(nil), // 23: google.cloud.websecurityscanner.v1.FindingTypeStats - (*emptypb.Empty)(nil), // 24: google.protobuf.Empty + (*empty.Empty)(nil), // 24: google.protobuf.Empty } var file_google_cloud_websecurityscanner_v1_web_security_scanner_proto_depIdxs = []int32{ 18, // 0: google.cloud.websecurityscanner.v1.CreateScanConfigRequest.scan_config:type_name -> google.cloud.websecurityscanner.v1.ScanConfig @@ -1773,7 +1773,7 @@ type WebSecurityScannerClient interface { // Creates a new ScanConfig. CreateScanConfig(ctx context.Context, in *CreateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) // Deletes an existing ScanConfig and its child resources. - DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets a ScanConfig. GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) // Lists ScanConfigs under a given project. @@ -1816,8 +1816,8 @@ func (c *webSecurityScannerClient) CreateScanConfig(ctx context.Context, in *Cre return out, nil } -func (c *webSecurityScannerClient) DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *webSecurityScannerClient) DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1.WebSecurityScanner/DeleteScanConfig", in, out, opts...) if err != nil { return nil, err @@ -1929,7 +1929,7 @@ type WebSecurityScannerServer interface { // Creates a new ScanConfig. CreateScanConfig(context.Context, *CreateScanConfigRequest) (*ScanConfig, error) // Deletes an existing ScanConfig and its child resources. - DeleteScanConfig(context.Context, *DeleteScanConfigRequest) (*emptypb.Empty, error) + DeleteScanConfig(context.Context, *DeleteScanConfigRequest) (*empty.Empty, error) // Gets a ScanConfig. GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error) // Lists ScanConfigs under a given project. @@ -1962,7 +1962,7 @@ type UnimplementedWebSecurityScannerServer struct { func (*UnimplementedWebSecurityScannerServer) CreateScanConfig(context.Context, *CreateScanConfigRequest) (*ScanConfig, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateScanConfig not implemented") } -func (*UnimplementedWebSecurityScannerServer) DeleteScanConfig(context.Context, *DeleteScanConfigRequest) (*emptypb.Empty, error) { +func (*UnimplementedWebSecurityScannerServer) DeleteScanConfig(context.Context, *DeleteScanConfigRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteScanConfig not implemented") } func (*UnimplementedWebSecurityScannerServer) GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error) { diff --git a/websecurityscanner/go.mod b/websecurityscanner/go.mod index f45b8cef0af9..f34f8e2d047c 100644 --- a/websecurityscanner/go.mod +++ b/websecurityscanner/go.mod @@ -3,6 +3,7 @@ module cloud.google.com/go/websecurityscanner go 1.19 require ( + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.6.0 google.golang.org/api v0.99.0 google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e @@ -13,7 +14,6 @@ require ( require ( cloud.google.com/go/compute v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect go.opencensus.io v0.23.0 // indirect diff --git a/workflows/apiv1/workflowspb/workflows.pb.go b/workflows/apiv1/workflowspb/workflows.pb.go index cea85bb491b6..ba0e4e356d0b 100644 --- a/workflows/apiv1/workflowspb/workflows.pb.go +++ b/workflows/apiv1/workflowspb/workflows.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/workflows/v1/workflows.proto package workflowspb @@ -25,15 +25,15 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" longrunning "google.golang.org/genproto/googleapis/longrunning" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -119,12 +119,12 @@ type Workflow struct { // 3 hexadecimal random characters. RevisionId string `protobuf:"bytes,4,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // Output only. The timestamp of when the workflow was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of the workflow. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The timestamp that the latest revision of the workflow // was created. - RevisionCreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` + RevisionCreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` // Labels associated with this workflow. // Labels can contain at most 64 entries. Keys and values can be no longer // than 63 characters and can only contain lowercase letters, numeric @@ -214,21 +214,21 @@ func (x *Workflow) GetRevisionId() string { return "" } -func (x *Workflow) GetCreateTime() *timestamppb.Timestamp { +func (x *Workflow) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *Workflow) GetUpdateTime() *timestamppb.Timestamp { +func (x *Workflow) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } -func (x *Workflow) GetRevisionCreateTime() *timestamppb.Timestamp { +func (x *Workflow) GetRevisionCreateTime() *timestamp.Timestamp { if x != nil { return x.RevisionCreateTime } @@ -634,7 +634,7 @@ type UpdateWorkflowRequest struct { Workflow *Workflow `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` // List of fields to be updated. If not present, the entire workflow // will be updated. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateWorkflowRequest) Reset() { @@ -676,7 +676,7 @@ func (x *UpdateWorkflowRequest) GetWorkflow() *Workflow { return nil } -func (x *UpdateWorkflowRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateWorkflowRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -690,9 +690,9 @@ type OperationMetadata struct { unknownFields protoimpl.UnknownFields // The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Name of the verb executed by the operation. @@ -733,14 +733,14 @@ func (*OperationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_workflows_v1_workflows_proto_rawDescGZIP(), []int{7} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { +func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1011,8 +1011,8 @@ var file_google_cloud_workflows_v1_workflows_proto_goTypes = []interface{}{ (*UpdateWorkflowRequest)(nil), // 7: google.cloud.workflows.v1.UpdateWorkflowRequest (*OperationMetadata)(nil), // 8: google.cloud.workflows.v1.OperationMetadata nil, // 9: google.cloud.workflows.v1.Workflow.LabelsEntry - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask (*longrunning.Operation)(nil), // 12: google.longrunning.Operation } var file_google_cloud_workflows_v1_workflows_proto_depIdxs = []int32{ diff --git a/workflows/executions/apiv1/executionspb/executions.pb.go b/workflows/executions/apiv1/executionspb/executions.pb.go index 70d65cba3dc3..68fe45d53128 100644 --- a/workflows/executions/apiv1/executionspb/executions.pb.go +++ b/workflows/executions/apiv1/executionspb/executions.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/workflows/executions/v1/executions.proto package executionspb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -225,9 +225,9 @@ type Execution struct { // projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Marks the beginning of execution. - StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Output only. Marks the end of execution, successful or not. - EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Current state of the execution. State Execution_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.workflows.executions.v1.Execution_State" json:"state,omitempty"` // Input parameters of the execution represented as a JSON string. @@ -289,14 +289,14 @@ func (x *Execution) GetName() string { return "" } -func (x *Execution) GetStartTime() *timestamppb.Timestamp { +func (x *Execution) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *Execution) GetEndTime() *timestamppb.Timestamp { +func (x *Execution) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -1191,7 +1191,7 @@ var file_google_cloud_workflows_executions_v1_executions_proto_goTypes = []inter (*Execution_StackTrace)(nil), // 10: google.cloud.workflows.executions.v1.Execution.StackTrace (*Execution_Error)(nil), // 11: google.cloud.workflows.executions.v1.Execution.Error (*Execution_StackTraceElement_Position)(nil), // 12: google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp } var file_google_cloud_workflows_executions_v1_executions_proto_depIdxs = []int32{ 13, // 0: google.cloud.workflows.executions.v1.Execution.start_time:type_name -> google.protobuf.Timestamp