- 0.54.0 (latest)
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.2
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.4
public static final class TranslateQueryRequest.Builder extends GeneratedMessageV3.Builder<TranslateQueryRequest.Builder> implements TranslateQueryRequestOrBuilder
The request of translating a SQL query to Standard SQL.
Protobuf type google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslateQueryRequest.BuilderImplements
TranslateQueryRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
build()
public TranslateQueryRequest build()
Returns | |
---|---|
Type | Description |
TranslateQueryRequest |
buildPartial()
public TranslateQueryRequest buildPartial()
Returns | |
---|---|
Type | Description |
TranslateQueryRequest |
clear()
public TranslateQueryRequest.Builder clear()
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public TranslateQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslateQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
clearParent()
public TranslateQueryRequest.Builder clearParent()
Required. The name of the project to which this translation request belongs.
Example: projects/foo/locations/bar
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
clearQuery()
public TranslateQueryRequest.Builder clearQuery()
Required. The query to be translated.
string query = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
clearSourceDialect()
public TranslateQueryRequest.Builder clearSourceDialect()
Required. The source SQL dialect of queries
.
.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
clone()
public TranslateQueryRequest.Builder clone()
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
getDefaultInstanceForType()
public TranslateQueryRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TranslateQueryRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The name of the project to which this translation request belongs.
Example: projects/foo/locations/bar
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The name of the project to which this translation request belongs.
Example: projects/foo/locations/bar
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString | The bytes for parent. |
getQuery()
public String getQuery()
Required. The query to be translated.
string query = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String | The query. |
getQueryBytes()
public ByteString getQueryBytes()
Required. The query to be translated.
string query = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for query. |
getSourceDialect()
public TranslateQueryRequest.SqlTranslationSourceDialect getSourceDialect()
Required. The source SQL dialect of queries
.
.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.SqlTranslationSourceDialect | The sourceDialect. |
getSourceDialectValue()
public int getSourceDialectValue()
Required. The source SQL dialect of queries
.
.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for sourceDialect. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TranslateQueryRequest other)
public TranslateQueryRequest.Builder mergeFrom(TranslateQueryRequest other)
Parameter | |
---|---|
Name | Description |
other | TranslateQueryRequest |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslateQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TranslateQueryRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslateQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TranslateQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
setParent(String value)
public TranslateQueryRequest.Builder setParent(String value)
Required. The name of the project to which this translation request belongs.
Example: projects/foo/locations/bar
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value | String The parent to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public TranslateQueryRequest.Builder setParentBytes(ByteString value)
Required. The name of the project to which this translation request belongs.
Example: projects/foo/locations/bar
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setQuery(String value)
public TranslateQueryRequest.Builder setQuery(String value)
Required. The query to be translated.
string query = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | String The query to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setQueryBytes(ByteString value)
public TranslateQueryRequest.Builder setQueryBytes(ByteString value)
Required. The query to be translated.
string query = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for query to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslateQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |
setSourceDialect(TranslateQueryRequest.SqlTranslationSourceDialect value)
public TranslateQueryRequest.Builder setSourceDialect(TranslateQueryRequest.SqlTranslationSourceDialect value)
Required. The source SQL dialect of queries
.
.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | TranslateQueryRequest.SqlTranslationSourceDialect The sourceDialect to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setSourceDialectValue(int value)
public TranslateQueryRequest.Builder setSourceDialectValue(int value)
Required. The source SQL dialect of queries
.
.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for sourceDialect to set. |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslateQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TranslateQueryRequest.Builder |