Class TranslateQueryRequest.Builder (0.57.0)

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

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
Overrides

getDefaultInstanceForType()

public TranslateQueryRequest getDefaultInstanceForType()
Returns
Type Description
TranslateQueryRequest

getDescriptorForType()

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

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
Overrides

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
Overrides

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
Overrides