|
@@ -352,8 +352,8 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_ = other.enumType_.Clone();
|
|
enumType_ = other.enumType_.Clone();
|
|
service_ = other.service_.Clone();
|
|
service_ = other.service_.Clone();
|
|
extension_ = other.extension_.Clone();
|
|
extension_ = other.extension_.Clone();
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
- sourceCodeInfo_ = other.HasSourceCodeInfo ? other.sourceCodeInfo_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
|
|
+ sourceCodeInfo_ = other.sourceCodeInfo_ != null ? other.sourceCodeInfo_.Clone() : null;
|
|
syntax_ = other.syntax_;
|
|
syntax_ = other.syntax_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
@@ -508,16 +508,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "source_code_info" field.</summary>
|
|
/// <summary>Field number for the "source_code_info" field.</summary>
|
|
public const int SourceCodeInfoFieldNumber = 9;
|
|
public const int SourceCodeInfoFieldNumber = 9;
|
|
@@ -535,16 +525,6 @@ namespace Google.Protobuf.Reflection {
|
|
sourceCodeInfo_ = value;
|
|
sourceCodeInfo_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the source_code_info field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasSourceCodeInfo {
|
|
|
|
- get { return sourceCodeInfo_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the source_code_info field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearSourceCodeInfo() {
|
|
|
|
- sourceCodeInfo_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "syntax" field.</summary>
|
|
/// <summary>Field number for the "syntax" field.</summary>
|
|
public const int SyntaxFieldNumber = 12;
|
|
public const int SyntaxFieldNumber = 12;
|
|
@@ -613,8 +593,8 @@ namespace Google.Protobuf.Reflection {
|
|
hash ^= enumType_.GetHashCode();
|
|
hash ^= enumType_.GetHashCode();
|
|
hash ^= service_.GetHashCode();
|
|
hash ^= service_.GetHashCode();
|
|
hash ^= extension_.GetHashCode();
|
|
hash ^= extension_.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
- if (HasSourceCodeInfo) hash ^= SourceCodeInfo.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
|
|
+ if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
|
|
if (HasSyntax) hash ^= Syntax.GetHashCode();
|
|
if (HasSyntax) hash ^= Syntax.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
@@ -642,11 +622,11 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_.WriteTo(output, _repeated_enumType_codec);
|
|
enumType_.WriteTo(output, _repeated_enumType_codec);
|
|
service_.WriteTo(output, _repeated_service_codec);
|
|
service_.WriteTo(output, _repeated_service_codec);
|
|
extension_.WriteTo(output, _repeated_extension_codec);
|
|
extension_.WriteTo(output, _repeated_extension_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(66);
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
- if (HasSourceCodeInfo) {
|
|
|
|
|
|
+ if (sourceCodeInfo_ != null) {
|
|
output.WriteRawTag(74);
|
|
output.WriteRawTag(74);
|
|
output.WriteMessage(SourceCodeInfo);
|
|
output.WriteMessage(SourceCodeInfo);
|
|
}
|
|
}
|
|
@@ -677,10 +657,10 @@ namespace Google.Protobuf.Reflection {
|
|
size += enumType_.CalculateSize(_repeated_enumType_codec);
|
|
size += enumType_.CalculateSize(_repeated_enumType_codec);
|
|
size += service_.CalculateSize(_repeated_service_codec);
|
|
size += service_.CalculateSize(_repeated_service_codec);
|
|
size += extension_.CalculateSize(_repeated_extension_codec);
|
|
size += extension_.CalculateSize(_repeated_extension_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
- if (HasSourceCodeInfo) {
|
|
|
|
|
|
+ if (sourceCodeInfo_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
|
|
}
|
|
}
|
|
if (HasSyntax) {
|
|
if (HasSyntax) {
|
|
@@ -710,14 +690,14 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_.Add(other.enumType_);
|
|
enumType_.Add(other.enumType_);
|
|
service_.Add(other.service_);
|
|
service_.Add(other.service_);
|
|
extension_.Add(other.extension_);
|
|
extension_.Add(other.extension_);
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.FileOptions();
|
|
Options = new global::Google.Protobuf.Reflection.FileOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
}
|
|
}
|
|
- if (other.HasSourceCodeInfo) {
|
|
|
|
- if (!HasSourceCodeInfo) {
|
|
|
|
|
|
+ if (other.sourceCodeInfo_ != null) {
|
|
|
|
+ if (sourceCodeInfo_ == null) {
|
|
SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
|
|
SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
|
|
}
|
|
}
|
|
SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
|
|
SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
|
|
@@ -765,14 +745,14 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 66: {
|
|
case 66: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.FileOptions();
|
|
Options = new global::Google.Protobuf.Reflection.FileOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 74: {
|
|
case 74: {
|
|
- if (!HasSourceCodeInfo) {
|
|
|
|
|
|
+ if (sourceCodeInfo_ == null) {
|
|
SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
|
|
SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
|
|
}
|
|
}
|
|
input.ReadMessage(SourceCodeInfo);
|
|
input.ReadMessage(SourceCodeInfo);
|
|
@@ -833,7 +813,7 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_ = other.enumType_.Clone();
|
|
enumType_ = other.enumType_.Clone();
|
|
extensionRange_ = other.extensionRange_.Clone();
|
|
extensionRange_ = other.extensionRange_.Clone();
|
|
oneofDecl_ = other.oneofDecl_.Clone();
|
|
oneofDecl_ = other.oneofDecl_.Clone();
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
reservedRange_ = other.reservedRange_.Clone();
|
|
reservedRange_ = other.reservedRange_.Clone();
|
|
reservedName_ = other.reservedName_.Clone();
|
|
reservedName_ = other.reservedName_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
@@ -937,16 +917,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "reserved_range" field.</summary>
|
|
/// <summary>Field number for the "reserved_range" field.</summary>
|
|
public const int ReservedRangeFieldNumber = 9;
|
|
public const int ReservedRangeFieldNumber = 9;
|
|
@@ -1008,7 +978,7 @@ namespace Google.Protobuf.Reflection {
|
|
hash ^= enumType_.GetHashCode();
|
|
hash ^= enumType_.GetHashCode();
|
|
hash ^= extensionRange_.GetHashCode();
|
|
hash ^= extensionRange_.GetHashCode();
|
|
hash ^= oneofDecl_.GetHashCode();
|
|
hash ^= oneofDecl_.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
hash ^= reservedRange_.GetHashCode();
|
|
hash ^= reservedRange_.GetHashCode();
|
|
hash ^= reservedName_.GetHashCode();
|
|
hash ^= reservedName_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -1033,7 +1003,7 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_.WriteTo(output, _repeated_enumType_codec);
|
|
enumType_.WriteTo(output, _repeated_enumType_codec);
|
|
extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
|
|
extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
|
|
extension_.WriteTo(output, _repeated_extension_codec);
|
|
extension_.WriteTo(output, _repeated_extension_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(58);
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -1057,7 +1027,7 @@ namespace Google.Protobuf.Reflection {
|
|
size += enumType_.CalculateSize(_repeated_enumType_codec);
|
|
size += enumType_.CalculateSize(_repeated_enumType_codec);
|
|
size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
|
|
size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
|
|
size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
|
|
size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
|
|
size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
|
|
@@ -1082,8 +1052,8 @@ namespace Google.Protobuf.Reflection {
|
|
enumType_.Add(other.enumType_);
|
|
enumType_.Add(other.enumType_);
|
|
extensionRange_.Add(other.extensionRange_);
|
|
extensionRange_.Add(other.extensionRange_);
|
|
oneofDecl_.Add(other.oneofDecl_);
|
|
oneofDecl_.Add(other.oneofDecl_);
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.MessageOptions();
|
|
Options = new global::Google.Protobuf.Reflection.MessageOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -1126,7 +1096,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 58: {
|
|
case 58: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.MessageOptions();
|
|
Options = new global::Google.Protobuf.Reflection.MessageOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -1181,7 +1151,7 @@ namespace Google.Protobuf.Reflection {
|
|
_hasBits0 = other._hasBits0;
|
|
_hasBits0 = other._hasBits0;
|
|
start_ = other.start_;
|
|
start_ = other.start_;
|
|
end_ = other.end_;
|
|
end_ = other.end_;
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1254,16 +1224,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
public override bool Equals(object other) {
|
|
@@ -1289,7 +1249,7 @@ namespace Google.Protobuf.Reflection {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (HasStart) hash ^= Start.GetHashCode();
|
|
if (HasStart) hash ^= Start.GetHashCode();
|
|
if (HasEnd) hash ^= End.GetHashCode();
|
|
if (HasEnd) hash ^= End.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
}
|
|
@@ -1311,7 +1271,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteRawTag(16);
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(End);
|
|
output.WriteInt32(End);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -1329,7 +1289,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasEnd) {
|
|
if (HasEnd) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -1349,8 +1309,8 @@ namespace Google.Protobuf.Reflection {
|
|
if (other.HasEnd) {
|
|
if (other.HasEnd) {
|
|
End = other.End;
|
|
End = other.End;
|
|
}
|
|
}
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
|
|
Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -1375,7 +1335,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
|
|
Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -1791,7 +1751,7 @@ namespace Google.Protobuf.Reflection {
|
|
defaultValue_ = other.defaultValue_;
|
|
defaultValue_ = other.defaultValue_;
|
|
oneofIndex_ = other.oneofIndex_;
|
|
oneofIndex_ = other.oneofIndex_;
|
|
jsonName_ = other.jsonName_;
|
|
jsonName_ = other.jsonName_;
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
proto3Optional_ = other.proto3Optional_;
|
|
proto3Optional_ = other.proto3Optional_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
@@ -2054,16 +2014,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "proto3_optional" field.</summary>
|
|
/// <summary>Field number for the "proto3_optional" field.</summary>
|
|
public const int Proto3OptionalFieldNumber = 17;
|
|
public const int Proto3OptionalFieldNumber = 17;
|
|
@@ -2151,7 +2101,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasDefaultValue) hash ^= DefaultValue.GetHashCode();
|
|
if (HasDefaultValue) hash ^= DefaultValue.GetHashCode();
|
|
if (HasOneofIndex) hash ^= OneofIndex.GetHashCode();
|
|
if (HasOneofIndex) hash ^= OneofIndex.GetHashCode();
|
|
if (HasJsonName) hash ^= JsonName.GetHashCode();
|
|
if (HasJsonName) hash ^= JsonName.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (HasProto3Optional) hash ^= Proto3Optional.GetHashCode();
|
|
if (HasProto3Optional) hash ^= Proto3Optional.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
@@ -2194,7 +2144,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteRawTag(58);
|
|
output.WriteRawTag(58);
|
|
output.WriteString(DefaultValue);
|
|
output.WriteString(DefaultValue);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(66);
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -2245,7 +2195,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasJsonName) {
|
|
if (HasJsonName) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (HasProto3Optional) {
|
|
if (HasProto3Optional) {
|
|
@@ -2289,8 +2239,8 @@ namespace Google.Protobuf.Reflection {
|
|
if (other.HasJsonName) {
|
|
if (other.HasJsonName) {
|
|
JsonName = other.JsonName;
|
|
JsonName = other.JsonName;
|
|
}
|
|
}
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.FieldOptions();
|
|
Options = new global::Google.Protobuf.Reflection.FieldOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -2338,7 +2288,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 66: {
|
|
case 66: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.FieldOptions();
|
|
Options = new global::Google.Protobuf.Reflection.FieldOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -2458,7 +2408,7 @@ namespace Google.Protobuf.Reflection {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OneofDescriptorProto(OneofDescriptorProto other) : this() {
|
|
public OneofDescriptorProto(OneofDescriptorProto other) : this() {
|
|
name_ = other.name_;
|
|
name_ = other.name_;
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2500,16 +2450,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
public override bool Equals(object other) {
|
|
@@ -2533,7 +2473,7 @@ namespace Google.Protobuf.Reflection {
|
|
public override int GetHashCode() {
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
}
|
|
@@ -2551,7 +2491,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteRawTag(10);
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Name);
|
|
output.WriteString(Name);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -2566,7 +2506,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasName) {
|
|
if (HasName) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -2583,8 +2523,8 @@ namespace Google.Protobuf.Reflection {
|
|
if (other.HasName) {
|
|
if (other.HasName) {
|
|
Name = other.Name;
|
|
Name = other.Name;
|
|
}
|
|
}
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.OneofOptions();
|
|
Options = new global::Google.Protobuf.Reflection.OneofOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -2605,7 +2545,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
case 18: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.OneofOptions();
|
|
Options = new global::Google.Protobuf.Reflection.OneofOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -2647,7 +2587,7 @@ namespace Google.Protobuf.Reflection {
|
|
public EnumDescriptorProto(EnumDescriptorProto other) : this() {
|
|
public EnumDescriptorProto(EnumDescriptorProto other) : this() {
|
|
name_ = other.name_;
|
|
name_ = other.name_;
|
|
value_ = other.value_.Clone();
|
|
value_ = other.value_.Clone();
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
reservedRange_ = other.reservedRange_.Clone();
|
|
reservedRange_ = other.reservedRange_.Clone();
|
|
reservedName_ = other.reservedName_.Clone();
|
|
reservedName_ = other.reservedName_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
@@ -2701,16 +2641,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "reserved_range" field.</summary>
|
|
/// <summary>Field number for the "reserved_range" field.</summary>
|
|
public const int ReservedRangeFieldNumber = 4;
|
|
public const int ReservedRangeFieldNumber = 4;
|
|
@@ -2767,7 +2697,7 @@ namespace Google.Protobuf.Reflection {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
hash ^= value_.GetHashCode();
|
|
hash ^= value_.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
hash ^= reservedRange_.GetHashCode();
|
|
hash ^= reservedRange_.GetHashCode();
|
|
hash ^= reservedName_.GetHashCode();
|
|
hash ^= reservedName_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -2788,7 +2718,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteString(Name);
|
|
output.WriteString(Name);
|
|
}
|
|
}
|
|
value_.WriteTo(output, _repeated_value_codec);
|
|
value_.WriteTo(output, _repeated_value_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -2806,7 +2736,7 @@ namespace Google.Protobuf.Reflection {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
}
|
|
size += value_.CalculateSize(_repeated_value_codec);
|
|
size += value_.CalculateSize(_repeated_value_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
|
|
size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
|
|
@@ -2826,8 +2756,8 @@ namespace Google.Protobuf.Reflection {
|
|
Name = other.Name;
|
|
Name = other.Name;
|
|
}
|
|
}
|
|
value_.Add(other.value_);
|
|
value_.Add(other.value_);
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.EnumOptions();
|
|
Options = new global::Google.Protobuf.Reflection.EnumOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -2854,7 +2784,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.EnumOptions();
|
|
Options = new global::Google.Protobuf.Reflection.EnumOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -3112,7 +3042,7 @@ namespace Google.Protobuf.Reflection {
|
|
_hasBits0 = other._hasBits0;
|
|
_hasBits0 = other._hasBits0;
|
|
name_ = other.name_;
|
|
name_ = other.name_;
|
|
number_ = other.number_;
|
|
number_ = other.number_;
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3178,16 +3108,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
public override bool Equals(object other) {
|
|
@@ -3213,7 +3133,7 @@ namespace Google.Protobuf.Reflection {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasNumber) hash ^= Number.GetHashCode();
|
|
if (HasNumber) hash ^= Number.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
}
|
|
@@ -3235,7 +3155,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteRawTag(16);
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Number);
|
|
output.WriteInt32(Number);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -3253,7 +3173,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasNumber) {
|
|
if (HasNumber) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -3273,8 +3193,8 @@ namespace Google.Protobuf.Reflection {
|
|
if (other.HasNumber) {
|
|
if (other.HasNumber) {
|
|
Number = other.Number;
|
|
Number = other.Number;
|
|
}
|
|
}
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
|
|
Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -3299,7 +3219,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
|
|
Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -3341,7 +3261,7 @@ namespace Google.Protobuf.Reflection {
|
|
public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
|
|
public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
|
|
name_ = other.name_;
|
|
name_ = other.name_;
|
|
method_ = other.method_.Clone();
|
|
method_ = other.method_.Clone();
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3393,16 +3313,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
public override bool Equals(object other) {
|
|
@@ -3428,7 +3338,7 @@ namespace Google.Protobuf.Reflection {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
hash ^= method_.GetHashCode();
|
|
hash ^= method_.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
}
|
|
@@ -3447,7 +3357,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteString(Name);
|
|
output.WriteString(Name);
|
|
}
|
|
}
|
|
method_.WriteTo(output, _repeated_method_codec);
|
|
method_.WriteTo(output, _repeated_method_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -3463,7 +3373,7 @@ namespace Google.Protobuf.Reflection {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
}
|
|
size += method_.CalculateSize(_repeated_method_codec);
|
|
size += method_.CalculateSize(_repeated_method_codec);
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -3481,8 +3391,8 @@ namespace Google.Protobuf.Reflection {
|
|
Name = other.Name;
|
|
Name = other.Name;
|
|
}
|
|
}
|
|
method_.Add(other.method_);
|
|
method_.Add(other.method_);
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.ServiceOptions();
|
|
Options = new global::Google.Protobuf.Reflection.ServiceOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -3507,7 +3417,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.ServiceOptions();
|
|
Options = new global::Google.Protobuf.Reflection.ServiceOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|
|
@@ -3552,7 +3462,7 @@ namespace Google.Protobuf.Reflection {
|
|
name_ = other.name_;
|
|
name_ = other.name_;
|
|
inputType_ = other.inputType_;
|
|
inputType_ = other.inputType_;
|
|
outputType_ = other.outputType_;
|
|
outputType_ = other.outputType_;
|
|
- options_ = other.HasOptions ? other.options_.Clone() : null;
|
|
|
|
|
|
+ options_ = other.options_ != null ? other.options_.Clone() : null;
|
|
clientStreaming_ = other.clientStreaming_;
|
|
clientStreaming_ = other.clientStreaming_;
|
|
serverStreaming_ = other.serverStreaming_;
|
|
serverStreaming_ = other.serverStreaming_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
@@ -3646,16 +3556,6 @@ namespace Google.Protobuf.Reflection {
|
|
options_ = value;
|
|
options_ = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /// <summary>Gets whether the options field is set</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public bool HasOptions {
|
|
|
|
- get { return options_ != null; }
|
|
|
|
- }
|
|
|
|
- /// <summary>Clears the value of the options field</summary>
|
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
- public void ClearOptions() {
|
|
|
|
- options_ = null;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/// <summary>Field number for the "client_streaming" field.</summary>
|
|
/// <summary>Field number for the "client_streaming" field.</summary>
|
|
public const int ClientStreamingFieldNumber = 5;
|
|
public const int ClientStreamingFieldNumber = 5;
|
|
@@ -3739,7 +3639,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasName) hash ^= Name.GetHashCode();
|
|
if (HasInputType) hash ^= InputType.GetHashCode();
|
|
if (HasInputType) hash ^= InputType.GetHashCode();
|
|
if (HasOutputType) hash ^= OutputType.GetHashCode();
|
|
if (HasOutputType) hash ^= OutputType.GetHashCode();
|
|
- if (HasOptions) hash ^= Options.GetHashCode();
|
|
|
|
|
|
+ if (options_ != null) hash ^= Options.GetHashCode();
|
|
if (HasClientStreaming) hash ^= ClientStreaming.GetHashCode();
|
|
if (HasClientStreaming) hash ^= ClientStreaming.GetHashCode();
|
|
if (HasServerStreaming) hash ^= ServerStreaming.GetHashCode();
|
|
if (HasServerStreaming) hash ^= ServerStreaming.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
@@ -3767,7 +3667,7 @@ namespace Google.Protobuf.Reflection {
|
|
output.WriteRawTag(26);
|
|
output.WriteRawTag(26);
|
|
output.WriteString(OutputType);
|
|
output.WriteString(OutputType);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
output.WriteRawTag(34);
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(Options);
|
|
output.WriteMessage(Options);
|
|
}
|
|
}
|
|
@@ -3796,7 +3696,7 @@ namespace Google.Protobuf.Reflection {
|
|
if (HasOutputType) {
|
|
if (HasOutputType) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
|
|
}
|
|
}
|
|
- if (HasOptions) {
|
|
|
|
|
|
+ if (options_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
|
|
}
|
|
}
|
|
if (HasClientStreaming) {
|
|
if (HasClientStreaming) {
|
|
@@ -3825,8 +3725,8 @@ namespace Google.Protobuf.Reflection {
|
|
if (other.HasOutputType) {
|
|
if (other.HasOutputType) {
|
|
OutputType = other.OutputType;
|
|
OutputType = other.OutputType;
|
|
}
|
|
}
|
|
- if (other.HasOptions) {
|
|
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (other.options_ != null) {
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.MethodOptions();
|
|
Options = new global::Google.Protobuf.Reflection.MethodOptions();
|
|
}
|
|
}
|
|
Options.MergeFrom(other.Options);
|
|
Options.MergeFrom(other.Options);
|
|
@@ -3861,7 +3761,7 @@ namespace Google.Protobuf.Reflection {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 34: {
|
|
case 34: {
|
|
- if (!HasOptions) {
|
|
|
|
|
|
+ if (options_ == null) {
|
|
Options = new global::Google.Protobuf.Reflection.MethodOptions();
|
|
Options = new global::Google.Protobuf.Reflection.MethodOptions();
|
|
}
|
|
}
|
|
input.ReadMessage(Options);
|
|
input.ReadMessage(Options);
|