Class DataSourceReference (0.10.0)

public final class DataSourceReference extends GeneratedMessageV3 implements DataSourceReferenceOrBuilder

Data source reference can be used to manage related data sources within the data source service.

Protobuf type google.shopping.merchant.datasources.v1beta.DataSourceReference

Static Fields

PRIMARY_DATA_SOURCE_NAME_FIELD_NUMBER

public static final int PRIMARY_DATA_SOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SELF_FIELD_NUMBER

public static final int SELF_FIELD_NUMBER
Field Value
Type Description
int

SUPPLEMENTAL_DATA_SOURCE_NAME_FIELD_NUMBER

public static final int SUPPLEMENTAL_DATA_SOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSourceReference getDefaultInstance()
Returns
Type Description
DataSourceReference

getDescriptor()

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

newBuilder()

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

newBuilder(DataSourceReference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDataSourceIdCase()

public DataSourceReference.DataSourceIdCase getDataSourceIdCase()
Returns
Type Description
DataSourceReference.DataSourceIdCase

getDefaultInstanceForType()

public DataSourceReference getDefaultInstanceForType()
Returns
Type Description
DataSourceReference

getParserForType()

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

getPrimaryDataSourceName()

public String getPrimaryDataSourceName()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The primaryDataSourceName.

getPrimaryDataSourceNameBytes()

public ByteString getPrimaryDataSourceNameBytes()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for primaryDataSourceName.

getSelf()

public boolean getSelf()

Self should be used to reference the primary data source itself.

bool self = 1;

Returns
Type Description
boolean

The self.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSupplementalDataSourceName()

public String getSupplementalDataSourceName()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The supplementalDataSourceName.

getSupplementalDataSourceNameBytes()

public ByteString getSupplementalDataSourceNameBytes()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for supplementalDataSourceName.

hasPrimaryDataSourceName()

public boolean hasPrimaryDataSourceName()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the primaryDataSourceName field is set.

hasSelf()

public boolean hasSelf()

Self should be used to reference the primary data source itself.

bool self = 1;

Returns
Type Description
boolean

Whether the self field is set.

hasSupplementalDataSourceName()

public boolean hasSupplementalDataSourceName()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the supplementalDataSourceName 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 DataSourceReference.Builder newBuilderForType()
Returns
Type Description
DataSourceReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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