|
| 1 | +// Copyright 2025 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.devtools.artifactregistry.v1; |
| 18 | + |
| 19 | +import "google/api/field_behavior.proto"; |
| 20 | +import "google/api/resource.proto"; |
| 21 | +import "google/protobuf/timestamp.proto"; |
| 22 | + |
| 23 | +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; |
| 24 | +option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb"; |
| 25 | +option java_multiple_files = true; |
| 26 | +option java_outer_classname = "GoProto"; |
| 27 | +option java_package = "com.google.devtools.artifactregistry.v1"; |
| 28 | +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; |
| 29 | +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; |
| 30 | + |
| 31 | +// GoModule represents a Go module. |
| 32 | +message GoModule { |
| 33 | + option (google.api.resource) = { |
| 34 | + type: "artifactregistry.googleapis.com/GoModule" |
| 35 | + pattern: "projects/{project}/locations/{location}/repositories/{repository}/goModules/{go_module}" |
| 36 | + }; |
| 37 | + |
| 38 | + // The resource name of a Go module. |
| 39 | + string name = 1; |
| 40 | + |
| 41 | + // The version of the Go module. Must be a valid canonical version as defined |
| 42 | + // in https://go.dev/ref/mod#glos-canonical-version. |
| 43 | + string version = 2; |
| 44 | + |
| 45 | + // Output only. The time when the Go module is created. |
| 46 | + google.protobuf.Timestamp create_time = 3 |
| 47 | + [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 48 | + |
| 49 | + // Output only. The time when the Go module is updated. |
| 50 | + google.protobuf.Timestamp update_time = 4 |
| 51 | + [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 52 | +} |
0 commit comments