Class QueryList.Builder (4.49.0)

public static final class QueryList.Builder extends GeneratedMessageV3.Builder<QueryList.Builder> implements QueryListOrBuilder

A list of queries to run on a cluster.

Protobuf type google.cloud.dataproc.v1.QueryList

Implements

QueryListOrBuilder

Static 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 String

The 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 ByteString

The bytes of the queries to add.

Returns
Type Description
QueryList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

getDefaultInstanceForType()

public QueryList getDefaultInstanceForType()
Returns
Type Description
QueryList

getDescriptorForType()

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

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 int

The 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 int

The 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 int

The index to set the value at.

value String

The queries to set.

Returns
Type Description
QueryList.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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