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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueryList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public QueryList buildPartial()
Returns
clear()
public QueryList.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public QueryList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public QueryList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public QueryList.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public QueryList getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(QueryList other)
public QueryList.Builder mergeFrom(QueryList other)
Parameter
Returns
public QueryList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public QueryList.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueryList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public QueryList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueryList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final QueryList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides