Class IndexTranslator (2.0.0)

public class IndexTranslator

Helper class to translate between Index to com.google.storage.onestore.v3.OnestoreEntity.Index.

Inheritance

java.lang.Object > IndexTranslator

Static Methods

convertFromPb(OnestoreEntity.CompositeIndex ci)

public static Index convertFromPb(OnestoreEntity.CompositeIndex ci)
Parameter
Name Description
ci com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex
Returns
Type Description
Index

convertFromPb(OnestoreEntity.Index index)

public static Index convertFromPb(OnestoreEntity.Index index)
Parameter
Name Description
index com.google.storage.onestore.v3.OnestoreEntity.Index
Returns
Type Description
Index

convertFromPb(OnestoreEntity.Index.Property property)

public static Index.Property convertFromPb(OnestoreEntity.Index.Property property)
Parameter
Name Description
property com.google.storage.onestore.v3.OnestoreEntity.Index.Property
Returns
Type Description
Index.Property

convertToPb(Index index)

public static OnestoreEntity.Index convertToPb(Index index)
Parameter
Name Description
index Index
Returns
Type Description
com.google.storage.onestore.v3.OnestoreEntity.Index

convertToPb(Index.Property property)

public static OnestoreEntity.Index.Property convertToPb(Index.Property property)
Parameter
Name Description
property Index.Property
Returns
Type Description
com.google.storage.onestore.v3.OnestoreEntity.Index.Property

Constructors

IndexTranslator()

public IndexTranslator()