Class IngestionDataSourceSettings.CloudStorage.TextFormat.Builder (1.147.0)

public static final class IngestionDataSourceSettings.CloudStorage.TextFormat.Builder extends GeneratedMessage.Builder<IngestionDataSourceSettings.CloudStorage.TextFormat.Builder> implements IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder

Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the data field of a Pub/Sub message.

Protobuf type google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat

Static Methods

getDescriptor()

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

Methods

build()

public IngestionDataSourceSettings.CloudStorage.TextFormat build()
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat

buildPartial()

public IngestionDataSourceSettings.CloudStorage.TextFormat buildPartial()
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat

clear()

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder clear()
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder
Overrides

clearDelimiter()

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder clearDelimiter()

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder

This builder for chaining.

getDefaultInstanceForType()

public IngestionDataSourceSettings.CloudStorage.TextFormat getDefaultInstanceForType()
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat

getDelimiter()

public String getDelimiter()

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The delimiter.

getDelimiterBytes()

public ByteString getDelimiterBytes()

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for delimiter.

getDescriptorForType()

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

hasDelimiter()

public boolean hasDelimiter()

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the delimiter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder
Overrides

mergeFrom(IngestionDataSourceSettings.CloudStorage.TextFormat other)

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder mergeFrom(IngestionDataSourceSettings.CloudStorage.TextFormat other)
Parameter
Name Description
other IngestionDataSourceSettings.CloudStorage.TextFormat
Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder

setDelimiter(String value)

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder setDelimiter(String value)

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The delimiter to set.

Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder

This builder for chaining.

setDelimiterBytes(ByteString value)

public IngestionDataSourceSettings.CloudStorage.TextFormat.Builder setDelimiterBytes(ByteString value)

Optional. When unset, '\n' is used.

optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for delimiter to set.

Returns
Type Description
IngestionDataSourceSettings.CloudStorage.TextFormat.Builder

This builder for chaining.