From 39afa501f82de87c2b2149f2e9d6d3d6703272b3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 18 Nov 2024 21:12:10 +0000 Subject: [PATCH] feat: add CustomEnvironmentSpec to NotebookExecutionJob PiperOrigin-RevId: 697694162 Source-Link: https://github.com/googleapis/googleapis/commit/7b30cb57f3ceaf636dd0ab1169a55f0284e054bb Source-Link: https://github.com/googleapis/googleapis-gen/commit/7243ba9bc94d43aac34a9df3964f8e57b5e363ac Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNzI0M2JhOWJjOTRkNDNhYWMzNGE5ZGYzOTY0ZjhlNTdiNWUzNjNhYyJ9 --- .../NotebookExecutionJob.g.cs | 458 ++++++++++++++++-- 1 file changed, 414 insertions(+), 44 deletions(-) diff --git a/apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1/NotebookExecutionJob.g.cs b/apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1/NotebookExecutionJob.g.cs index a262981014bc..1cf5086e358b 100644 --- a/apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1/NotebookExecutionJob.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1/NotebookExecutionJob.g.cs @@ -29,54 +29,65 @@ static NotebookExecutionJobReflection() { "Z2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNv", "dXJjZS5wcm90bxowZ29vZ2xlL2Nsb3VkL2FpcGxhdGZvcm0vdjEvZW5jcnlw", "dGlvbl9zcGVjLnByb3RvGipnb29nbGUvY2xvdWQvYWlwbGF0Zm9ybS92MS9q", - "b2Jfc3RhdGUucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90", - "bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm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tFeGVjdXRpb25Kb2JCEQoPbm90", + "ZWJvb2tfc291cmNlQhIKEGVudmlyb25tZW50X3NwZWNCEAoOZXhlY3V0aW9u", + "X3NpbmtCFAoSZXhlY3V0aW9uX2lkZW50aXR5QtcBCh5jb20uZ29vZ2xlLmNs", + "b3VkLmFpcGxhdGZvcm0udjFCGU5vdGVib29rRXhlY3V0aW9uSm9iUHJvdG9Q", + "AVo+Y2xvdWQuZ29vZ2xlLmNvbS9nby9haXBsYXRmb3JtL2FwaXYxL2FpcGxh", + "dGZvcm1wYjthaXBsYXRmb3JtcGKqAhpHb29nbGUuQ2xvdWQuQUlQbGF0Zm9y", + "bS5WMcoCGkdvb2dsZVxDbG91ZFxBSVBsYXRmb3JtXFYx6gIdR29vZ2xlOjpD", + "bG91ZDo6QUlQbGF0Zm9ybTo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.JobStateReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.JobStateReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.MachineResourcesReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.NetworkSpecReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Parser, new[]{ "DataformRepositorySource", "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", "GcsOutputUri", "ExecutionUser", "ServiceAccount", "Name", "DisplayName", "ExecutionTimeout", "ScheduleResourceName", "JobState", "Status", "CreateTime", "UpdateTime", "Labels", "EncryptionSpec" }, new[]{ "NotebookSource", "EnvironmentSpec", "ExecutionSink", "ExecutionIdentity" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DataformRepositorySource), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DataformRepositorySource.Parser, new[]{ "DataformRepositoryResourceName", "CommitSha" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Parser, new[]{ "DataformRepositorySource", "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", "CustomEnvironmentSpec", "GcsOutputUri", "ExecutionUser", "ServiceAccount", "Name", "DisplayName", "ExecutionTimeout", "ScheduleResourceName", "JobState", "Status", "CreateTime", "UpdateTime", "Labels", "EncryptionSpec" }, new[]{ "NotebookSource", "EnvironmentSpec", "ExecutionSink", "ExecutionIdentity" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DataformRepositorySource), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DataformRepositorySource.Parser, new[]{ "DataformRepositoryResourceName", "CommitSha" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.GcsNotebookSource), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.GcsNotebookSource.Parser, new[]{ "Uri", "Generation" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource.Parser, new[]{ "Content" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec), global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec.Parser, new[]{ "MachineSpec", "PersistentDiskSpec", "NetworkSpec" }, null, null, null, null), null, }) })); } @@ -148,6 +159,9 @@ public NotebookExecutionJob(NotebookExecutionJob other) : this() { case EnvironmentSpecOneofCase.NotebookRuntimeTemplateResourceName: NotebookRuntimeTemplateResourceName = other.NotebookRuntimeTemplateResourceName; break; + case EnvironmentSpecOneofCase.CustomEnvironmentSpec: + CustomEnvironmentSpec = other.CustomEnvironmentSpec.Clone(); + break; } switch (other.ExecutionSinkCase) { @@ -249,6 +263,21 @@ public void ClearNotebookRuntimeTemplateResourceName() { } } + /// Field number for the "custom_environment_spec" field. + public const int CustomEnvironmentSpecFieldNumber = 16; + /// + /// The custom compute configuration for an execution job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec CustomEnvironmentSpec { + get { return environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec ? (global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec) environmentSpec_ : null; } + set { + environmentSpec_ = value; + environmentSpecCase_ = value == null ? EnvironmentSpecOneofCase.None : EnvironmentSpecOneofCase.CustomEnvironmentSpec; + } + } + /// Field number for the "gcs_output_uri" field. public const int GcsOutputUriFieldNumber = 8; /// @@ -530,6 +559,7 @@ public void ClearNotebookSource() { public enum EnvironmentSpecOneofCase { None = 0, NotebookRuntimeTemplateResourceName = 14, + CustomEnvironmentSpec = 16, } private EnvironmentSpecOneofCase environmentSpecCase_ = EnvironmentSpecOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -605,6 +635,7 @@ public bool Equals(NotebookExecutionJob other) { if (!object.Equals(GcsNotebookSource, other.GcsNotebookSource)) return false; if (!object.Equals(DirectNotebookSource, other.DirectNotebookSource)) return false; if (NotebookRuntimeTemplateResourceName != other.NotebookRuntimeTemplateResourceName) return false; + if (!object.Equals(CustomEnvironmentSpec, other.CustomEnvironmentSpec)) return false; if (GcsOutputUri != other.GcsOutputUri) return false; if (ExecutionUser != other.ExecutionUser) return false; if (ServiceAccount != other.ServiceAccount) return false; @@ -633,6 +664,7 @@ public override int GetHashCode() { if (notebookSourceCase_ == NotebookSourceOneofCase.GcsNotebookSource) hash ^= GcsNotebookSource.GetHashCode(); if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) hash ^= DirectNotebookSource.GetHashCode(); if (HasNotebookRuntimeTemplateResourceName) hash ^= NotebookRuntimeTemplateResourceName.GetHashCode(); + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) hash ^= CustomEnvironmentSpec.GetHashCode(); if (HasGcsOutputUri) hash ^= GcsOutputUri.GetHashCode(); if (HasExecutionUser) hash ^= ExecutionUser.GetHashCode(); if (HasServiceAccount) hash ^= ServiceAccount.GetHashCode(); @@ -720,6 +752,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(114); output.WriteString(NotebookRuntimeTemplateResourceName); } + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) { + output.WriteRawTag(130, 1); + output.WriteMessage(CustomEnvironmentSpec); + } if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) { output.WriteRawTag(138, 1); output.WriteMessage(DirectNotebookSource); @@ -795,6 +831,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(114); output.WriteString(NotebookRuntimeTemplateResourceName); } + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) { + output.WriteRawTag(130, 1); + output.WriteMessage(CustomEnvironmentSpec); + } if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) { output.WriteRawTag(138, 1); output.WriteMessage(DirectNotebookSource); @@ -830,6 +870,9 @@ public int CalculateSize() { if (HasNotebookRuntimeTemplateResourceName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(NotebookRuntimeTemplateResourceName); } + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomEnvironmentSpec); + } if (HasGcsOutputUri) { size += 1 + pb::CodedOutputStream.ComputeStringSize(GcsOutputUri); } @@ -947,6 +990,12 @@ public void MergeFrom(NotebookExecutionJob other) { case EnvironmentSpecOneofCase.NotebookRuntimeTemplateResourceName: NotebookRuntimeTemplateResourceName = other.NotebookRuntimeTemplateResourceName; break; + case EnvironmentSpecOneofCase.CustomEnvironmentSpec: + if (CustomEnvironmentSpec == null) { + CustomEnvironmentSpec = new global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec(); + } + CustomEnvironmentSpec.MergeFrom(other.CustomEnvironmentSpec); + break; } switch (other.ExecutionSinkCase) { @@ -1053,6 +1102,15 @@ public void MergeFrom(pb::CodedInputStream input) { NotebookRuntimeTemplateResourceName = input.ReadString(); break; } + case 130: { + global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec subBuilder = new global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec(); + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) { + subBuilder.MergeFrom(CustomEnvironmentSpec); + } + input.ReadMessage(subBuilder); + CustomEnvironmentSpec = subBuilder; + break; + } case 138: { global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource subBuilder = new global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource(); if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) { @@ -1166,6 +1224,15 @@ public void MergeFrom(pb::CodedInputStream input) { NotebookRuntimeTemplateResourceName = input.ReadString(); break; } + case 130: { + global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec subBuilder = new global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.CustomEnvironmentSpec(); + if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) { + subBuilder.MergeFrom(CustomEnvironmentSpec); + } + input.ReadMessage(subBuilder); + CustomEnvironmentSpec = subBuilder; + break; + } case 138: { global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource subBuilder = new global::Google.Cloud.AIPlatform.V1.NotebookExecutionJob.Types.DirectNotebookSource(); if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) { @@ -1873,6 +1940,309 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Compute configuration to use for an execution job. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CustomEnvironmentSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomEnvironmentSpec()); + 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.AIPlatform.V1.NotebookExecutionJob.Descriptor.NestedTypes[3]; } + } + + [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 CustomEnvironmentSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomEnvironmentSpec(CustomEnvironmentSpec other) : this() { + machineSpec_ = other.machineSpec_ != null ? other.machineSpec_.Clone() : null; + persistentDiskSpec_ = other.persistentDiskSpec_ != null ? other.persistentDiskSpec_.Clone() : null; + networkSpec_ = other.networkSpec_ != null ? other.networkSpec_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomEnvironmentSpec Clone() { + return new CustomEnvironmentSpec(this); + } + + /// Field number for the "machine_spec" field. + public const int MachineSpecFieldNumber = 1; + private global::Google.Cloud.AIPlatform.V1.MachineSpec machineSpec_; + /// + /// The specification of a single machine for the execution job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1.MachineSpec MachineSpec { + get { return machineSpec_; } + set { + machineSpec_ = value; + } + } + + /// Field number for the "persistent_disk_spec" field. + public const int PersistentDiskSpecFieldNumber = 2; + private global::Google.Cloud.AIPlatform.V1.PersistentDiskSpec persistentDiskSpec_; + /// + /// The specification of a persistent disk to attach for the execution job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1.PersistentDiskSpec PersistentDiskSpec { + get { return persistentDiskSpec_; } + set { + persistentDiskSpec_ = value; + } + } + + /// Field number for the "network_spec" field. + public const int NetworkSpecFieldNumber = 3; + private global::Google.Cloud.AIPlatform.V1.NetworkSpec networkSpec_; + /// + /// The network configuration to use for the execution job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1.NetworkSpec NetworkSpec { + get { return networkSpec_; } + set { + networkSpec_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomEnvironmentSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomEnvironmentSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MachineSpec, other.MachineSpec)) return false; + if (!object.Equals(PersistentDiskSpec, other.PersistentDiskSpec)) return false; + if (!object.Equals(NetworkSpec, other.NetworkSpec)) 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 (machineSpec_ != null) hash ^= MachineSpec.GetHashCode(); + if (persistentDiskSpec_ != null) hash ^= PersistentDiskSpec.GetHashCode(); + if (networkSpec_ != null) hash ^= NetworkSpec.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 (machineSpec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MachineSpec); + } + if (persistentDiskSpec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(PersistentDiskSpec); + } + if (networkSpec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkSpec); + } + 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 (machineSpec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MachineSpec); + } + if (persistentDiskSpec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(PersistentDiskSpec); + } + if (networkSpec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkSpec); + } + 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 (machineSpec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MachineSpec); + } + if (persistentDiskSpec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PersistentDiskSpec); + } + if (networkSpec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkSpec); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomEnvironmentSpec other) { + if (other == null) { + return; + } + if (other.machineSpec_ != null) { + if (machineSpec_ == null) { + MachineSpec = new global::Google.Cloud.AIPlatform.V1.MachineSpec(); + } + MachineSpec.MergeFrom(other.MachineSpec); + } + if (other.persistentDiskSpec_ != null) { + if (persistentDiskSpec_ == null) { + PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1.PersistentDiskSpec(); + } + PersistentDiskSpec.MergeFrom(other.PersistentDiskSpec); + } + if (other.networkSpec_ != null) { + if (networkSpec_ == null) { + NetworkSpec = new global::Google.Cloud.AIPlatform.V1.NetworkSpec(); + } + NetworkSpec.MergeFrom(other.NetworkSpec); + } + _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: { + if (machineSpec_ == null) { + MachineSpec = new global::Google.Cloud.AIPlatform.V1.MachineSpec(); + } + input.ReadMessage(MachineSpec); + break; + } + case 18: { + if (persistentDiskSpec_ == null) { + PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1.PersistentDiskSpec(); + } + input.ReadMessage(PersistentDiskSpec); + break; + } + case 26: { + if (networkSpec_ == null) { + NetworkSpec = new global::Google.Cloud.AIPlatform.V1.NetworkSpec(); + } + input.ReadMessage(NetworkSpec); + 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: { + if (machineSpec_ == null) { + MachineSpec = new global::Google.Cloud.AIPlatform.V1.MachineSpec(); + } + input.ReadMessage(MachineSpec); + break; + } + case 18: { + if (persistentDiskSpec_ == null) { + PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1.PersistentDiskSpec(); + } + input.ReadMessage(PersistentDiskSpec); + break; + } + case 26: { + if (networkSpec_ == null) { + NetworkSpec = new global::Google.Cloud.AIPlatform.V1.NetworkSpec(); + } + input.ReadMessage(NetworkSpec); + break; + } + } + } + } + #endif + + } + } #endregion