public static final class DataSourceReference.Builder extends GeneratedMessageV3.Builder<DataSourceReference.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataSourceReference.BuilderImplements
DataSourceReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataSourceReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
build()
public DataSourceReference build()
Returns | |
---|---|
Type | Description |
DataSourceReference |
buildPartial()
public DataSourceReference buildPartial()
Returns | |
---|---|
Type | Description |
DataSourceReference |
clear()
public DataSourceReference.Builder clear()
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
clearDataSourceId()
public DataSourceReference.Builder clearDataSourceId()
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
clearField(Descriptors.FieldDescriptor field)
public DataSourceReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DataSourceReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
clearPrimaryDataSourceName()
public DataSourceReference.Builder clearPrimaryDataSourceName()
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 |
DataSourceReference.Builder |
This builder for chaining. |
clearSelf()
public DataSourceReference.Builder clearSelf()
Self should be used to reference the primary data source itself.
bool self = 1;
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
clearSupplementalDataSourceName()
public DataSourceReference.Builder clearSupplementalDataSourceName()
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 |
DataSourceReference.Builder |
This builder for chaining. |
clone()
public DataSourceReference.Builder clone()
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
getDataSourceIdCase()
public DataSourceReference.DataSourceIdCase getDataSourceIdCase()
Returns | |
---|---|
Type | Description |
DataSourceReference.DataSourceIdCase |
getDefaultInstanceForType()
public DataSourceReference getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DataSourceReference |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataSourceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DataSourceReference.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
mergeFrom(DataSourceReference other)
public DataSourceReference.Builder mergeFrom(DataSourceReference other)
Parameter | |
---|---|
Name | Description |
other |
DataSourceReference |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataSourceReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DataSourceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
setPrimaryDataSourceName(String value)
public DataSourceReference.Builder setPrimaryDataSourceName(String value)
Optional. The name of the primary data source.
Format:
accounts/{account}/dataSources/{datasource}
string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The primaryDataSourceName to set. |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setPrimaryDataSourceNameBytes(ByteString value)
public DataSourceReference.Builder setPrimaryDataSourceNameBytes(ByteString value)
Optional. The name of the primary data source.
Format:
accounts/{account}/dataSources/{datasource}
string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for primaryDataSourceName to set. |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataSourceReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
setSelf(boolean value)
public DataSourceReference.Builder setSelf(boolean value)
Self should be used to reference the primary data source itself.
bool self = 1;
Parameter | |
---|---|
Name | Description |
value |
boolean The self to set. |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setSupplementalDataSourceName(String value)
public DataSourceReference.Builder setSupplementalDataSourceName(String value)
Optional. The name of the supplemental data source.
Format:
accounts/{account}/dataSources/{datasource}
string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The supplementalDataSourceName to set. |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setSupplementalDataSourceNameBytes(ByteString value)
public DataSourceReference.Builder setSupplementalDataSourceNameBytes(ByteString value)
Optional. The name of the supplemental data source.
Format:
accounts/{account}/dataSources/{datasource}
string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for supplementalDataSourceName to set. |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DataSourceReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataSourceReference.Builder |