Class LookerQuery.Builder (0.1.0)

public static final class LookerQuery.Builder extends GeneratedMessageV3.Builder<LookerQuery.Builder> implements LookerQueryOrBuilder

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

Protobuf type google.cloud.geminidataanalytics.v1beta.LookerQuery

Static Methods

getDescriptor()

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

Methods

addAllFields(Iterable<String> values)

public LookerQuery.Builder addAllFields(Iterable<String> values)

Optional. The fields to retrieve from the Explore.

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

Parameter
Name Description
values Iterable<String>

The fields to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

addAllFilters(Iterable<? extends LookerQuery.Filter> values)

public LookerQuery.Builder addAllFilters(Iterable<? extends LookerQuery.Filter> values)

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
values Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter>
Returns
Type Description
LookerQuery.Builder

addAllSorts(Iterable<String> values)

public LookerQuery.Builder addAllSorts(Iterable<String> values)

Optional. The sorts to apply to the Explore.

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

Parameter
Name Description
values Iterable<String>

The sorts to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

addFields(String value)

public LookerQuery.Builder addFields(String value)

Optional. The fields to retrieve from the Explore.

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

Parameter
Name Description
value String

The fields to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

addFieldsBytes(ByteString value)

public LookerQuery.Builder addFieldsBytes(ByteString value)

Optional. The fields to retrieve from the Explore.

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

Parameter
Name Description
value ByteString

The bytes of the fields to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

addFilters(LookerQuery.Filter value)

public LookerQuery.Builder addFilters(LookerQuery.Filter value)

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
value LookerQuery.Filter
Returns
Type Description
LookerQuery.Builder

addFilters(LookerQuery.Filter.Builder builderForValue)

public LookerQuery.Builder addFilters(LookerQuery.Filter.Builder builderForValue)

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
builderForValue LookerQuery.Filter.Builder
Returns
Type Description
LookerQuery.Builder

addFilters(int index, LookerQuery.Filter value)

public LookerQuery.Builder addFilters(int index, LookerQuery.Filter value)

Optional. The filters to apply to the Explore.

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

Parameters
Name Description
index int
value LookerQuery.Filter
Returns
Type Description
LookerQuery.Builder

addFilters(int index, LookerQuery.Filter.Builder builderForValue)

public LookerQuery.Builder addFilters(int index, LookerQuery.Filter.Builder builderForValue)

Optional. The filters to apply to the Explore.

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

Parameters
Name Description
index int
builderForValue LookerQuery.Filter.Builder
Returns
Type Description
LookerQuery.Builder

addFiltersBuilder()

public LookerQuery.Filter.Builder addFiltersBuilder()

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
LookerQuery.Filter.Builder

addFiltersBuilder(int index)

public LookerQuery.Filter.Builder addFiltersBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LookerQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LookerQuery.Builder
Overrides

addSorts(String value)

public LookerQuery.Builder addSorts(String value)

Optional. The sorts to apply to the Explore.

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

Parameter
Name Description
value String

The sorts to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

addSortsBytes(ByteString value)

public LookerQuery.Builder addSortsBytes(ByteString value)

Optional. The sorts to apply to the Explore.

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

Parameter
Name Description
value ByteString

The bytes of the sorts to add.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

build()

public LookerQuery build()
Returns
Type Description
LookerQuery

buildPartial()

public LookerQuery buildPartial()
Returns
Type Description
LookerQuery

clear()

public LookerQuery.Builder clear()
Returns
Type Description
LookerQuery.Builder
Overrides

clearExplore()

public LookerQuery.Builder clearExplore()

Required. The LookML Explore used to generate the query.

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

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LookerQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LookerQuery.Builder
Overrides

clearFields()

public LookerQuery.Builder clearFields()

Optional. The fields to retrieve from the Explore.

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

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

clearFilters()

public LookerQuery.Builder clearFilters()

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
LookerQuery.Builder

clearLimit()

public LookerQuery.Builder clearLimit()

Optional. Limit in the query.

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

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

clearModel()

public LookerQuery.Builder clearModel()

Required. The LookML model used to generate the query.

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

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LookerQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LookerQuery.Builder
Overrides

clearSorts()

public LookerQuery.Builder clearSorts()

Optional. The sorts to apply to the Explore.

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

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

clone()

public LookerQuery.Builder clone()
Returns
Type Description
LookerQuery.Builder
Overrides

getDefaultInstanceForType()

public LookerQuery getDefaultInstanceForType()
Returns
Type Description
LookerQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getFiltersBuilder(int index)

public LookerQuery.Filter.Builder getFiltersBuilder(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.Builder

getFiltersBuilderList()

public List<LookerQuery.Filter.Builder> getFiltersBuilderList()

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<Builder>

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LookerQuery other)

public LookerQuery.Builder mergeFrom(LookerQuery other)
Parameter
Name Description
other LookerQuery
Returns
Type Description
LookerQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LookerQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookerQuery.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LookerQuery.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LookerQuery.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LookerQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LookerQuery.Builder
Overrides

removeFilters(int index)

public LookerQuery.Builder removeFilters(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.Builder

setExplore(String value)

public LookerQuery.Builder setExplore(String value)

Required. The LookML Explore used to generate the query.

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

Parameter
Name Description
value String

The explore to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setExploreBytes(ByteString value)

public LookerQuery.Builder setExploreBytes(ByteString value)

Required. The LookML Explore used to generate the query.

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

Parameter
Name Description
value ByteString

The bytes for explore to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LookerQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LookerQuery.Builder
Overrides

setFields(int index, String value)

public LookerQuery.Builder setFields(int index, String value)

Optional. The fields to retrieve from the Explore.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The fields to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setFilters(int index, LookerQuery.Filter value)

public LookerQuery.Builder setFilters(int index, LookerQuery.Filter value)

Optional. The filters to apply to the Explore.

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

Parameters
Name Description
index int
value LookerQuery.Filter
Returns
Type Description
LookerQuery.Builder

setFilters(int index, LookerQuery.Filter.Builder builderForValue)

public LookerQuery.Builder setFilters(int index, LookerQuery.Filter.Builder builderForValue)

Optional. The filters to apply to the Explore.

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

Parameters
Name Description
index int
builderForValue LookerQuery.Filter.Builder
Returns
Type Description
LookerQuery.Builder

setLimit(String value)

public LookerQuery.Builder setLimit(String value)

Optional. Limit in the query.

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

Parameter
Name Description
value String

The limit to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setLimitBytes(ByteString value)

public LookerQuery.Builder setLimitBytes(ByteString value)

Optional. Limit in the query.

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

Parameter
Name Description
value ByteString

The bytes for limit to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setModel(String value)

public LookerQuery.Builder setModel(String value)

Required. The LookML model used to generate the query.

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

Parameter
Name Description
value String

The model to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setModelBytes(ByteString value)

public LookerQuery.Builder setModelBytes(ByteString value)

Required. The LookML model used to generate the query.

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

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LookerQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LookerQuery.Builder
Overrides

setSorts(int index, String value)

public LookerQuery.Builder setSorts(int index, String value)

Optional. The sorts to apply to the Explore.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The sorts to set.

Returns
Type Description
LookerQuery.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LookerQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LookerQuery.Builder
Overrides