Class FileInput.Builder (0.1.0)

public static final class FileInput.Builder extends GeneratedMessageV3.Builder<FileInput.Builder> implements FileInputOrBuilder

The data specific for file data sources. This field is empty for other data source inputs.

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

Implements

FileInputOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileInput build()
Returns
Type Description
FileInput

buildPartial()

public FileInput buildPartial()
Returns
Type Description
FileInput

clear()

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

clearFetchSettings()

public FileInput.Builder clearFetchSettings()

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileInputType()

public FileInput.Builder clearFileInputType()

Output only. The type of file input.

.google.shopping.merchant.datasources.v1beta.FileInput.FileInputType file_input_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileInput.Builder

This builder for chaining.

clearFileName()

public FileInput.Builder clearFileName()

Optional. The file name of the data source. Required for UPLOAD file input type.

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

Returns
Type Description
FileInput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FileInput getDefaultInstanceForType()
Returns
Type Description
FileInput

getDescriptorForType()

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

getFetchSettings()

public FileInput.FetchSettings getFetchSettings()

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput.FetchSettings

The fetchSettings.

getFetchSettingsBuilder()

public FileInput.FetchSettings.Builder getFetchSettingsBuilder()

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput.FetchSettings.Builder

getFetchSettingsOrBuilder()

public FileInput.FetchSettingsOrBuilder getFetchSettingsOrBuilder()

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput.FetchSettingsOrBuilder

getFileInputType()

public FileInput.FileInputType getFileInputType()

Output only. The type of file input.

.google.shopping.merchant.datasources.v1beta.FileInput.FileInputType file_input_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileInput.FileInputType

The fileInputType.

getFileInputTypeValue()

public int getFileInputTypeValue()

Output only. The type of file input.

.google.shopping.merchant.datasources.v1beta.FileInput.FileInputType file_input_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for fileInputType.

getFileName()

public String getFileName()

Optional. The file name of the data source. Required for UPLOAD file input type.

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

Returns
Type Description
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

Optional. The file name of the data source. Required for UPLOAD file input type.

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

Returns
Type Description
ByteString

The bytes for fileName.

hasFetchSettings()

public boolean hasFetchSettings()

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the fetchSettings field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFetchSettings(FileInput.FetchSettings value)

public FileInput.Builder mergeFetchSettings(FileInput.FetchSettings value)

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FileInput.FetchSettings
Returns
Type Description
FileInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FileInput other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFetchSettings(FileInput.FetchSettings value)

public FileInput.Builder setFetchSettings(FileInput.FetchSettings value)

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FileInput.FetchSettings
Returns
Type Description
FileInput.Builder

setFetchSettings(FileInput.FetchSettings.Builder builderForValue)

public FileInput.Builder setFetchSettings(FileInput.FetchSettings.Builder builderForValue)

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

.google.shopping.merchant.datasources.v1beta.FileInput.FetchSettings fetch_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FileInput.FetchSettings.Builder
Returns
Type Description
FileInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileInputType(FileInput.FileInputType value)

public FileInput.Builder setFileInputType(FileInput.FileInputType value)

Output only. The type of file input.

.google.shopping.merchant.datasources.v1beta.FileInput.FileInputType file_input_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileInput.FileInputType

The fileInputType to set.

Returns
Type Description
FileInput.Builder

This builder for chaining.

setFileInputTypeValue(int value)

public FileInput.Builder setFileInputTypeValue(int value)

Output only. The type of file input.

.google.shopping.merchant.datasources.v1beta.FileInput.FileInputType file_input_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for fileInputType to set.

Returns
Type Description
FileInput.Builder

This builder for chaining.

setFileName(String value)

public FileInput.Builder setFileName(String value)

Optional. The file name of the data source. Required for UPLOAD file input type.

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

Parameter
Name Description
value String

The fileName to set.

Returns
Type Description
FileInput.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

public FileInput.Builder setFileNameBytes(ByteString value)

Optional. The file name of the data source. Required for UPLOAD file input type.

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

Parameter
Name Description
value ByteString

The bytes for fileName to set.

Returns
Type Description
FileInput.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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