Skip to content

Commit

Permalink
Regenerate Google.Cloud.Bigtable.Admin.V2 (#4615)
Browse files Browse the repository at this point in the history
Adds table backup functionality
  • Loading branch information
yoshi-automation committed Mar 18, 2020
1 parent 75ed8fd commit 3d28ab3
Show file tree
Hide file tree
Showing 9 changed files with 5,584 additions and 379 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Expand Up @@ -192,4 +192,52 @@ public partial class DeleteSnapshotRequest
set => Name = value?.ToString() ?? "";
}
}

public partial class CreateBackupRequest
{
/// <summary>
/// <see cref="ClusterName"/>-typed view over the <see cref="Parent"/> resource name property.
/// </summary>
public ClusterName ParentAsClusterName
{
get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true);
set => Parent = value?.ToString() ?? "";
}
}

public partial class GetBackupRequest
{
/// <summary>
/// <see cref="gcbav::BackupName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gcbav::BackupName BackupName
{
get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class DeleteBackupRequest
{
/// <summary>
/// <see cref="gcbav::BackupName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gcbav::BackupName BackupName
{
get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class ListBackupsRequest
{
/// <summary>
/// <see cref="ClusterName"/>-typed view over the <see cref="Parent"/> resource name property.
/// </summary>
public ClusterName ParentAsClusterName
{
get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true);
set => Parent = value?.ToString() ?? "";
}
}
}
Expand Up @@ -26,16 +26,21 @@ public static partial class CommonReflection {
string.Concat(
"CiVnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvY29tbW9uLnByb3RvEhhnb29n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M="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Bigtable.Admin.V2.StorageType), }, null, null));
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Bigtable.Admin.V2.StorageType), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.OperationProgress), global::Google.Cloud.Bigtable.Admin.V2.OperationProgress.Parser, new[]{ "ProgressPercent", "StartTime", "EndTime" }, null, null, null, null)
}));
}
#endregion

Expand All @@ -61,6 +66,221 @@ public enum StorageType {

#endregion

#region Messages
/// <summary>
/// Encapsulates progress related information for a Cloud Bigtable long
/// running operation.
/// </summary>
public sealed partial class OperationProgress : pb::IMessage<OperationProgress> {
private static readonly pb::MessageParser<OperationProgress> _parser = new pb::MessageParser<OperationProgress>(() => new OperationProgress());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<OperationProgress> Parser { get { return _parser; } }

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Cloud.Bigtable.Admin.V2.CommonReflection.Descriptor.MessageTypes[0]; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OperationProgress() {
OnConstruction();
}

partial void OnConstruction();

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OperationProgress(OperationProgress other) : this() {
progressPercent_ = other.progressPercent_;
startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null;
endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OperationProgress Clone() {
return new OperationProgress(this);
}

/// <summary>Field number for the "progress_percent" field.</summary>
public const int ProgressPercentFieldNumber = 1;
private int progressPercent_;
/// <summary>
/// Percent completion of the operation.
/// Values are between 0 and 100 inclusive.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ProgressPercent {
get { return progressPercent_; }
set {
progressPercent_ = value;
}
}

/// <summary>Field number for the "start_time" field.</summary>
public const int StartTimeFieldNumber = 2;
private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_;
/// <summary>
/// Time the request was received.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime {
get { return startTime_; }
set {
startTime_ = value;
}
}

/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 3;
private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
/// <summary>
/// If set, the time at which this operation failed or was completed
/// successfully.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
get { return endTime_; }
set {
endTime_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as OperationProgress);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(OperationProgress other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ProgressPercent != other.ProgressPercent) return false;
if (!object.Equals(StartTime, other.StartTime)) return false;
if (!object.Equals(EndTime, other.EndTime)) return false;
return Equals(_unknownFields, other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ProgressPercent != 0) hash ^= ProgressPercent.GetHashCode();
if (startTime_ != null) hash ^= StartTime.GetHashCode();
if (endTime_ != null) hash ^= EndTime.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ProgressPercent != 0) {
output.WriteRawTag(8);
output.WriteInt32(ProgressPercent);
}
if (startTime_ != null) {
output.WriteRawTag(18);
output.WriteMessage(StartTime);
}
if (endTime_ != null) {
output.WriteRawTag(26);
output.WriteMessage(EndTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ProgressPercent != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProgressPercent);
}
if (startTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime);
}
if (endTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(OperationProgress other) {
if (other == null) {
return;
}
if (other.ProgressPercent != 0) {
ProgressPercent = other.ProgressPercent;
}
if (other.startTime_ != null) {
if (startTime_ == null) {
StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
StartTime.MergeFrom(other.StartTime);
}
if (other.endTime_ != null) {
if (endTime_ == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EndTime.MergeFrom(other.EndTime);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ProgressPercent = input.ReadInt32();
break;
}
case 18: {
if (startTime_ == null) {
StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(StartTime);
break;
}
case 26: {
if (endTime_ == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndTime);
break;
}
}
}
}

}

#endregion

}

#endregion Designer generated code

0 comments on commit 3d28ab3

Please sign in to comment.