Class FileInput (0.1.0)

public final class FileInput extends GeneratedMessageV3 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 Fields

FETCH_SETTINGS_FIELD_NUMBER

public static final int FETCH_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

FILE_INPUT_TYPE_FIELD_NUMBER

public static final int FILE_INPUT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

FILE_NAME_FIELD_NUMBER

public static final int FILE_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FileInput getDefaultInstance()
Returns
Type Description
FileInput

getDescriptor()

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

newBuilder()

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

newBuilder(FileInput prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public FileInput getDefaultInstanceForType()
Returns
Type Description
FileInput

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.

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 FileInput.Builder newBuilderForType()
Returns
Type Description
FileInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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