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
NameDescription
cicom.google.storage.onestore.v3.OnestoreEntity.CompositeIndex
Returns
TypeDescription
Index

convertFromPb(OnestoreEntity.Index index)

public static Index convertFromPb(OnestoreEntity.Index index)
Parameter
NameDescription
indexcom.google.storage.onestore.v3.OnestoreEntity.Index
Returns
TypeDescription
Index

convertFromPb(OnestoreEntity.Index.Property property)

public static Index.Property convertFromPb(OnestoreEntity.Index.Property property)
Parameter
NameDescription
propertycom.google.storage.onestore.v3.OnestoreEntity.Index.Property
Returns
TypeDescription
Index.Property

convertToPb(Index index)

public static OnestoreEntity.Index convertToPb(Index index)
Parameter
NameDescription
indexIndex
Returns
TypeDescription
com.google.storage.onestore.v3.OnestoreEntity.Index

convertToPb(Index.Property property)

public static OnestoreEntity.Index.Property convertToPb(Index.Property property)
Parameter
NameDescription
propertyIndex.Property
Returns
TypeDescription
com.google.storage.onestore.v3.OnestoreEntity.Index.Property

Constructors

IndexTranslator()

public IndexTranslator()