Skip to content

Commit

Permalink
feat:Tensorboard v1 protos release feat:Exposing a field for v1 Custo…
Browse files Browse the repository at this point in the history
…mJob-Tensorboard integration.

PiperOrigin-RevId: 410304645

Source-Link: googleapis/googleapis@bd7db05

Source-Link: googleapis/googleapis-gen@66432ef
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNjY0MzJlZjhkOTMxNGU1ZDMwNWY1NTc0N2YxYzA3ZjM3NzA4MTUxZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Nov 16, 2021
1 parent 042a99f commit 0d5a6b7
Show file tree
Hide file tree
Showing 18 changed files with 31,385 additions and 25 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,42 @@ static CustomJobReflection() {
"dmFsdWUYAiABKAk6AjgBGjQKEldlYkFjY2Vzc1VyaXNFbnRyeRILCgNrZXkY",
"ASABKAkSDQoFdmFsdWUYAiABKAk6AjgBOmnqQWYKI2FpcGxhdGZvcm0uZ29v",
"Z2xlYXBpcy5jb20vQ3VzdG9tSm9iEj9wcm9qZWN0cy97cHJvamVjdH0vbG9j",
"YXRpb25zL3tsb2NhdGlvbn0vY3VzdG9tSm9icy97Y3VzdG9tX2pvYn0i0QIK",
"YXRpb25zL3tsb2NhdGlvbn0vY3VzdG9tSm9icy97Y3VzdG9tX2pvYn0ilQMK",
"DUN1c3RvbUpvYlNwZWMSSgoRd29ya2VyX3Bvb2xfc3BlY3MYASADKAsyKi5n",
"b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MS5Xb3JrZXJQb29sU3BlY0ID4EEC",
"EjoKCnNjaGVkdWxpbmcYAyABKAsyJi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9y",
"bS52MS5TY2hlZHVsaW5nEhcKD3NlcnZpY2VfYWNjb3VudBgEIAEoCRI0Cgdu",
"ZXR3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IkLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxLkRp",
"c2tTcGVjQgYKBHRhc2sidwoNQ29udGFpbmVyU3BlYxIWCglpbWFnZV91cmkY",
"ASABKAlCA+BBAhIPCgdjb21tYW5kGAIgAygJEgwKBGFyZ3MYAyADKAkSLwoD",
"ZW52GAQgAygLMiIuZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjEuRW52VmFy",
"IqoBChFQeXRob25QYWNrYWdlU3BlYxIfChJleGVjdXRvcl9pbWFnZV91cmkY",
"ASABKAlCA+BBAhIZCgxwYWNrYWdlX3VyaXMYAiADKAlCA+BBAhIaCg1weXRo",
"b25fbW9kdWxlGAMgASgJQgPgQQISDAoEYXJncxgEIAMoCRIvCgNlbnYYBSAD",
"KAsyIi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MS5FbnZWYXIiXwoKU2No",
"ZWR1bGluZxIqCgd0aW1lb3V0GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1",
"cmF0aW9uEiUKHXJlc3RhcnRfam9iX29uX3dvcmtlcl9yZXN0YXJ0GAMgASgI",
"QtIBCh5jb20uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFCDkN1c3RvbUpv",
"YlByb3RvUAFaRGdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw",
"aXMvY2xvdWQvYWlwbGF0Zm9ybS92MTthaXBsYXRmb3JtqgIaR29vZ2xlLkNs",
"b3VkLkFJUGxhdGZvcm0uVjHKAhpHb29nbGVcQ2xvdWRcQUlQbGF0Zm9ybVxW",
"MeoCHUdvb2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYgZwcm90bzM="));
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.EnvVarReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.IoReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.JobStateReflection.Descriptor, global::Google.Cloud.AIPlatform.V1.MachineResourcesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.CustomJob), global::Google.Cloud.AIPlatform.V1.CustomJob.Parser, new[]{ "Name", "DisplayName", "JobSpec", "State", "CreateTime", "StartTime", "EndTime", "UpdateTime", "Error", "Labels", "EncryptionSpec", "WebAccessUris" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.CustomJobSpec), global::Google.Cloud.AIPlatform.V1.CustomJobSpec.Parser, new[]{ "WorkerPoolSpecs", "Scheduling", "ServiceAccount", "Network", "BaseOutputDirectory", "EnableWebAccess" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.CustomJobSpec), global::Google.Cloud.AIPlatform.V1.CustomJobSpec.Parser, new[]{ "WorkerPoolSpecs", "Scheduling", "ServiceAccount", "Network", "BaseOutputDirectory", "Tensorboard", "EnableWebAccess" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.WorkerPoolSpec), global::Google.Cloud.AIPlatform.V1.WorkerPoolSpec.Parser, new[]{ "ContainerSpec", "PythonPackageSpec", "MachineSpec", "ReplicaCount", "DiskSpec" }, new[]{ "Task" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.ContainerSpec), global::Google.Cloud.AIPlatform.V1.ContainerSpec.Parser, new[]{ "ImageUri", "Command", "Args", "Env" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.PythonPackageSpec), global::Google.Cloud.AIPlatform.V1.PythonPackageSpec.Parser, new[]{ "ExecutorImageUri", "PackageUris", "PythonModule", "Args", "Env" }, null, null, null, null),
Expand Down Expand Up @@ -842,6 +843,7 @@ public CustomJobSpec(CustomJobSpec other) : this() {
serviceAccount_ = other.serviceAccount_;
network_ = other.network_;
baseOutputDirectory_ = other.baseOutputDirectory_ != null ? other.baseOutputDirectory_.Clone() : null;
tensorboard_ = other.tensorboard_;
enableWebAccess_ = other.enableWebAccess_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
Expand Down Expand Up @@ -961,6 +963,24 @@ public string Network {
}
}

/// <summary>Field number for the "tensorboard" field.</summary>
public const int TensorboardFieldNumber = 7;
private string tensorboard_ = "";
/// <summary>
/// Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which this CustomJob
/// will upload Tensorboard logs.
/// Format:
/// `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Tensorboard {
get { return tensorboard_; }
set {
tensorboard_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

/// <summary>Field number for the "enable_web_access" field.</summary>
public const int EnableWebAccessFieldNumber = 10;
private bool enableWebAccess_;
Expand Down Expand Up @@ -1002,6 +1022,7 @@ public bool Equals(CustomJobSpec other) {
if (ServiceAccount != other.ServiceAccount) return false;
if (Network != other.Network) return false;
if (!object.Equals(BaseOutputDirectory, other.BaseOutputDirectory)) return false;
if (Tensorboard != other.Tensorboard) return false;
if (EnableWebAccess != other.EnableWebAccess) return false;
return Equals(_unknownFields, other._unknownFields);
}
Expand All @@ -1015,6 +1036,7 @@ public override int GetHashCode() {
if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode();
if (Network.Length != 0) hash ^= Network.GetHashCode();
if (baseOutputDirectory_ != null) hash ^= BaseOutputDirectory.GetHashCode();
if (Tensorboard.Length != 0) hash ^= Tensorboard.GetHashCode();
if (EnableWebAccess != false) hash ^= EnableWebAccess.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
Expand Down Expand Up @@ -1051,6 +1073,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(50);
output.WriteMessage(BaseOutputDirectory);
}
if (Tensorboard.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Tensorboard);
}
if (EnableWebAccess != false) {
output.WriteRawTag(80);
output.WriteBool(EnableWebAccess);
Expand Down Expand Up @@ -1082,6 +1108,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(50);
output.WriteMessage(BaseOutputDirectory);
}
if (Tensorboard.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Tensorboard);
}
if (EnableWebAccess != false) {
output.WriteRawTag(80);
output.WriteBool(EnableWebAccess);
Expand Down Expand Up @@ -1109,6 +1139,9 @@ public int CalculateSize() {
if (baseOutputDirectory_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseOutputDirectory);
}
if (Tensorboard.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Tensorboard);
}
if (EnableWebAccess != false) {
size += 1 + 1;
}
Expand Down Expand Up @@ -1143,6 +1176,9 @@ public void MergeFrom(CustomJobSpec other) {
}
BaseOutputDirectory.MergeFrom(other.BaseOutputDirectory);
}
if (other.Tensorboard.Length != 0) {
Tensorboard = other.Tensorboard;
}
if (other.EnableWebAccess != false) {
EnableWebAccess = other.EnableWebAccess;
}
Expand Down Expand Up @@ -1187,6 +1223,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(BaseOutputDirectory);
break;
}
case 58: {
Tensorboard = input.ReadString();
break;
}
case 80: {
EnableWebAccess = input.ReadBool();
break;
Expand Down Expand Up @@ -1232,6 +1272,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(BaseOutputDirectory);
break;
}
case 58: {
Tensorboard = input.ReadString();
break;
}
case 80: {
EnableWebAccess = input.ReadBool();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,14 @@ public NetworkName NetworkAsNetworkName
get => string.IsNullOrEmpty(Network) ? null : NetworkName.Parse(Network, allowUnparsed: true);
set => Network = value?.ToString() ?? "";
}

/// <summary>
/// <see cref="TensorboardName"/>-typed view over the <see cref="Tensorboard"/> resource name property.
/// </summary>
public TensorboardName TensorboardAsTensorboardName
{
get => string.IsNullOrEmpty(Tensorboard) ? null : TensorboardName.Parse(Tensorboard, allowUnparsed: true);
set => Tensorboard = value?.ToString() ?? "";
}
}
}
Loading

0 comments on commit 0d5a6b7

Please sign in to comment.