public void MergeFrom(Input other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.ExampleList: if (ExampleList == null) { ExampleList = new global::Tensorflow.Serving.ExampleList(); } ExampleList.MergeFrom(other.ExampleList); break; case KindOneofCase.ExampleListWithContext: if (ExampleListWithContext == null) { ExampleListWithContext = new global::Tensorflow.Serving.ExampleListWithContext(); } ExampleListWithContext.MergeFrom(other.ExampleListWithContext); break; } }
public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.ExampleList) { hash ^= ExampleList.GetHashCode(); } if (kindCase_ == KindOneofCase.ExampleListWithContext) { hash ^= ExampleListWithContext.GetHashCode(); } hash ^= (int)kindCase_; return(hash); }
public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.ExampleList) { hash ^= ExampleList.GetHashCode(); } if (kindCase_ == KindOneofCase.ExampleListWithContext) { hash ^= ExampleListWithContext.GetHashCode(); } hash ^= (int)kindCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }