Skip to content

Commit

Permalink
feat: Define ReplicaComputeCapacity and AsymmetricAutoscalingOption
Browse files Browse the repository at this point in the history
docs: A comment for field `node_count` in message `spanner.admin.instance.v1.Instance` is changed

docs: A comment for field `processing_units` in message `spanner.admin.instance.v1.Instance` is changed
PiperOrigin-RevId: 681615472

Source-Link: googleapis/googleapis@dd47718

Source-Link: googleapis/googleapis-gen@7f0f9b7
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3Bhbm5lci5BZG1pbi5JbnN0YW5jZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiN2YwZjliNzQ2NmNiNTE3NzY5YjU0OWM1ZTJjMmI5MTI0OTI4NjJmMiJ9
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Oct 3, 2024
1 parent ff699f3 commit 905160d
Show file tree
Hide file tree
Showing 2 changed files with 1,848 additions and 675 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,25 @@ static CommonReflection() {
string.Concat(
"Ci1nb29nbGUvc3Bhbm5lci9hZG1pbi9pbnN0YW5jZS92MS9jb21tb24ucHJv",
"dG8SIGdvb2dsZS5zcGFubmVyLmFkbWluLmluc3RhbmNlLnYxGh9nb29nbGUv",
"cHJvdG9idWYvdGltZXN0YW1wLnByb3RvIosBChFPcGVyYXRpb25Qcm9ncmVz",
"cxIYChBwcm9ncmVzc19wZXJjZW50GAEgASgFEi4KCnN0YXJ0X3RpbWUYAiAB",
"KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKCGVuZF90aW1lGAMg",
"ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCp3ChFGdWxmaWxsbWVu",
"dFBlcmlvZBIiCh5GVUxGSUxMTUVOVF9QRVJJT0RfVU5TUEVDSUZJRUQQABId",
"ChlGVUxGSUxMTUVOVF9QRVJJT0RfTk9STUFMEAESHwobRlVMRklMTE1FTlRf",
"UEVSSU9EX0VYVEVOREVEEAJC/QEK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nbGUuQ2xvdWQuU3Bhbm5lci5BZG1pbi5JbnN0YW5jZS5WMcoCJkdvb2ds",
"ZVxDbG91ZFxTcGFubmVyXEFkbWluXEluc3RhbmNlXFYx6gIrR29vZ2xlOjpD",
"bG91ZDo6U3Bhbm5lcjo6QWRtaW46Okluc3RhbmNlOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Spanner.Admin.Instance.V1.FulfillmentPeriod), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Spanner.Admin.Instance.V1.OperationProgress), global::Google.Cloud.Spanner.Admin.Instance.V1.OperationProgress.Parser, new[]{ "ProgressPercent", "StartTime", "EndTime" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Spanner.Admin.Instance.V1.OperationProgress), global::Google.Cloud.Spanner.Admin.Instance.V1.OperationProgress.Parser, new[]{ "ProgressPercent", "StartTime", "EndTime" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection), global::Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection.Parser, new[]{ "Location" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -369,6 +371,202 @@ public void MergeFrom(pb::CodedInputStream input) {

}

/// <summary>
/// ReplicaSelection identifies replicas with common properties.
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ReplicaSelection : pb::IMessage<ReplicaSelection>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ReplicaSelection> _parser = new pb::MessageParser<ReplicaSelection>(() => new ReplicaSelection());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ReplicaSelection> 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.Spanner.Admin.Instance.V1.CommonReflection.Descriptor.MessageTypes[1]; }
}

[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 ReplicaSelection() {
OnConstruction();
}

partial void OnConstruction();

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReplicaSelection(ReplicaSelection other) : this() {
location_ = other.location_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReplicaSelection Clone() {
return new ReplicaSelection(this);
}

/// <summary>Field number for the "location" field.</summary>
public const int LocationFieldNumber = 1;
private string location_ = "";
/// <summary>
/// Required. Name of the location of the replicas (e.g., "us-central1").
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Location {
get { return location_; }
set {
location_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ReplicaSelection);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ReplicaSelection other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Location != other.Location) 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 (Location.Length != 0) hash ^= Location.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 (Location.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Location);
}
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 (Location.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Location);
}
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 (Location.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Location);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ReplicaSelection other) {
if (other == null) {
return;
}
if (other.Location.Length != 0) {
Location = other.Location;
}
_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: {
Location = input.ReadString();
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: {
Location = input.ReadString();
break;
}
}
}
}
#endif

}

#endregion

}
Expand Down
Loading

0 comments on commit 905160d

Please sign in to comment.