Class DatasetReference (0.27.0)

public final class DatasetReference extends GeneratedMessageV3 implements DatasetReferenceOrBuilder

Reference to a BigQuery dataset.

Protobuf type google.cloud.bigquery.migration.v2alpha.DatasetReference

Static Fields

DATASET_ID_FIELD_NUMBER

public static final int DATASET_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DatasetReference getDefaultInstance()
Returns
TypeDescription
DatasetReference

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DatasetReference.Builder newBuilder()
Returns
TypeDescription
DatasetReference.Builder

newBuilder(DatasetReference prototype)

public static DatasetReference.Builder newBuilder(DatasetReference prototype)
Parameter
NameDescription
prototypeDatasetReference
Returns
TypeDescription
DatasetReference.Builder

parseDelimitedFrom(InputStream input)

public static DatasetReference parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DatasetReference parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DatasetReference parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DatasetReference parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DatasetReference parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DatasetReference parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DatasetReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatasetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DatasetReference> parser()
Returns
TypeDescription
Parser<DatasetReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDatasetId()

public String getDatasetId()

A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.

string dataset_id = 1;

Returns
TypeDescription
String

The datasetId.

getDatasetIdBytes()

public ByteString getDatasetIdBytes()

A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.

string dataset_id = 1;

Returns
TypeDescription
ByteString

The bytes for datasetId.

getDefaultInstanceForType()

public DatasetReference getDefaultInstanceForType()
Returns
TypeDescription
DatasetReference

getParserForType()

public Parser<DatasetReference> getParserForType()
Returns
TypeDescription
Parser<DatasetReference>
Overrides

getProjectId()

public String getProjectId()

The ID of the project containing this dataset.

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The ID of the project containing this dataset.

string project_id = 2;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DatasetReference.Builder newBuilderForType()
Returns
TypeDescription
DatasetReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DatasetReference.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DatasetReference.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DatasetReference.Builder toBuilder()
Returns
TypeDescription
DatasetReference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException