diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/NotebookExecutionJob.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/NotebookExecutionJob.g.cs
index 3eee3f1d9b08..1fbeede815be 100644
--- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/NotebookExecutionJob.g.cs
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/NotebookExecutionJob.g.cs
@@ -29,56 +29,67 @@ static NotebookExecutionJobReflection() {
"YmV0YTEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds",
"ZS9hcGkvcmVzb3VyY2UucHJvdG8aNWdvb2dsZS9jbG91ZC9haXBsYXRmb3Jt",
"L3YxYmV0YTEvZW5jcnlwdGlvbl9zcGVjLnByb3RvGi9nb29nbGUvY2xvdWQv",
- "YWlwbGF0Zm9ybS92MWJldGExL2pvYl9zdGF0ZS5wcm90bxoeZ29vZ2xlL3By",
- "b3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0",
- "YW1wLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKwDAoUTm90ZWJv",
- "b2tFeGVjdXRpb25Kb2ISdAoaZGF0YWZvcm1fcmVwb3NpdG9yeV9zb3VyY2UY",
- "AyABKAsyTi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLk5vdGVi",
- "b29rRXhlY3V0aW9uSm9iLkRhdGFmb3JtUmVwb3NpdG9yeVNvdXJjZUgAEmYK",
- "E2djc19ub3RlYm9va19zb3VyY2UYBCABKAsyRy5nb29nbGUuY2xvdWQuYWlw",
- "bGF0Zm9ybS52MWJldGExLk5vdGVib29rRXhlY3V0aW9uSm9iLkdjc05vdGVi",
- "b29rU291cmNlSAASbAoWZGlyZWN0X25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ub3RlYm9va19zb3Vy",
+ "Y2VCEgoQZW52aXJvbm1lbnRfc3BlY0IQCg5leGVjdXRpb25fc2lua0IUChJl",
+ "eGVjdXRpb25faWRlbnRpdHlC8AEKI2NvbS5nb29nbGUuY2xvdWQuYWlwbGF0",
+ "Zm9ybS52MWJldGExQhlOb3RlYm9va0V4ZWN1dGlvbkpvYlByb3RvUAFaQ2Ns",
+ "b3VkLmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9ybS9hcGl2MWJldGExL2FpcGxh",
+ "dGZvcm1wYjthaXBsYXRmb3JtcGKqAh9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9y",
+ "bS5WMUJldGExygIfR29vZ2xlXENsb3VkXEFJUGxhdGZvcm1cVjFiZXRhMeoC",
+ "Ikdvb2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYmV0YTFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.JobStateReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.MachineResourcesReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.NotebookExecutionJob), global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.NotebookExecutionJob.Types.DataformRepositorySource), global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DataformRepositorySource.Parser, new[]{ "DataformRepositoryResourceName", "CommitSha" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob), global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.NotebookExecutionJob.Types.DataformRepositorySource), global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DataformRepositorySource.Parser, new[]{ "DataformRepositoryResourceName", "CommitSha" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.GcsNotebookSource), global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.GcsNotebookSource.Parser, new[]{ "Uri", "Generation" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource), global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource.Parser, new[]{ "Content" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec), global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec.Parser, new[]{ "MachineSpec", "PersistentDiskSpec", "NetworkSpec" }, null, null, null, null),
null, })
}));
}
@@ -150,6 +161,9 @@ public NotebookExecutionJob(NotebookExecutionJob other) : this() {
case EnvironmentSpecOneofCase.NotebookRuntimeTemplateResourceName:
NotebookRuntimeTemplateResourceName = other.NotebookRuntimeTemplateResourceName;
break;
+ case EnvironmentSpecOneofCase.CustomEnvironmentSpec:
+ CustomEnvironmentSpec = other.CustomEnvironmentSpec.Clone();
+ break;
}
switch (other.ExecutionSinkCase) {
@@ -251,6 +265,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.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec CustomEnvironmentSpec {
+ get { return environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec ? (global::Google.Cloud.AIPlatform.V1Beta1.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;
///
@@ -532,6 +561,7 @@ public void ClearNotebookSource() {
public enum EnvironmentSpecOneofCase {
None = 0,
NotebookRuntimeTemplateResourceName = 14,
+ CustomEnvironmentSpec = 16,
}
private EnvironmentSpecOneofCase environmentSpecCase_ = EnvironmentSpecOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -607,6 +637,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;
@@ -635,6 +666,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();
@@ -722,6 +754,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);
@@ -797,6 +833,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);
@@ -832,6 +872,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);
}
@@ -949,6 +992,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.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec();
+ }
+ CustomEnvironmentSpec.MergeFrom(other.CustomEnvironmentSpec);
+ break;
}
switch (other.ExecutionSinkCase) {
@@ -1055,6 +1104,15 @@ public void MergeFrom(pb::CodedInputStream input) {
NotebookRuntimeTemplateResourceName = input.ReadString();
break;
}
+ case 130: {
+ global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec();
+ if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) {
+ subBuilder.MergeFrom(CustomEnvironmentSpec);
+ }
+ input.ReadMessage(subBuilder);
+ CustomEnvironmentSpec = subBuilder;
+ break;
+ }
case 138: {
global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource();
if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) {
@@ -1168,6 +1226,15 @@ public void MergeFrom(pb::CodedInputStream input) {
NotebookRuntimeTemplateResourceName = input.ReadString();
break;
}
+ case 130: {
+ global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.CustomEnvironmentSpec();
+ if (environmentSpecCase_ == EnvironmentSpecOneofCase.CustomEnvironmentSpec) {
+ subBuilder.MergeFrom(CustomEnvironmentSpec);
+ }
+ input.ReadMessage(subBuilder);
+ CustomEnvironmentSpec = subBuilder;
+ break;
+ }
case 138: {
global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.NotebookExecutionJob.Types.DirectNotebookSource();
if (notebookSourceCase_ == NotebookSourceOneofCase.DirectNotebookSource) {
@@ -1875,6 +1942,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.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.MachineSpec();
+ }
+ MachineSpec.MergeFrom(other.MachineSpec);
+ }
+ if (other.persistentDiskSpec_ != null) {
+ if (persistentDiskSpec_ == null) {
+ PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1Beta1.PersistentDiskSpec();
+ }
+ PersistentDiskSpec.MergeFrom(other.PersistentDiskSpec);
+ }
+ if (other.networkSpec_ != null) {
+ if (networkSpec_ == null) {
+ NetworkSpec = new global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.MachineSpec();
+ }
+ input.ReadMessage(MachineSpec);
+ break;
+ }
+ case 18: {
+ if (persistentDiskSpec_ == null) {
+ PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1Beta1.PersistentDiskSpec();
+ }
+ input.ReadMessage(PersistentDiskSpec);
+ break;
+ }
+ case 26: {
+ if (networkSpec_ == null) {
+ NetworkSpec = new global::Google.Cloud.AIPlatform.V1Beta1.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.V1Beta1.MachineSpec();
+ }
+ input.ReadMessage(MachineSpec);
+ break;
+ }
+ case 18: {
+ if (persistentDiskSpec_ == null) {
+ PersistentDiskSpec = new global::Google.Cloud.AIPlatform.V1Beta1.PersistentDiskSpec();
+ }
+ input.ReadMessage(PersistentDiskSpec);
+ break;
+ }
+ case 26: {
+ if (networkSpec_ == null) {
+ NetworkSpec = new global::Google.Cloud.AIPlatform.V1Beta1.NetworkSpec();
+ }
+ input.ReadMessage(NetworkSpec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
}
#endregion