Class BigQueryDestination (0.1.0)

public final class BigQueryDestination extends GeneratedMessageV3 implements BigQueryDestinationOrBuilder

A BigQuery destination for exporting assets to.

Protobuf type google.cloud.capacityplanner.v1beta.BigQueryDestination

Static Fields

CREATE_DISPOSITION_FIELD_NUMBER

public static final int CREATE_DISPOSITION_FIELD_NUMBER
Field Value
Type Description
int

DATASET_FIELD_NUMBER

public static final int DATASET_FIELD_NUMBER
Field Value
Type Description
int

GCS_LOCATION_FIELD_NUMBER

public static final int GCS_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_KEY_FIELD_NUMBER

public static final int PARTITION_KEY_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

WRITE_DISPOSITION_FIELD_NUMBER

public static final int WRITE_DISPOSITION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BigQueryDestination getDefaultInstance()
Returns
Type Description
BigQueryDestination

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BigQueryDestination.Builder newBuilder()
Returns
Type Description
BigQueryDestination.Builder

newBuilder(BigQueryDestination prototype)

public static BigQueryDestination.Builder newBuilder(BigQueryDestination prototype)
Parameter
Name Description
prototype BigQueryDestination
Returns
Type Description
BigQueryDestination.Builder

parseDelimitedFrom(InputStream input)

public static BigQueryDestination parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BigQueryDestination parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BigQueryDestination parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BigQueryDestination parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BigQueryDestination parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BigQueryDestination parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BigQueryDestination parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestination
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BigQueryDestination> parser()
Returns
Type Description
Parser<BigQueryDestination>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateDisposition()

public BigQueryDestination.CreateDisposition getCreateDisposition()

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.CreateDisposition

The createDisposition.

getCreateDispositionValue()

public int getCreateDispositionValue()

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for createDisposition.

getDataset()

public String getDataset()

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public BigQueryDestination getDefaultInstanceForType()
Returns
Type Description
BigQueryDestination

getGcsLocation()

public String getGcsLocation()

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gcsLocation.

getGcsLocationBytes()

public ByteString getGcsLocationBytes()

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gcsLocation.

getParserForType()

public Parser<BigQueryDestination> getParserForType()
Returns
Type Description
Parser<BigQueryDestination>
Overrides

getPartitionKey()

public BigQueryDestination.PartitionKey getPartitionKey()

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.PartitionKey

The partitionKey.

getPartitionKeyValue()

public int getPartitionKeyValue()

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for partitionKey.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable()

public String getTable()

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for table.

getWriteDisposition()

public BigQueryDestination.WriteDisposition getWriteDisposition()

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.WriteDisposition

The writeDisposition.

getWriteDispositionValue()

public int getWriteDispositionValue()

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for writeDisposition.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BigQueryDestination.Builder newBuilderForType()
Returns
Type Description
BigQueryDestination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BigQueryDestination.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BigQueryDestination.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BigQueryDestination.Builder toBuilder()
Returns
Type Description
BigQueryDestination.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException