public override int GetHashCode() { int hash = 1; if (detailsCase_ == DetailsOneofCase.ListElementType) { hash ^= ListElementType.GetHashCode(); } if (detailsCase_ == DetailsOneofCase.StructType) { hash ^= StructType.GetHashCode(); } if (detailsCase_ == DetailsOneofCase.TimeFormat) { hash ^= TimeFormat.GetHashCode(); } if (TypeCode != global::Google.Cloud.Automl.V1Beta1.TypeCode.Unspecified) { hash ^= TypeCode.GetHashCode(); } if (Nullable != false) { hash ^= Nullable.GetHashCode(); } hash ^= (int)detailsCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private void setState(long state) { if (state == 6) { type = ListElementType.incoming; } else if (state == 1) { type = ListElementType.draft; } else if (state == 2) { type = ListElementType.proposed; } else if (state == 3) { type = ListElementType.paired; } else if (state == 4) { type = ListElementType.accepted; } else if (state == 5) { type = ListElementType.rejected; } }
public void MergeFrom(DataType other) { if (other == null) { return; } if (other.TypeCode != global::Google.Cloud.Automl.V1Beta1.TypeCode.Unspecified) { TypeCode = other.TypeCode; } if (other.Nullable != false) { Nullable = other.Nullable; } switch (other.DetailsCase) { case DetailsOneofCase.ListElementType: if (ListElementType == null) { ListElementType = new global::Google.Cloud.Automl.V1Beta1.DataType(); } ListElementType.MergeFrom(other.ListElementType); break; case DetailsOneofCase.StructType: if (StructType == null) { StructType = new global::Google.Cloud.Automl.V1Beta1.StructType(); } StructType.MergeFrom(other.StructType); break; case DetailsOneofCase.TimeFormat: TimeFormat = other.TimeFormat; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }