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()
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];
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.
|
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueryList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public QueryList buildPartial()
clear()
public QueryList.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public QueryList.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public QueryList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public QueryList.Builder clone()
Overrides
getDefaultInstanceForType()
public QueryList getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(QueryList other)
public QueryList.Builder mergeFrom(QueryList other)
public QueryList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public QueryList.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueryList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public QueryList.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueryList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final QueryList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides