public static final class QueryList.Builder extends GeneratedMessage.Builder<QueryList.Builder> implements QueryListOrBuilderA list of queries to run on a cluster.
Protobuf type google.cloud.dataproc.v1.QueryList
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > QueryList.BuilderImplements
QueryListOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllQueries(Iterable<String> values)
public QueryList.Builder addAllQueries(Iterable<String> values)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The queries to add. |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
This builder for chaining. |
addQueries(String value)
public QueryList.Builder addQueries(String value)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe queries to add. |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
This builder for chaining. |
addQueriesBytes(ByteString value)
public QueryList.Builder addQueriesBytes(ByteString value)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the queries to add. |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
This builder for chaining. |
build()
public QueryList build()| Returns | |
|---|---|
| Type | Description |
QueryList |
|
buildPartial()
public QueryList buildPartial()| Returns | |
|---|---|
| Type | Description |
QueryList |
|
clear()
public QueryList.Builder clear()| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
|
clearQueries()
public QueryList.Builder clearQueries()Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public QueryList getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryList |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQueries(int index)
public String getQueries(int index)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The queries at the given index. |
getQueriesBytes(int index)
public ByteString getQueriesBytes(int index)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the queries at the given index. |
getQueriesCount()
public int getQueriesCount()Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of queries. |
getQueriesList()
public ProtocolStringList getQueriesList()Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the queries. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(QueryList other)
public QueryList.Builder mergeFrom(QueryList other)| Parameter | |
|---|---|
| Name | Description |
other |
QueryList |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QueryList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryList.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
|
setQueries(int index, String value)
public QueryList.Builder setQueries(int index, String value)Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob:
"hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe queries to set. |
| Returns | |
|---|---|
| Type | Description |
QueryList.Builder |
This builder for chaining. |