Skip to content

Commit

Permalink
feat: add BuildConfig to Services for configuring Run functions
Browse files Browse the repository at this point in the history
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: googleapis/googleapis@3d19492

Source-Link: googleapis/googleapis-gen@c7231d3
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUnVuLlYyLy5Pd2xCb3QueWFtbCIsImgiOiJjNzIzMWQzNWEyZmI1ZWJmNGI3YzRkN2U5Y2ZhNjI0NjA3NWIxOWRjIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Feb 5, 2025
1 parent c6edf7e commit a73130d
Show file tree
Hide file tree
Showing 8 changed files with 1,468 additions and 206 deletions.
85 changes: 64 additions & 21 deletions apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Build.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static BuildReflection() {
"dWQucnVuLnYyGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29n",
"bGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv",
"ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxojZ29vZ2xlL2xv",
"bmdydW5uaW5nL29wZXJhdGlvbnMucHJvdG8imQYKElN1Ym1pdEJ1aWxkUmVx",
"bmdydW5uaW5nL29wZXJhdGlvbnMucHJvdG8iugYKElN1Ym1pdEJ1aWxkUmVx",
"dWVzdBITCgZwYXJlbnQYASABKAlCA+BBAhJBCg5zdG9yYWdlX3NvdXJjZRgC",
"IAEoCzIiLmdvb2dsZS5jbG91ZC5ydW4udjIuU3RvcmFnZVNvdXJjZUID4EEC",
"SAASFgoJaW1hZ2VfdXJpGAMgASgJQgPgQQISUgoPYnVpbGRwYW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0b3JhZ2VTb3VyY2USEwoGYnVja2V0GAEgASgJQgPgQQISEwoGb2JqZWN0",
"GAIgASgJQgPgQQISFwoKZ2VuZXJhdGlvbhgDIAEoA0ID4EEBMvEBCgZCdWls",
"ZHMSngEKC1N1Ym1pdEJ1aWxkEicuZ29vZ2xlLmNsb3VkLnJ1bi52Mi5TdWJt",
"aXRCdWlsZFJlcXVlc3QaKC5nb29nbGUuY2xvdWQucnVuLnYyLlN1Ym1pdEJ1",
"aWxkUmVzcG9uc2UiPILT5JMCNiIxL3YyL3twYXJlbnQ9cHJvamVjdHMvKi9s",
"b2NhdGlvbnMvKn0vYnVpbGRzOnN1Ym1pdDoBKhpGykEScnVuLmdvb2dsZWFw",
"aXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91",
"ZC1wbGF0Zm9ybUK+AQoXY29tLmdvb2dsZS5jbG91ZC5ydW4udjJCCkJ1aWxk",
"UHJvdG9QAVopY2xvdWQuZ29vZ2xlLmNvbS9nby9ydW4vYXBpdjIvcnVucGI7",
"cnVucGLqQWkKJGNsb3VkYnVpbGQuZ29vZ2xlYXBpcy5jb20vV29ya2VyUG9v",
"bBJBcHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3dv",
"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)
}));
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -917,7 +919,7 @@ public string CacheImageUri {
public const int BaseImageFieldNumber = 4;
private string baseImage_ = "";
/// <summary>
/// Optional. The base image used to opt into automatic base image updates.
/// Optional. The base image to use for the build.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -959,6 +961,23 @@ public bool EnableAutomaticUpdates {
}
}

/// <summary>Field number for the "project_descriptor" field.</summary>
public const int ProjectDescriptorFieldNumber = 7;
private string projectDescriptor_ = "";
/// <summary>
/// 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.
/// </summary>
[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) {
Expand All @@ -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);
}

Expand All @@ -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();
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand All @@ -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();
}
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -1156,6 +1191,10 @@ public void MergeFrom(pb::CodedInputStream input) {
EnableAutomaticUpdates = input.ReadBool();
break;
}
case 58: {
ProjectDescriptor = input.ReadString();
break;
}
}
}
#endif
Expand Down Expand Up @@ -1195,6 +1234,10 @@ public void MergeFrom(pb::CodedInputStream input) {
EnableAutomaticUpdates = input.ReadBool();
break;
}
case 58: {
ProjectDescriptor = input.ReadString();
break;
}
}
}
}
Expand Down
Loading

0 comments on commit a73130d

Please sign in to comment.