Class DataSource (1.60.0)

public final class DataSource extends GeneratedMessageV3 implements DataSourceOrBuilder

Physical location of an entry.

Protobuf type google.cloud.datacatalog.v1.DataSource

Implements

DataSourceOrBuilder

Static Fields

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_ENTRY_FIELD_NUMBER

public static final int SOURCE_ENTRY_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_PROPERTIES_FIELD_NUMBER

public static final int STORAGE_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSource getDefaultInstance()
Returns
Type Description
DataSource

getDescriptor()

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

newBuilder()

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

newBuilder(DataSource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
Type Description
DataSource

getParserForType()

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

getPropertiesCase()

public DataSource.PropertiesCase getPropertiesCase()
Returns
Type Description
DataSource.PropertiesCase

getResource()

public String getResource()

Full name of a resource as defined by the service. For example:

//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}

string resource = 2;

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Full name of a resource as defined by the service. For example:

//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}

string resource = 2;

Returns
Type Description
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getService()

public DataSource.Service getService()

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Returns
Type Description
DataSource.Service

The service.

getServiceValue()

public int getServiceValue()

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Returns
Type Description
int

The enum numeric value on the wire for service.

getSourceEntry()

public String getSourceEntry()

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The sourceEntry.

getSourceEntryBytes()

public ByteString getSourceEntryBytes()

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for sourceEntry.

getStorageProperties()

public StorageProperties getStorageProperties()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
Type Description
StorageProperties

The storageProperties.

getStoragePropertiesOrBuilder()

public StoragePropertiesOrBuilder getStoragePropertiesOrBuilder()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
Type Description
StoragePropertiesOrBuilder

hasStorageProperties()

public boolean hasStorageProperties()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
Type Description
boolean

Whether the storageProperties field is set.

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 DataSource.Builder newBuilderForType()
Returns
Type Description
DataSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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