From a73130d3ce4213d802eefe51edc748fe07287f9e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 5 Feb 2025 02:11:34 +0000 Subject: [PATCH] feat: add BuildConfig to Services for configuring Run functions feat: add BuildInfo to Revision for displaying BuildConfig used for a specific revision deployment feat: add Base Image URI to Container feat: add creator field to Execution feat: add project_descriptor to BuildspackBuild docs: some typos were fixed and formatting changed PiperOrigin-RevId: 723249447 Source-Link: https://github.com/googleapis/googleapis/commit/3d194928f8427e6d33156f9193af053fe74f996d Source-Link: https://github.com/googleapis/googleapis-gen/commit/c7231d35a2fb5ebf4b7c4d7e9cfa6246075b19dc Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUnVuLlYyLy5Pd2xCb3QueWFtbCIsImgiOiJjNzIzMWQzNWEyZmI1ZWJmNGI3YzRkN2U5Y2ZhNjI0NjA3NWIxOWRjIn0= --- .../Google.Cloud.Run.V2/Build.g.cs | 85 ++- .../Google.Cloud.Run.V2/Execution.g.cs | 144 +++-- .../Google.Cloud.Run.V2/Job.g.cs | 2 +- .../Google.Cloud.Run.V2/K8SMin.g.cs | 455 ++++++++++++-- .../Google.Cloud.Run.V2/Revision.g.cs | 3 +- .../Google.Cloud.Run.V2/Service.g.cs | 154 +++-- .../Google.Cloud.Run.V2/VendorSettings.g.cs | 568 +++++++++++++++++- .../VendorSettingsResourceNames.g.cs | 263 ++++++++ 8 files changed, 1468 insertions(+), 206 deletions(-) diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Build.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Build.g.cs index ff11579b4b1c..c425727cfd22 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Build.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Build.g.cs @@ -28,7 +28,7 @@ static BuildReflection() { "dWQucnVuLnYyGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29n",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HMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3dv", + "cmtlclBvb2xzL3t3b3JrZXJfcG9vbH1iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.SubmitBuildRequest), global::Google.Cloud.Run.V2.SubmitBuildRequest.Parser, new[]{ "Parent", "StorageSource", "ImageUri", "BuildpackBuild", "DockerBuild", "ServiceAccount", "WorkerPool", "Tags" }, new[]{ "Source", "BuildType" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.DockerBuild), global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.DockerBuild.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.BuildpacksBuild), global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.BuildpacksBuild.Parser, new[]{ "Runtime", "FunctionTarget", "CacheImageUri", "BaseImage", "EnvironmentVariables", "EnableAutomaticUpdates" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.BuildpacksBuild), global::Google.Cloud.Run.V2.SubmitBuildRequest.Types.BuildpacksBuild.Parser, new[]{ "Runtime", "FunctionTarget", "CacheImageUri", "BaseImage", "EnvironmentVariables", "EnableAutomaticUpdates", "ProjectDescriptor" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.SubmitBuildResponse), global::Google.Cloud.Run.V2.SubmitBuildResponse.Parser, new[]{ "BuildOperation", "BaseImageUri", "BaseImageWarning" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.StorageSource), global::Google.Cloud.Run.V2.StorageSource.Parser, new[]{ "Bucket", "Object", "Generation" }, null, null, null, null) })); @@ -853,6 +854,7 @@ public BuildpacksBuild(BuildpacksBuild other) : this() { baseImage_ = other.baseImage_; environmentVariables_ = other.environmentVariables_.Clone(); enableAutomaticUpdates_ = other.enableAutomaticUpdates_; + projectDescriptor_ = other.projectDescriptor_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -917,7 +919,7 @@ public string CacheImageUri { public const int BaseImageFieldNumber = 4; private string baseImage_ = ""; /// - /// Optional. The base image used to opt into automatic base image updates. + /// Optional. The base image to use for the build. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -959,6 +961,23 @@ public bool EnableAutomaticUpdates { } } + /// Field number for the "project_descriptor" field. + public const int ProjectDescriptorFieldNumber = 7; + private string projectDescriptor_ = ""; + /// + /// Optional. project_descriptor stores the path to the project descriptor + /// file. When empty, it means that there is no project descriptor file in + /// the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectDescriptor { + get { return projectDescriptor_; } + set { + projectDescriptor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -980,6 +999,7 @@ public bool Equals(BuildpacksBuild other) { if (BaseImage != other.BaseImage) return false; if (!EnvironmentVariables.Equals(other.EnvironmentVariables)) return false; if (EnableAutomaticUpdates != other.EnableAutomaticUpdates) return false; + if (ProjectDescriptor != other.ProjectDescriptor) return false; return Equals(_unknownFields, other._unknownFields); } @@ -993,6 +1013,7 @@ public override int GetHashCode() { if (BaseImage.Length != 0) hash ^= BaseImage.GetHashCode(); hash ^= EnvironmentVariables.GetHashCode(); if (EnableAutomaticUpdates != false) hash ^= EnableAutomaticUpdates.GetHashCode(); + if (ProjectDescriptor.Length != 0) hash ^= ProjectDescriptor.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1032,6 +1053,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(48); output.WriteBool(EnableAutomaticUpdates); } + if (ProjectDescriptor.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ProjectDescriptor); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1063,6 +1088,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(48); output.WriteBool(EnableAutomaticUpdates); } + if (ProjectDescriptor.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ProjectDescriptor); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1089,6 +1118,9 @@ public int CalculateSize() { if (EnableAutomaticUpdates != false) { size += 1 + 1; } + if (ProjectDescriptor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectDescriptor); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1117,6 +1149,9 @@ public void MergeFrom(BuildpacksBuild other) { if (other.EnableAutomaticUpdates != false) { EnableAutomaticUpdates = other.EnableAutomaticUpdates; } + if (other.ProjectDescriptor.Length != 0) { + ProjectDescriptor = other.ProjectDescriptor; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1156,6 +1191,10 @@ public void MergeFrom(pb::CodedInputStream input) { EnableAutomaticUpdates = input.ReadBool(); break; } + case 58: { + ProjectDescriptor = input.ReadString(); + break; + } } } #endif @@ -1195,6 +1234,10 @@ public void MergeFrom(pb::CodedInputStream input) { EnableAutomaticUpdates = input.ReadBool(); break; } + case 58: { + ProjectDescriptor = input.ReadString(); + break; + } } } } diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs index 523a7ac315a6..c22e966a2f7d 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs @@ -44,55 +44,56 @@ static ExecutionReflection() { "eRgCIAEoCBIMCgRldGFnGAMgASgJInEKFkNhbmNlbEV4ZWN1dGlvblJlcXVl", "c3QSMgoEbmFtZRgBIAEoCUIk4EEC+kEeChxydW4uZ29vZ2xlYXBpcy5jb20v", "RXhlY3V0aW9uEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSDAoEZXRhZxgDIAEo", - "CSKCCgoJRXhlY3V0aW9uEhEKBG5hbWUYASABKAlCA+BBAxIQCgN1aWQYAiAB", - "KAlCA+BBAxIXCgpnZW5lcmF0aW9uGAMgASgDQgPgQQMSPwoGbGFiZWxzGAQg", - "AygLMiouZ29vZ2xlLmNsb3VkLnJ1bi52Mi5FeGVjdXRpb24uTGFiZWxzRW50", - "cnlCA+BBAxJJCgthbm5vdGF0aW9ucxgFIAMoCzIvLmdvb2dsZS5jbG91ZC5y", - "dW4udjIuRXhlY3V0aW9uLkFubm90YXRpb25zRW50cnlCA+BBAxI0CgtjcmVh", - "dGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", - "AxIzCgpzdGFydF90aW1lGBYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", - "dGFtcEID4EEDEjgKD2NvbXBsZXRpb25fdGltZRgHIAEoCzIaLmdvb2dsZS5w", - "cm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0Cgt1cGRhdGVfdGltZRgIIAEoCzIa", - "Lmdvb2dsZS5wcm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FtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8q", + "L2pvYnMvKi9leGVjdXRpb25zLyp9OmNhbmNlbDoBKhpGykEScnVuLmdvb2ds", + "ZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9j", + "bG91ZC1wbGF0Zm9ybUJWChdjb20uZ29vZ2xlLmNsb3VkLnJ1bi52MkIORXhl", + "Y3V0aW9uUHJvdG9QAVopY2xvdWQuZ29vZ2xlLmNvbS9nby9ydW4vYXBpdjIv", + "cnVucGI7cnVucGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.LaunchStageReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Run.V2.ConditionReflection.Descriptor, global::Google.Cloud.Run.V2.TaskTemplateReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -101,7 +102,7 @@ static ExecutionReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.ListExecutionsResponse), global::Google.Cloud.Run.V2.ListExecutionsResponse.Parser, new[]{ "Executions", "NextPageToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.DeleteExecutionRequest), global::Google.Cloud.Run.V2.DeleteExecutionRequest.Parser, new[]{ "Name", "ValidateOnly", "Etag" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.CancelExecutionRequest), global::Google.Cloud.Run.V2.CancelExecutionRequest.Parser, new[]{ "Name", "ValidateOnly", "Etag" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Execution), global::Google.Cloud.Run.V2.Execution.Parser, new[]{ "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Job", "Parallelism", "TaskCount", "Template", "Reconciling", "Conditions", "ObservedGeneration", "RunningCount", "SucceededCount", "FailedCount", "CancelledCount", "RetriedCount", "LogUri", "SatisfiesPzs", "Etag" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Execution), global::Google.Cloud.Run.V2.Execution.Parser, new[]{ "Name", "Uid", "Creator", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Job", "Parallelism", "TaskCount", "Template", "Reconciling", "Conditions", "ObservedGeneration", "RunningCount", "SucceededCount", "FailedCount", "CancelledCount", "RetriedCount", "LogUri", "SatisfiesPzs", "Etag" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }) })); } #endregion @@ -1457,6 +1458,7 @@ public Execution() { public Execution(Execution other) : this() { name_ = other.name_; uid_ = other.uid_; + creator_ = other.creator_; generation_ = other.generation_; labels_ = other.labels_.Clone(); annotations_ = other.annotations_.Clone(); @@ -1523,6 +1525,21 @@ public string Uid { } } + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 32; + private string creator_ = ""; + /// + /// Output only. Email address of the authenticated creator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Creator { + get { return creator_; } + set { + creator_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "generation" field. public const int GenerationFieldNumber = 3; private long generation_; @@ -1681,7 +1698,8 @@ public long Generation { /// [Google Cloud Platform Launch /// Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports /// `ALPHA`, `BETA`, and `GA`. - /// <p>Note that this value might not be what was used + /// + /// Note that this value might not be what was used /// as input. For example, if ALPHA was provided as input in the parent /// resource, but only BETA and GA-level features are were, this field will be /// BETA. @@ -1950,6 +1968,7 @@ public bool Equals(Execution other) { } if (Name != other.Name) return false; if (Uid != other.Uid) return false; + if (Creator != other.Creator) return false; if (Generation != other.Generation) return false; if (!Labels.Equals(other.Labels)) return false; if (!Annotations.Equals(other.Annotations)) return false; @@ -1984,6 +2003,7 @@ public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (Creator.Length != 0) hash ^= Creator.GetHashCode(); if (Generation != 0L) hash ^= Generation.GetHashCode(); hash ^= Labels.GetHashCode(); hash ^= Annotations.GetHashCode(); @@ -2122,6 +2142,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(216, 1); output.WriteBool(SatisfiesPzs); } + if (Creator.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(Creator); + } if (Etag.Length != 0) { output.WriteRawTag(154, 6); output.WriteString(Etag); @@ -2231,6 +2255,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(216, 1); output.WriteBool(SatisfiesPzs); } + if (Creator.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(Creator); + } if (Etag.Length != 0) { output.WriteRawTag(154, 6); output.WriteString(Etag); @@ -2251,6 +2279,9 @@ public int CalculateSize() { if (Uid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); } + if (Creator.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Creator); + } if (Generation != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Generation); } @@ -2338,6 +2369,9 @@ public void MergeFrom(Execution other) { if (other.Uid.Length != 0) { Uid = other.Uid; } + if (other.Creator.Length != 0) { + Creator = other.Creator; + } if (other.Generation != 0L) { Generation = other.Generation; } @@ -2568,6 +2602,10 @@ public void MergeFrom(pb::CodedInputStream input) { SatisfiesPzs = input.ReadBool(); break; } + case 258: { + Creator = input.ReadString(); + break; + } case 794: { Etag = input.ReadString(); break; @@ -2712,6 +2750,10 @@ public void MergeFrom(pb::CodedInputStream input) { SatisfiesPzs = input.ReadBool(); break; } + case 258: { + Creator = input.ReadString(); + break; + } case 794: { Etag = input.ReadString(); break; diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Job.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Job.g.cs index f0830fc7cc29..9d25f425e579 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Job.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Job.g.cs @@ -3035,7 +3035,7 @@ public string ClientVersion { /// Set the launch stage to a preview stage on input to allow use of preview /// features in that stage. On read (or output), describes whether the resource /// uses preview features. - /// <p> + /// /// For example, if ALPHA is provided as input, but only BETA and GA-level /// features are used, this field will be BETA on output. /// diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/K8SMin.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/K8SMin.g.cs index ec5868a9c65d..5dc80035414d 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/K8SMin.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/K8SMin.g.cs @@ -26,7 +26,7 @@ static K8SMinReflection() { string.Concat( "CiFnb29nbGUvY2xvdWQvcnVuL3YyL2s4cy5taW4ucHJvdG8SE2dvb2dsZS5j", "bG91ZC5ydW4udjIaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8isAMKCUNvbnRhaW5lchIMCgRu", + "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8igQQKCUNvbnRhaW5lchIMCgRu", "YW1lGAEgASgJEhIKBWltYWdlGAIgASgJQgPgQQISDwoHY29tbWFuZBgDIAMo", "CRIMCgRhcmdzGAQgAygJEigKA2VudhgFIAMoCzIbLmdvb2dsZS5jbG91ZC5y", "dW4udjIuRW52VmFyEjwKCXJlc291cmNlcxgGIAEoCzIpLmdvb2dsZS5jbG91", @@ -36,69 +36,72 @@ static K8SMinReflection() { "bnQSEwoLd29ya2luZ19kaXIYCSABKAkSMgoObGl2ZW5lc3NfcHJvYmUYCiAB", "KAsyGi5nb29nbGUuY2xvdWQucnVuLnYyLlByb2JlEjEKDXN0YXJ0dXBfcHJv", "YmUYCyABKAsyGi5nb29nbGUuY2xvdWQucnVuLnYyLlByb2JlEhIKCmRlcGVu", - "ZHNfb24YDCADKAkiuQEKFFJlc291cmNlUmVxdWlyZW1lbnRzEkUKBmxpbWl0", - "cxgBIAMoCzI1Lmdvb2dsZS5jbG91ZC5ydW4udjIuUmVzb3VyY2VSZXF1aXJl", - "bWVudHMuTGltaXRzRW50cnkSEAoIY3B1X2lkbGUYAiABKAgSGQoRc3RhcnR1", - "cF9jcHVfYm9vc3QYAyABKAgaLQoLTGltaXRzRW50cnkSCwoDa2V5GAEgASgJ", - "Eg0KBXZhbHVlGAIgASgJOgI4ASJxCgZFbnZWYXISEQoEbmFtZRgBIAEoCUID", - "4EECEg8KBXZhbHVlGAIgASgJSAASOQoMdmFsdWVfc291cmNlGAMgASgLMiEu", - "Z29vZ2xlLmNsb3VkLnJ1bi52Mi5FbnZWYXJTb3VyY2VIAEIICgZ2YWx1ZXMi", - "TgoMRW52VmFyU291cmNlEj4KDnNlY3JldF9rZXlfcmVmGAEgASgLMiYuZ29v", - "Z2xlLmNsb3VkLnJ1bi52Mi5TZWNyZXRLZXlTZWxlY3RvciKSAQoRU2VjcmV0", - "S2V5U2VsZWN0b3ISOwoGc2VjcmV0GAEgASgJQivgQQL6QSUKI3NlY3JldG1h", - "bmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0EkAKB3ZlcnNpb24YAiABKAlC", - "L/pB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V5UmluZ3Mve2tleV9yaW5nfS9jcnlwdG9LZXlzL3tjcnlwdG9f", + "a2V5fepBSgojc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQS", + "I3Byb2plY3RzL3twcm9qZWN0fS9zZWNyZXRzL3tzZWNyZXR96kFkCipzZWNy", + "ZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldFZlcnNpb24SNnByb2pl", + "Y3RzL3twcm9qZWN0fS9zZWNyZXRzL3tzZWNyZXR9L3ZlcnNpb25zL3t2ZXJz", + "aW9ufepBZAoidnBjYWNjZXNzLmdvb2dsZWFwaXMuY29tL0Nvbm5lY3RvchI+", + "cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2Nvbm5l", + "Y3RvcnMve2Nvbm5lY3Rvcn1iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Container), global::Google.Cloud.Run.V2.Container.Parser, new[]{ "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", "WorkingDir", "LivenessProbe", "StartupProbe", "DependsOn" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Container), global::Google.Cloud.Run.V2.Container.Parser, new[]{ "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", "WorkingDir", "LivenessProbe", "StartupProbe", "DependsOn", "BaseImageUri", "BuildInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.ResourceRequirements), global::Google.Cloud.Run.V2.ResourceRequirements.Parser, new[]{ "Limits", "CpuIdle", "StartupCpuBoost" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.EnvVar), global::Google.Cloud.Run.V2.EnvVar.Parser, new[]{ "Name", "Value", "ValueSource" }, new[]{ "Values" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.EnvVarSource), global::Google.Cloud.Run.V2.EnvVarSource.Parser, new[]{ "SecretKeyRef" }, null, null, null, null), @@ -116,7 +119,8 @@ static K8SMinReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.HTTPGetAction), global::Google.Cloud.Run.V2.HTTPGetAction.Parser, new[]{ "Path", "HttpHeaders", "Port" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.HTTPHeader), global::Google.Cloud.Run.V2.HTTPHeader.Parser, new[]{ "Name", "Value" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.TCPSocketAction), global::Google.Cloud.Run.V2.TCPSocketAction.Parser, new[]{ "Port" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.GRPCAction), global::Google.Cloud.Run.V2.GRPCAction.Parser, new[]{ "Port", "Service" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.GRPCAction), global::Google.Cloud.Run.V2.GRPCAction.Parser, new[]{ "Port", "Service" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.BuildInfo), global::Google.Cloud.Run.V2.BuildInfo.Parser, new[]{ "FunctionTarget", "SourceLocation" }, null, null, null, null) })); } #endregion @@ -177,6 +181,8 @@ public Container(Container other) : this() { livenessProbe_ = other.livenessProbe_ != null ? other.livenessProbe_.Clone() : null; startupProbe_ = other.startupProbe_ != null ? other.startupProbe_.Clone() : null; dependsOn_ = other.dependsOn_.Clone(); + baseImageUri_ = other.baseImageUri_; + buildInfo_ = other.buildInfo_ != null ? other.buildInfo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -375,6 +381,37 @@ public string WorkingDir { get { return dependsOn_; } } + /// Field number for the "base_image_uri" field. + public const int BaseImageUriFieldNumber = 13; + private string baseImageUri_ = ""; + /// + /// Base image for this container. Only supported for services. If set, it + /// indicates that the service is enrolled into automatic base image update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseImageUri { + get { return baseImageUri_; } + set { + baseImageUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "build_info" field. + public const int BuildInfoFieldNumber = 15; + private global::Google.Cloud.Run.V2.BuildInfo buildInfo_; + /// + /// Output only. The build info of the container image. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Run.V2.BuildInfo BuildInfo { + get { return buildInfo_; } + set { + buildInfo_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -402,6 +439,8 @@ public bool Equals(Container other) { if (!object.Equals(LivenessProbe, other.LivenessProbe)) return false; if (!object.Equals(StartupProbe, other.StartupProbe)) return false; if(!dependsOn_.Equals(other.dependsOn_)) return false; + if (BaseImageUri != other.BaseImageUri) return false; + if (!object.Equals(BuildInfo, other.BuildInfo)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -421,6 +460,8 @@ public override int GetHashCode() { if (livenessProbe_ != null) hash ^= LivenessProbe.GetHashCode(); if (startupProbe_ != null) hash ^= StartupProbe.GetHashCode(); hash ^= dependsOn_.GetHashCode(); + if (BaseImageUri.Length != 0) hash ^= BaseImageUri.GetHashCode(); + if (buildInfo_ != null) hash ^= BuildInfo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -469,6 +510,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(StartupProbe); } dependsOn_.WriteTo(output, _repeated_dependsOn_codec); + if (BaseImageUri.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BaseImageUri); + } + if (buildInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(BuildInfo); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -509,6 +558,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(StartupProbe); } dependsOn_.WriteTo(ref output, _repeated_dependsOn_codec); + if (BaseImageUri.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BaseImageUri); + } + if (buildInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(BuildInfo); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -543,6 +600,12 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartupProbe); } size += dependsOn_.CalculateSize(_repeated_dependsOn_codec); + if (BaseImageUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseImageUri); + } + if (buildInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuildInfo); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -588,6 +651,15 @@ public void MergeFrom(Container other) { StartupProbe.MergeFrom(other.StartupProbe); } dependsOn_.Add(other.dependsOn_); + if (other.BaseImageUri.Length != 0) { + BaseImageUri = other.BaseImageUri; + } + if (other.buildInfo_ != null) { + if (buildInfo_ == null) { + BuildInfo = new global::Google.Cloud.Run.V2.BuildInfo(); + } + BuildInfo.MergeFrom(other.BuildInfo); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -660,6 +732,17 @@ public void MergeFrom(pb::CodedInputStream input) { dependsOn_.AddEntriesFrom(input, _repeated_dependsOn_codec); break; } + case 106: { + BaseImageUri = input.ReadString(); + break; + } + case 122: { + if (buildInfo_ == null) { + BuildInfo = new global::Google.Cloud.Run.V2.BuildInfo(); + } + input.ReadMessage(BuildInfo); + break; + } } } #endif @@ -732,6 +815,17 @@ public void MergeFrom(pb::CodedInputStream input) { dependsOn_.AddEntriesFrom(ref input, _repeated_dependsOn_codec); break; } + case 106: { + BaseImageUri = input.ReadString(); + break; + } + case 122: { + if (buildInfo_ == null) { + BuildInfo = new global::Google.Cloud.Run.V2.BuildInfo(); + } + input.ReadMessage(BuildInfo); + break; + } } } } @@ -5837,6 +5931,243 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Build information of the image. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuildInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Run.V2.K8SMinReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildInfo(BuildInfo other) : this() { + functionTarget_ = other.functionTarget_; + sourceLocation_ = other.sourceLocation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildInfo Clone() { + return new BuildInfo(this); + } + + /// Field number for the "function_target" field. + public const int FunctionTargetFieldNumber = 1; + private string functionTarget_ = ""; + /// + /// Output only. Entry point of the function when the image is a Cloud Run + /// function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FunctionTarget { + get { return functionTarget_; } + set { + functionTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_location" field. + public const int SourceLocationFieldNumber = 2; + private string sourceLocation_ = ""; + /// + /// Output only. Source code location of the image. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceLocation { + get { return sourceLocation_; } + set { + sourceLocation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BuildInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuildInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FunctionTarget != other.FunctionTarget) return false; + if (SourceLocation != other.SourceLocation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FunctionTarget.Length != 0) hash ^= FunctionTarget.GetHashCode(); + if (SourceLocation.Length != 0) hash ^= SourceLocation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FunctionTarget.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FunctionTarget); + } + if (SourceLocation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceLocation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FunctionTarget.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FunctionTarget); + } + if (SourceLocation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceLocation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FunctionTarget.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FunctionTarget); + } + if (SourceLocation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceLocation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuildInfo other) { + if (other == null) { + return; + } + if (other.FunctionTarget.Length != 0) { + FunctionTarget = other.FunctionTarget; + } + if (other.SourceLocation.Length != 0) { + SourceLocation = other.SourceLocation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FunctionTarget = input.ReadString(); + break; + } + case 18: { + SourceLocation = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + FunctionTarget = input.ReadString(); + break; + } + case 18: { + SourceLocation = input.ReadString(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Revision.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Revision.g.cs index faca4ac7c851..645110b55d60 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Revision.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Revision.g.cs @@ -1379,7 +1379,8 @@ public long Generation { /// [Google Cloud Platform Launch /// Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports /// `ALPHA`, `BETA`, and `GA`. - /// <p>Note that this value might not be what was used + /// + /// Note that this value might not be what was used /// as input. For example, if ALPHA was provided as input in the parent /// resource, but only BETA and GA-level features are were, this field will be /// BETA. diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Service.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Service.g.cs index c818e4bdd9f2..370c6b9a7a05 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Service.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Service.g.cs @@ -53,7 +53,7 @@ static ServiceReflection() { "ZXN0EjAKBG5hbWUYASABKAlCIuBBAvpBHAoacnVuLmdvb2dsZWFwaXMuY29t", "L1NlcnZpY2UibQoURGVsZXRlU2VydmljZVJlcXVlc3QSMAoEbmFtZRgBIAEo", "CUIi4EEC+kEcChpydW4uZ29vZ2xlYXBpcy5jb20vU2VydmljZRIVCg12YWxp", - "ZGF0ZV9vbmx5GAIgASgIEgwKBGV0YWcYAyABKAkigA0KB1NlcnZpY2USDAoE", + "ZGF0ZV9vbmx5GAIgASgIEgwKBGV0YWcYAyABKAkivQ0KB1NlcnZpY2USDAoE", "bmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRIQCgN1aWQYAyABKAlC", "A+BBAxIXCgpnZW5lcmF0aW9uGAQgASgDQgPgQQMSPQoGbGFiZWxzGAUgAygL", "MiguZ29vZ2xlLmNsb3VkLnJ1bi52Mi5TZXJ2aWNlLkxhYmVsc0VudHJ5QgPg", @@ -85,53 +85,54 @@ static ServiceReflection() { "+kEdChtydW4uZ29vZ2xlYXBpcy5jb20vUmV2aXNpb24SRwoQdHJhZmZpY19z", "dGF0dXNlcxgjIAMoCzIoLmdvb2dsZS5jbG91ZC5ydW4udjIuVHJhZmZpY1Rh", "cmdldFN0YXR1c0ID4EEDEhAKA3VyaRgkIAEoCUID4EEDEhoKDXNhdGlzZmll", - "c19wenMYJiABKAhCA+BBAxIYCgtyZWNvbmNpbGluZxhiIAEoCEID4EEDEhEK", - "BGV0YWcYYyABKAlCA+BBAxotCgtMYWJlbHNFbnRyeRIL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92Mi97cGFyZW50", - "PXByb2plY3RzLyovbG9jYXRpb25zLyp9L3NlcnZpY2VzitPkkwItEisKBnBh", - "cmVudBIhcHJvamVjdHMvKi9sb2NhdGlvbnMve2xvY2F0aW9uPSp9EpICCg1V", - "cGRhdGVTZXJ2aWNlEikuZ29vZ2xlLmNsb3VkLnJ1bi52Mi5VcGRhdGVTZXJ2", - "aWNlUmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24itgHK", - "QRIKB1NlcnZpY2USB1NlcnZpY2XaQQdzZXJ2aWNl2kETc2VydmljZSx1cGRh", - "dGVfbWFza4LT5JMCPzI0L3YyL3tzZXJ2aWNlLm5hbWU9cHJvamVjdHMvKi9s", - "b2NhdGlvbnMvKi9zZXJ2aWNlcy8qfToHc2VydmljZYrT5JMCNhI0CgxzZXJ2", - "aWNlLm5hbWUSJHByb2plY3RzLyovbG9jYXRpb25zL3tsb2NhdGlvbj0qfS8q", - "KhLgAQoNRGVsZXRlU2VydmljZRIpLmdvb2dsZS5jbG91ZC5ydW4udjIuRGVs", - "ZXRlU2VydmljZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0", - "aW9uIoQBykESCgdTZXJ2aWNlEgdTZXJ2aWNl2kEEbmFtZYLT5JMCLiosL3Yy", - "L3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKn2K0+ST", - "Ai4SLAoEbmFtZRIkcHJvamVjdHMvKi9sb2NhdGlvbnMve2xvY2F0aW9uPSp9", - "LyoqEpABCgxHZXRJYW1Qb2xpY3kSIi5nb29nbGUuaWFtLnYxLkdldElhbVBv", - "bGljeVJlcXVlc3QaFS5nb29nbGUuaWFtLnYxLlBvbGljeSJFgtPkkwI/Ej0v", - "djIve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMv", - "Kn06Z2V0SWFtUG9saWN5EpMBCgxTZXRJYW1Qb2xpY3kSIi5nb29nbGUuaWFt", - "LnYxLlNldElhbVBvbGljeVJlcXVlc3QaFS5nb29nbGUuaWFtLnYxLlBvbGlj", - "eSJIgtPkkwJCIj0vdjIve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25z", - "Lyovc2VydmljZXMvKn06c2V0SWFtUG9saWN5OgEqErkBChJUZXN0SWFtUGVy", - "bWlzc2lvbnMSKC5nb29nbGUuaWFtLnYxLlRlc3RJYW1QZXJtaXNzaW9uc1Jl", - "cXVlc3QaKS5nb29nbGUuaWFtLnYxLlRlc3RJYW1QZXJtaXNzaW9uc1Jlc3Bv", - "bnNlIk6C0+STAkgiQy92Mi97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlv", - "bnMvKi9zZXJ2aWNlcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASoaRspBEnJ1", - "bi5nb29nbGVhcGlzLmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29t", - "L2F1dGgvY2xvdWQtcGxhdGZvcm1CVAoXY29tLmdvb2dsZS5jbG91ZC5ydW4u", - "djJCDFNlcnZpY2VQcm90b1ABWiljbG91ZC5nb29nbGUuY29tL2dvL3J1bi9h", - "cGl2Mi9ydW5wYjtydW5wYmIGcHJvdG8z")); + "c19wenMYJiABKAhCA+BBAxI7CgxidWlsZF9jb25maWcYKSABKAsyIC5nb29n", + "bGUuY2xvdWQucnVuLnYyLkJ1aWxkQ29uZmlnQgPgQQESGAoLcmVjb25jaWxp", + "bmcYYiABKAhCA+BBAxIRCgRldGFnGGMgASgJQgPgQQMaLQoLTGFiZWxzRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARoyChBBbm5vdGF0", + "aW9uc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAE6XupB", + "WwoacnVuLmdvb2dsZWFwaXMuY29tL1NlcnZpY2USOnByb2plY3RzL3twcm9q", + "ZWN0fS9sb2NhdGlvbn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eToB", + "KhK5AQoSVGVzdElhbVBlcm1pc3Npb25zEiguZ29vZ2xlLmlhbS52MS5UZXN0", + "SWFtUGVybWlzc2lvbnNSZXF1ZXN0GikuZ29vZ2xlLmlhbS52MS5UZXN0SWFt", + "UGVybWlzc2lvbnNSZXNwb25zZSJOgtPkkwJIIkMvdjIve3Jlc291cmNlPXBy", + "b2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKn06dGVzdElhbVBlcm1p", + "c3Npb25zOgEqGkbKQRJydW4uZ29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3", + "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQlQKF2NvbS5n", + "b29nbGUuY2xvdWQucnVuLnYyQgxTZXJ2aWNlUHJvdG9QAVopY2xvdWQuZ29v", + "Z2xlLmNvbS9nby9ydW4vYXBpdjIvcnVucGI7cnVucGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.LaunchStageReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Api.RoutingReflection.Descriptor, global::Google.Cloud.Run.V2.ConditionReflection.Descriptor, global::Google.Cloud.Run.V2.RevisionTemplateReflection.Descriptor, global::Google.Cloud.Run.V2.TrafficTargetReflection.Descriptor, global::Google.Cloud.Run.V2.VendorSettingsReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -141,7 +142,7 @@ static ServiceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.ListServicesResponse), global::Google.Cloud.Run.V2.ListServicesResponse.Parser, new[]{ "Services", "NextPageToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.GetServiceRequest), global::Google.Cloud.Run.V2.GetServiceRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.DeleteServiceRequest), global::Google.Cloud.Run.V2.DeleteServiceRequest.Parser, new[]{ "Name", "ValidateOnly", "Etag" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Service), global::Google.Cloud.Run.V2.Service.Parser, new[]{ "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "Scaling", "InvokerIamDisabled", "DefaultUriDisabled", "Urls", "CustomAudiences", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "SatisfiesPzs", "Reconciling", "Etag" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.Service), global::Google.Cloud.Run.V2.Service.Parser, new[]{ "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "Scaling", "InvokerIamDisabled", "DefaultUriDisabled", "Urls", "CustomAudiences", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "SatisfiesPzs", "BuildConfig", "Reconciling", "Etag" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }) })); } #endregion @@ -1913,6 +1914,7 @@ public Service(Service other) : this() { trafficStatuses_ = other.trafficStatuses_.Clone(); uri_ = other.uri_; satisfiesPzs_ = other.satisfiesPzs_; + buildConfig_ = other.buildConfig_ != null ? other.buildConfig_.Clone() : null; reconciling_ = other.reconciling_; etag_ = other.etag_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2094,7 +2096,7 @@ public long Generation { private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; /// /// Output only. For a deleted resource, the time after which it will be - /// permamently deleted. + /// permanently deleted. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2193,7 +2195,7 @@ public string ClientVersion { /// Set the launch stage to a preview stage on input to allow use of preview /// features in that stage. On read (or output), describes whether the resource /// uses preview features. - /// <p> + /// /// For example, if ALPHA is provided as input, but only BETA and GA-level /// features are used, this field will be BETA on output. /// @@ -2466,6 +2468,21 @@ public bool SatisfiesPzs { } } + /// Field number for the "build_config" field. + public const int BuildConfigFieldNumber = 41; + private global::Google.Cloud.Run.V2.BuildConfig buildConfig_; + /// + /// Optional. Configuration for building a Cloud Run function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Run.V2.BuildConfig BuildConfig { + get { return buildConfig_; } + set { + buildConfig_ = value; + } + } + /// Field number for the "reconciling" field. public const int ReconcilingFieldNumber = 98; private bool reconciling_; @@ -2477,7 +2494,7 @@ public bool SatisfiesPzs { /// will asynchronously perform all necessary steps to bring the Service to the /// desired serving state. This process is called reconciliation. /// While reconciliation is in process, `observed_generation`, - /// `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient + /// `latest_ready_revision`, `traffic_statuses`, and `uri` will have transient /// values that might mismatch the intended state: Once reconciliation is over /// (and this field is false), there are two possible outcomes: reconciliation /// succeeded and the serving state matches the Service, or there was an error, @@ -2565,6 +2582,7 @@ public bool Equals(Service other) { if(!trafficStatuses_.Equals(other.trafficStatuses_)) return false; if (Uri != other.Uri) return false; if (SatisfiesPzs != other.SatisfiesPzs) return false; + if (!object.Equals(BuildConfig, other.BuildConfig)) return false; if (Reconciling != other.Reconciling) return false; if (Etag != other.Etag) return false; return Equals(_unknownFields, other._unknownFields); @@ -2606,6 +2624,7 @@ public override int GetHashCode() { hash ^= trafficStatuses_.GetHashCode(); if (Uri.Length != 0) hash ^= Uri.GetHashCode(); if (SatisfiesPzs != false) hash ^= SatisfiesPzs.GetHashCode(); + if (buildConfig_ != null) hash ^= BuildConfig.GetHashCode(); if (Reconciling != false) hash ^= Reconciling.GetHashCode(); if (Etag.Length != 0) hash ^= Etag.GetHashCode(); if (_unknownFields != null) { @@ -2733,6 +2752,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(176, 2); output.WriteBool(SatisfiesPzs); } + if (buildConfig_ != null) { + output.WriteRawTag(202, 2); + output.WriteMessage(BuildConfig); + } if (Reconciling != false) { output.WriteRawTag(144, 6); output.WriteBool(Reconciling); @@ -2858,6 +2881,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(176, 2); output.WriteBool(SatisfiesPzs); } + if (buildConfig_ != null) { + output.WriteRawTag(202, 2); + output.WriteMessage(BuildConfig); + } if (Reconciling != false) { output.WriteRawTag(144, 6); output.WriteBool(Reconciling); @@ -2958,6 +2985,9 @@ public int CalculateSize() { if (SatisfiesPzs != false) { size += 2 + 1; } + if (buildConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BuildConfig); + } if (Reconciling != false) { size += 2 + 1; } @@ -3082,6 +3112,12 @@ public void MergeFrom(Service other) { if (other.SatisfiesPzs != false) { SatisfiesPzs = other.SatisfiesPzs; } + if (other.buildConfig_ != null) { + if (buildConfig_ == null) { + BuildConfig = new global::Google.Cloud.Run.V2.BuildConfig(); + } + BuildConfig.MergeFrom(other.BuildConfig); + } if (other.Reconciling != false) { Reconciling = other.Reconciling; } @@ -3255,6 +3291,13 @@ public void MergeFrom(pb::CodedInputStream input) { SatisfiesPzs = input.ReadBool(); break; } + case 330: { + if (buildConfig_ == null) { + BuildConfig = new global::Google.Cloud.Run.V2.BuildConfig(); + } + input.ReadMessage(BuildConfig); + break; + } case 784: { Reconciling = input.ReadBool(); break; @@ -3430,6 +3473,13 @@ public void MergeFrom(pb::CodedInputStream input) { SatisfiesPzs = input.ReadBool(); break; } + case 330: { + if (buildConfig_ == null) { + BuildConfig = new global::Google.Cloud.Run.V2.BuildConfig(); + } + input.ReadMessage(BuildConfig); + break; + } case 784: { Reconciling = input.ReadBool(); break; diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettings.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettings.g.cs index 38fbd1b84c43..c77363747ae8 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettings.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettings.g.cs @@ -49,23 +49,36 @@ static VendorSettingsReflection() { "YW5jZV9jb3VudBgGIAEoBUID4EEBSACIAQEiRgoLU2NhbGluZ01vZGUSHAoY", "U0NBTElOR19NT0RFX1VOU1BFQ0lGSUVEEAASDQoJQVVUT01BVElDEAESCgoG", "TUFOVUFMEAJCGAoWX21hbnVhbF9pbnN0YW5jZV9jb3VudCIoCgxOb2RlU2Vs", - "ZWN0b3ISGAoLYWNjZWxlcmF0b3IYASABKAlCA+BBAiqzAQoOSW5ncmVzc1Ry", - "YWZmaWMSHwobSU5HUkVTU19UUkFGRklDX1VOU1BFQ0lGSUVEEAASFwoTSU5H", - "UkVTU19UUkFGRklDX0FMTBABEiEKHUlOR1JFU1NfVFJBRkZJQ19JTlRFUk5B", - "TF9PTkxZEAISKgomSU5HUkVTU19UUkFGRklDX0lOVEVSTkFMX0xPQURfQkFM", - "QU5DRVIQAxIYChRJTkdSRVNT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dG9QAVopY2xvdWQuZ29vZ2xlLmNv", + "bS9nby9ydW4vYXBpdjIvcnVucGI7cnVucGLqQWMKKWJpbmFyeWF1dGhvcml6", + "YXRpb24uZ29vZ2xlYXBpcy5jb20vUG9saWN5Ehlwcm9qZWN0cy97cHJvamVj", + "dH0vcG9saWN5Ehtsb2NhdGlvbnMve2xvY2F0aW9ufS9wb2xpY3nqQVwKI25l", + "dHdvcmtzZXJ2aWNlcy5nb29nbGVhcGlzLmNvbS9NZXNoEjVwcm9qZWN0cy97", + "cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vbWVzaGVzL3ttZXNofepB", + "WQofY2xvdWRidWlsZC5nb29nbGVhcGlzLmNvbS9CdWlsZBI2cHJvamVjdHMv", + "e3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2J1aWxkcy97YnVpbGR9", + "YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Run.V2.IngressTraffic), typeof(global::Google.Cloud.Run.V2.ExecutionEnvironment), typeof(global::Google.Cloud.Run.V2.EncryptionKeyRevocationAction), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -74,7 +87,8 @@ static VendorSettingsReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.RevisionScaling), global::Google.Cloud.Run.V2.RevisionScaling.Parser, new[]{ "MinInstanceCount", "MaxInstanceCount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.ServiceMesh), global::Google.Cloud.Run.V2.ServiceMesh.Parser, new[]{ "Mesh" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.ServiceScaling), global::Google.Cloud.Run.V2.ServiceScaling.Parser, new[]{ "MinInstanceCount", "ScalingMode", "ManualInstanceCount" }, new[]{ "ManualInstanceCount" }, new[]{ typeof(global::Google.Cloud.Run.V2.ServiceScaling.Types.ScalingMode) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.NodeSelector), global::Google.Cloud.Run.V2.NodeSelector.Parser, new[]{ "Accelerator" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.NodeSelector), global::Google.Cloud.Run.V2.NodeSelector.Parser, new[]{ "Accelerator" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Run.V2.BuildConfig), global::Google.Cloud.Run.V2.BuildConfig.Parser, new[]{ "Name", "SourceLocation", "FunctionTarget", "ImageUri", "BaseImage", "EnableAutomaticUpdates", "WorkerPool", "EnvironmentVariables", "ServiceAccount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) })); } #endregion @@ -2019,6 +2033,524 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Describes the Build step of the function that builds a container from the + /// given source. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuildConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Run.V2.VendorSettingsReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildConfig(BuildConfig other) : this() { + name_ = other.name_; + sourceLocation_ = other.sourceLocation_; + functionTarget_ = other.functionTarget_; + imageUri_ = other.imageUri_; + baseImage_ = other.baseImage_; + enableAutomaticUpdates_ = other.enableAutomaticUpdates_; + workerPool_ = other.workerPool_; + environmentVariables_ = other.environmentVariables_.Clone(); + serviceAccount_ = other.serviceAccount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuildConfig Clone() { + return new BuildConfig(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The Cloud Build name of the latest successful deployment of + /// the function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_location" field. + public const int SourceLocationFieldNumber = 2; + private string sourceLocation_ = ""; + /// + /// The Cloud Storage bucket URI where the function source code is located. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceLocation { + get { return sourceLocation_; } + set { + sourceLocation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "function_target" field. + public const int FunctionTargetFieldNumber = 3; + private string functionTarget_ = ""; + /// + /// Optional. The name of the function (as defined in source code) that will be + /// executed. Defaults to the resource name suffix, if not specified. For + /// backward compatibility, if function with given name is not found, then the + /// system will try to use function named "function". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FunctionTarget { + get { return functionTarget_; } + set { + functionTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image_uri" field. + public const int ImageUriFieldNumber = 4; + private string imageUri_ = ""; + /// + /// Optional. Artifact Registry URI to store the built image. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ImageUri { + get { return imageUri_; } + set { + imageUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "base_image" field. + public const int BaseImageFieldNumber = 5; + private string baseImage_ = ""; + /// + /// Optional. The base image used to build the function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseImage { + get { return baseImage_; } + set { + baseImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "enable_automatic_updates" field. + public const int EnableAutomaticUpdatesFieldNumber = 6; + private bool enableAutomaticUpdates_; + /// + /// Optional. Sets whether the function will receive automatic base image + /// updates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableAutomaticUpdates { + get { return enableAutomaticUpdates_; } + set { + enableAutomaticUpdates_ = value; + } + } + + /// Field number for the "worker_pool" field. + public const int WorkerPoolFieldNumber = 7; + private string workerPool_ = ""; + /// + /// Optional. Name of the Cloud Build Custom Worker Pool that should be used to + /// build the Cloud Run function. The format of this field is + /// `projects/{project}/locations/{region}/workerPools/{workerPool}` where + /// `{project}` and `{region}` are the project id and region respectively where + /// the worker pool is defined and `{workerPool}` is the short name of the + /// worker pool. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkerPool { + get { return workerPool_; } + set { + workerPool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "environment_variables" field. + public const int EnvironmentVariablesFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_environmentVariables_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField environmentVariables_ = new pbc::MapField(); + /// + /// Optional. User-provided build-time environment variables for the function + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField EnvironmentVariables { + get { return environmentVariables_; } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 9; + private string serviceAccount_ = ""; + /// + /// Optional. Service account to be used for building the container. The format + /// of this field is + /// `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BuildConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuildConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (SourceLocation != other.SourceLocation) return false; + if (FunctionTarget != other.FunctionTarget) return false; + if (ImageUri != other.ImageUri) return false; + if (BaseImage != other.BaseImage) return false; + if (EnableAutomaticUpdates != other.EnableAutomaticUpdates) return false; + if (WorkerPool != other.WorkerPool) return false; + if (!EnvironmentVariables.Equals(other.EnvironmentVariables)) return false; + if (ServiceAccount != other.ServiceAccount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceLocation.Length != 0) hash ^= SourceLocation.GetHashCode(); + if (FunctionTarget.Length != 0) hash ^= FunctionTarget.GetHashCode(); + if (ImageUri.Length != 0) hash ^= ImageUri.GetHashCode(); + if (BaseImage.Length != 0) hash ^= BaseImage.GetHashCode(); + if (EnableAutomaticUpdates != false) hash ^= EnableAutomaticUpdates.GetHashCode(); + if (WorkerPool.Length != 0) hash ^= WorkerPool.GetHashCode(); + hash ^= EnvironmentVariables.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceLocation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceLocation); + } + if (FunctionTarget.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FunctionTarget); + } + if (ImageUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ImageUri); + } + if (BaseImage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BaseImage); + } + if (EnableAutomaticUpdates != false) { + output.WriteRawTag(48); + output.WriteBool(EnableAutomaticUpdates); + } + if (WorkerPool.Length != 0) { + output.WriteRawTag(58); + output.WriteString(WorkerPool); + } + environmentVariables_.WriteTo(output, _map_environmentVariables_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ServiceAccount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceLocation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceLocation); + } + if (FunctionTarget.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FunctionTarget); + } + if (ImageUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ImageUri); + } + if (BaseImage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BaseImage); + } + if (EnableAutomaticUpdates != false) { + output.WriteRawTag(48); + output.WriteBool(EnableAutomaticUpdates); + } + if (WorkerPool.Length != 0) { + output.WriteRawTag(58); + output.WriteString(WorkerPool); + } + environmentVariables_.WriteTo(ref output, _map_environmentVariables_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ServiceAccount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceLocation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceLocation); + } + if (FunctionTarget.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FunctionTarget); + } + if (ImageUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUri); + } + if (BaseImage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseImage); + } + if (EnableAutomaticUpdates != false) { + size += 1 + 1; + } + if (WorkerPool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkerPool); + } + size += environmentVariables_.CalculateSize(_map_environmentVariables_codec); + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuildConfig other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceLocation.Length != 0) { + SourceLocation = other.SourceLocation; + } + if (other.FunctionTarget.Length != 0) { + FunctionTarget = other.FunctionTarget; + } + if (other.ImageUri.Length != 0) { + ImageUri = other.ImageUri; + } + if (other.BaseImage.Length != 0) { + BaseImage = other.BaseImage; + } + if (other.EnableAutomaticUpdates != false) { + EnableAutomaticUpdates = other.EnableAutomaticUpdates; + } + if (other.WorkerPool.Length != 0) { + WorkerPool = other.WorkerPool; + } + environmentVariables_.MergeFrom(other.environmentVariables_); + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceLocation = input.ReadString(); + break; + } + case 26: { + FunctionTarget = input.ReadString(); + break; + } + case 34: { + ImageUri = input.ReadString(); + break; + } + case 42: { + BaseImage = input.ReadString(); + break; + } + case 48: { + EnableAutomaticUpdates = input.ReadBool(); + break; + } + case 58: { + WorkerPool = input.ReadString(); + break; + } + case 66: { + environmentVariables_.AddEntriesFrom(input, _map_environmentVariables_codec); + break; + } + case 74: { + ServiceAccount = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceLocation = input.ReadString(); + break; + } + case 26: { + FunctionTarget = input.ReadString(); + break; + } + case 34: { + ImageUri = input.ReadString(); + break; + } + case 42: { + BaseImage = input.ReadString(); + break; + } + case 48: { + EnableAutomaticUpdates = input.ReadBool(); + break; + } + case 58: { + WorkerPool = input.ReadString(); + break; + } + case 66: { + environmentVariables_.AddEntriesFrom(ref input, _map_environmentVariables_codec); + break; + } + case 74: { + ServiceAccount = input.ReadString(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettingsResourceNames.g.cs b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettingsResourceNames.g.cs index 3138a444205c..c744562a414e 100644 --- a/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettingsResourceNames.g.cs +++ b/apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/VendorSettingsResourceNames.g.cs @@ -16,6 +16,7 @@ #pragma warning disable CS8981 using gax = Google.Api.Gax; +using gcrv = Google.Cloud.Run.V2; using sys = System; namespace Google.Cloud.Run.V2 @@ -510,6 +511,247 @@ public override string ToString() public static bool operator !=(MeshName a, MeshName b) => !(a == b); } + /// Resource name for the Build resource. + public sealed partial class BuildName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/builds/{build}. + /// + ProjectLocationBuild = 1, + } + + private static gax::PathTemplate s_projectLocationBuild = new gax::PathTemplate("projects/{project}/locations/{location}/builds/{build}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static BuildName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new BuildName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/locations/{location}/builds/{build} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Build ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BuildName FromProjectLocationBuild(string projectId, string locationId, string buildId) => + new BuildName(ResourceNameType.ProjectLocationBuild, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), buildId: gax::GaxPreconditions.CheckNotNullOrEmpty(buildId, nameof(buildId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/builds/{build}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Build ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/builds/{build}. + /// + public static string Format(string projectId, string locationId, string buildId) => + FormatProjectLocationBuild(projectId, locationId, buildId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/builds/{build}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Build ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/builds/{build}. + /// + public static string FormatProjectLocationBuild(string projectId, string locationId, string buildId) => + s_projectLocationBuild.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(buildId, nameof(buildId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/locations/{location}/builds/{build} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static BuildName Parse(string buildName) => Parse(buildName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/locations/{location}/builds/{build} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static BuildName Parse(string buildName, bool allowUnparsed) => + TryParse(buildName, allowUnparsed, out BuildName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/locations/{location}/builds/{build} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string buildName, out BuildName result) => TryParse(buildName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/locations/{location}/builds/{build} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string buildName, bool allowUnparsed, out BuildName result) + { + gax::GaxPreconditions.CheckNotNull(buildName, nameof(buildName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationBuild.TryParseName(buildName, out resourceName)) + { + result = FromProjectLocationBuild(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(buildName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private BuildName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string buildId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + BuildId = buildId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/builds/{build} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Build ID. Must not be null or empty. + public BuildName(string projectId, string locationId, string buildId) : this(ResourceNameType.ProjectLocationBuild, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), buildId: gax::GaxPreconditions.CheckNotNullOrEmpty(buildId, nameof(buildId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Build ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string BuildId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectLocationBuild: return s_projectLocationBuild.Expand(ProjectId, LocationId, BuildId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as BuildName); + + /// + public bool Equals(BuildName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(BuildName a, BuildName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(BuildName a, BuildName b) => !(a == b); + } + public partial class VpcAccess { /// @@ -541,4 +783,25 @@ public MeshName MeshAsMeshName set => Mesh = value?.ToString() ?? ""; } } + + public partial class BuildConfig + { + /// + /// -typed view over the resource name property. + /// + public gcrv::BuildName BuildName + { + get => string.IsNullOrEmpty(Name) ? null : gcrv::BuildName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public WorkerPoolName WorkerPoolAsWorkerPoolName + { + get => string.IsNullOrEmpty(WorkerPool) ? null : WorkerPoolName.Parse(WorkerPool, allowUnparsed: true); + set => WorkerPool = value?.ToString() ?? ""; + } + } }