Class QueryList.Builder (4.16.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
TypeDescription
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
NameDescription
valuesIterable<String>

The queries to add.

Returns
TypeDescription
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
NameDescription
valueString

The queries to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the queries to add.

Returns
TypeDescription
QueryList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryList.Builder
Overrides

build()

public QueryList build()
Returns
TypeDescription
QueryList

buildPartial()

public QueryList buildPartial()
Returns
TypeDescription
QueryList

clear()

public QueryList.Builder clear()
Returns
TypeDescription
QueryList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
QueryList.Builder

This builder for chaining.

clone()

public QueryList.Builder clone()
Returns
TypeDescription
QueryList.Builder
Overrides

getDefaultInstanceForType()

public QueryList getDefaultInstanceForType()
Returns
TypeDescription
QueryList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the queries.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryList other)

public QueryList.Builder mergeFrom(QueryList other)
Parameter
NameDescription
otherQueryList
Returns
TypeDescription
QueryList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryList.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueryList.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueryList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryList.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public QueryList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The queries to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryList.Builder
Overrides