Class LookerQuery (0.1.0)

public final class LookerQuery extends GeneratedMessageV3 implements LookerQueryOrBuilder

A query for retrieving data from a Looker Explore. See Run Inline Query.

Protobuf type google.cloud.geminidataanalytics.v1beta.LookerQuery

Static Fields

EXPLORE_FIELD_NUMBER

public static final int EXPLORE_FIELD_NUMBER
Field Value
Type Description
int

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
Type Description
int

FILTERS_FIELD_NUMBER

public static final int FILTERS_FIELD_NUMBER
Field Value
Type Description
int

LIMIT_FIELD_NUMBER

public static final int LIMIT_FIELD_NUMBER
Field Value
Type Description
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
Type Description
int

SORTS_FIELD_NUMBER

public static final int SORTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LookerQuery getDefaultInstance()
Returns
Type Description
LookerQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LookerQuery.Builder newBuilder()
Returns
Type Description
LookerQuery.Builder

newBuilder(LookerQuery prototype)

public static LookerQuery.Builder newBuilder(LookerQuery prototype)
Parameter
Name Description
prototype LookerQuery
Returns
Type Description
LookerQuery.Builder

parseDelimitedFrom(InputStream input)

public static LookerQuery parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LookerQuery parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LookerQuery parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LookerQuery parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LookerQuery parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LookerQuery parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LookerQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LookerQuery> parser()
Returns
Type Description
Parser<LookerQuery>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LookerQuery getDefaultInstanceForType()
Returns
Type Description
LookerQuery

getExplore()

public String getExplore()

Required. The LookML Explore used to generate the query.

string explore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The explore.

getExploreBytes()

public ByteString getExploreBytes()

Required. The LookML Explore used to generate the query.

string explore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for explore.

getFields(int index)

public String getFields(int index)

Optional. The fields to retrieve from the Explore.

repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The fields at the given index.

getFieldsBytes(int index)

public ByteString getFieldsBytes(int index)

Optional. The fields to retrieve from the Explore.

repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the fields at the given index.

getFieldsCount()

public int getFieldsCount()

Optional. The fields to retrieve from the Explore.

repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of fields.

getFieldsList()

public ProtocolStringList getFieldsList()

Optional. The fields to retrieve from the Explore.

repeated string fields = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the fields.

getFilters(int index)

public LookerQuery.Filter getFilters(int index)

Optional. The filters to apply to the Explore.

repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LookerQuery.Filter

getFiltersCount()

public int getFiltersCount()

Optional. The filters to apply to the Explore.

repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFiltersList()

public List<LookerQuery.Filter> getFiltersList()

Optional. The filters to apply to the Explore.

repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Filter>

getFiltersOrBuilder(int index)

public LookerQuery.FilterOrBuilder getFiltersOrBuilder(int index)

Optional. The filters to apply to the Explore.

repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LookerQuery.FilterOrBuilder

getFiltersOrBuilderList()

public List<? extends LookerQuery.FilterOrBuilder> getFiltersOrBuilderList()

Optional. The filters to apply to the Explore.

repeated .google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter filters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterOrBuilder>

getLimit()

public String getLimit()

Optional. Limit in the query.

optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The limit.

getLimitBytes()

public ByteString getLimitBytes()

Optional. Limit in the query.

optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for limit.

getModel()

public String getModel()

Required. The LookML model used to generate the query.

string model = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Required. The LookML model used to generate the query.

string model = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for model.

getParserForType()

public Parser<LookerQuery> getParserForType()
Returns
Type Description
Parser<LookerQuery>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSorts(int index)

public String getSorts(int index)

Optional. The sorts to apply to the Explore.

repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The sorts at the given index.

getSortsBytes(int index)

public ByteString getSortsBytes(int index)

Optional. The sorts to apply to the Explore.

repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sorts at the given index.

getSortsCount()

public int getSortsCount()

Optional. The sorts to apply to the Explore.

repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of sorts.

getSortsList()

public ProtocolStringList getSortsList()

Optional. The sorts to apply to the Explore.

repeated string sorts = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the sorts.

hasLimit()

public boolean hasLimit()

Optional. Limit in the query.

optional string limit = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the limit field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LookerQuery.Builder newBuilderForType()
Returns
Type Description
LookerQuery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LookerQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LookerQuery.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LookerQuery.Builder toBuilder()
Returns
Type Description
LookerQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException