public static TermQuery BuildTermQuery(Aliyun.TableStore.DataModel.Search.Query.TermQuery query) { TermQuery.Builder builder = TermQuery.CreateBuilder(); builder.SetFieldName(query.FieldName); builder.SetTerm(ByteString.CopyFrom(SearchVariantType.toVariant(query.Term))); return(builder.Build()); }