Class TranslateQueryRequest.Builder (0.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranslateQueryRequest build()
Returns
TypeDescription
TranslateQueryRequest

buildPartial()

public TranslateQueryRequest buildPartial()
Returns
TypeDescription
TranslateQueryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TranslateQueryRequest getDefaultInstanceForType()
Returns
TypeDescription
TranslateQueryRequest

getDescriptorForType()

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

The bytes for parent.

getQuery()

public String getQuery()

Required. The query to be translated.

string query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. The query to be translated.

string query = 3 [(.google.api.field_behavior) = REQUIRED];

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

The enum numeric value on the wire for sourceDialect.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TranslateQueryRequest other)

public TranslateQueryRequest.Builder mergeFrom(TranslateQueryRequest other)
Parameter
NameDescription
otherTranslateQueryRequest
Returns
TypeDescription
TranslateQueryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

The query to set.

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

The bytes for query to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTranslateQueryRequest.SqlTranslationSourceDialect

The sourceDialect to set.

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

The enum numeric value on the wire for sourceDialect to set.

Returns
TypeDescription
TranslateQueryRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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