Skip to content

Commit

Permalink
feat: add is_default to Tensorboard in aiplatform v1 tensorboard.prot…
Browse files Browse the repository at this point in the history
…o and v1beta1 tensorboard.proto

PiperOrigin-RevId: 524384228

Source-Link: googleapis/googleapis@6774ccb

Source-Link: googleapis/googleapis-gen@d80853d
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiZDgwODUzZGY3ODJiOGQzODYzYTIzMzRiYWQ3YzgwOWJmODZmMDBiYiJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Apr 15, 2023
1 parent d2e0f6c commit 0fe126a
Showing 1 changed file with 56 additions and 12 deletions.
Expand Up @@ -28,7 +28,7 @@ public static partial class TensorboardReflection {
"bxIaZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjEaH2dvb2dsZS9hcGkvZmll",
"bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8a",
"MGdvb2dsZS9jbG91ZC9haXBsYXRmb3JtL3YxL2VuY3J5cHRpb25fc3BlYy5w",
"cm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byKyBAoLVGVu",
"cm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byLGBAoLVGVu",
"c29yYm9hcmQSEQoEbmFtZRgBIAEoCUID4EEDEhkKDGRpc3BsYXlfbmFtZRgC",
"IAEoCUID4EECEhMKC2Rlc2NyaXB0aW9uGAMgASgJEkMKD2VuY3J5cHRpb25f",
"c3BlYxgLIAEoCzIqLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxLkVuY3J5",
Expand All @@ -37,20 +37,20 @@ public static partial class TensorboardReflection {
"ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3VwZGF0",
"ZV90aW1lGAcgASgLMhouZ29vZ2xlLnByb3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
"UAFaPmNsb3VkLmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9ybS9hcGl2MS9haXBs",
"YXRmb3JtcGI7YWlwbGF0Zm9ybXBiqgIaR29vZ2xlLkNsb3VkLkFJUGxhdGZv",
"cm0uVjHKAhpHb29nbGVcQ2xvdWRcQUlQbGF0Zm9ybVxWMeoCHUdvb2dsZTo6",
"Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYgZwcm90bzM="));
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.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.Tensorboard), global::Google.Cloud.AIPlatform.V1.Tensorboard.Parser, new[]{ "Name", "DisplayName", "Description", "EncryptionSpec", "BlobStoragePathPrefix", "RunCount", "CreateTime", "UpdateTime", "Labels", "Etag" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1.Tensorboard), global::Google.Cloud.AIPlatform.V1.Tensorboard.Parser, new[]{ "Name", "DisplayName", "Description", "EncryptionSpec", "BlobStoragePathPrefix", "RunCount", "CreateTime", "UpdateTime", "Labels", "Etag", "IsDefault" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
Expand Down Expand Up @@ -106,6 +106,7 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null;
labels_ = other.labels_.Clone();
etag_ = other.etag_;
isDefault_ = other.isDefault_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -280,6 +281,25 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
}
}

/// <summary>Field number for the "is_default" field.</summary>
public const int IsDefaultFieldNumber = 12;
private bool isDefault_;
/// <summary>
/// Used to indicate if the TensorBoard instance is the default one.
/// Each project &amp; region can have at most one default TensorBoard instance.
/// Creation of a default TensorBoard instance and updating an existing
/// TensorBoard instance to be default will mark all other TensorBoard
/// instances (if any) as non default.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsDefault {
get { return isDefault_; }
set {
isDefault_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -305,6 +325,7 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
if (!object.Equals(UpdateTime, other.UpdateTime)) return false;
if (!Labels.Equals(other.Labels)) return false;
if (Etag != other.Etag) return false;
if (IsDefault != other.IsDefault) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -322,6 +343,7 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
if (updateTime_ != null) hash ^= UpdateTime.GetHashCode();
hash ^= Labels.GetHashCode();
if (Etag.Length != 0) hash ^= Etag.GetHashCode();
if (IsDefault != false) hash ^= IsDefault.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -377,6 +399,10 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
output.WriteRawTag(90);
output.WriteMessage(EncryptionSpec);
}
if (IsDefault != false) {
output.WriteRawTag(96);
output.WriteBool(IsDefault);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -424,6 +450,10 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
output.WriteRawTag(90);
output.WriteMessage(EncryptionSpec);
}
if (IsDefault != false) {
output.WriteRawTag(96);
output.WriteBool(IsDefault);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -462,6 +492,9 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
if (Etag.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag);
}
if (IsDefault != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -511,6 +544,9 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
if (other.Etag.Length != 0) {
Etag = other.Etag;
}
if (other.IsDefault != false) {
IsDefault = other.IsDefault;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -575,6 +611,10 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
input.ReadMessage(EncryptionSpec);
break;
}
case 96: {
IsDefault = input.ReadBool();
break;
}
}
}
#endif
Expand Down Expand Up @@ -639,6 +679,10 @@ public sealed partial class Tensorboard : pb::IMessage<Tensorboard>
input.ReadMessage(EncryptionSpec);
break;
}
case 96: {
IsDefault = input.ReadBool();
break;
}
}
}
}
Expand Down

0 comments on commit 0fe126a

Please sign in to comment.