Class CreateDataSourceRequest.Builder (0.5.0)

public static final class CreateDataSourceRequest.Builder extends GeneratedMessageV3.Builder<CreateDataSourceRequest.Builder> implements CreateDataSourceRequestOrBuilder

Request message for the CreateDataSource method.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDataSourceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

build()

public CreateDataSourceRequest build()
Returns
Type Description
CreateDataSourceRequest

buildPartial()

public CreateDataSourceRequest buildPartial()
Returns
Type Description
CreateDataSourceRequest

clear()

public CreateDataSourceRequest.Builder clear()
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

clearDataSource()

public CreateDataSourceRequest.Builder clearDataSource()

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataSourceRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateDataSourceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDataSourceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

clearParent()

public CreateDataSourceRequest.Builder clearParent()

Required. The account where this data source will be created. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDataSourceRequest.Builder

This builder for chaining.

clone()

public CreateDataSourceRequest.Builder clone()
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

getDataSource()

public DataSource getDataSource()

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource

The dataSource.

getDataSourceBuilder()

public DataSource.Builder getDataSourceBuilder()

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

getDataSourceOrBuilder()

public DataSourceOrBuilder getDataSourceOrBuilder()

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSourceOrBuilder

getDefaultInstanceForType()

public CreateDataSourceRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataSourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The account where this data source will be created. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account where this data source will be created. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDataSource()

public boolean hasDataSource()

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataSource(DataSource value)

public CreateDataSourceRequest.Builder mergeDataSource(DataSource value)

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataSource
Returns
Type Description
CreateDataSourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDataSourceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateDataSourceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

mergeFrom(CreateDataSourceRequest other)

public CreateDataSourceRequest.Builder mergeFrom(CreateDataSourceRequest other)
Parameter
Name Description
other CreateDataSourceRequest
Returns
Type Description
CreateDataSourceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataSourceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

setDataSource(DataSource value)

public CreateDataSourceRequest.Builder setDataSource(DataSource value)

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataSource
Returns
Type Description
CreateDataSourceRequest.Builder

setDataSource(DataSource.Builder builderForValue)

public CreateDataSourceRequest.Builder setDataSource(DataSource.Builder builderForValue)

Required. The data source to create.

.google.shopping.merchant.datasources.v1beta.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataSource.Builder
Returns
Type Description
CreateDataSourceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDataSourceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

setParent(String value)

public CreateDataSourceRequest.Builder setParent(String value)

Required. The account where this data source will be created. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataSourceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataSourceRequest.Builder setParentBytes(ByteString value)

Required. The account where this data source will be created. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataSourceRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateDataSourceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataSourceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataSourceRequest.Builder
Overrides