Class DataSource (1.28.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
TypeDescription
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_ENTRY_FIELD_NUMBER

public static final int SOURCE_ENTRY_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_PROPERTIES_FIELD_NUMBER

public static final int STORAGE_PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataSource getDefaultInstance()
Returns
TypeDescription
DataSource

getDescriptor()

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

newBuilder()

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

newBuilder(DataSource prototype)

public static DataSource.Builder newBuilder(DataSource prototype)
Parameter
NameDescription
prototypeDataSource
Returns
TypeDescription
DataSource.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
TypeDescription
DataSource

getParserForType()

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

getPropertiesCase()

public DataSource.PropertiesCase getPropertiesCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getService()

public DataSource.Service getService()

Service that physically stores the data.

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

Returns
TypeDescription
DataSource.Service

The service.

getServiceValue()

public int getServiceValue()

Service that physically stores the data.

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

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

The bytes for sourceEntry.

getStorageProperties()

public StorageProperties getStorageProperties()

Detailed properties of the underlying storage.

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

Returns
TypeDescription
StorageProperties

The storageProperties.

getStoragePropertiesOrBuilder()

public StoragePropertiesOrBuilder getStoragePropertiesOrBuilder()

Detailed properties of the underlying storage.

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

Returns
TypeDescription
StoragePropertiesOrBuilder

hasStorageProperties()

public boolean hasStorageProperties()

Detailed properties of the underlying storage.

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

Returns
TypeDescription
boolean

Whether the storageProperties field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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