Class GcsDestinationConfig.Builder (1.53.0)

public static final class GcsDestinationConfig.Builder extends GeneratedMessageV3.Builder<GcsDestinationConfig.Builder> implements GcsDestinationConfigOrBuilder

Google Cloud Storage destination configuration

Protobuf type google.cloud.datastream.v1alpha1.GcsDestinationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GcsDestinationConfig build()
Returns
Type Description
GcsDestinationConfig

buildPartial()

public GcsDestinationConfig buildPartial()
Returns
Type Description
GcsDestinationConfig

clear()

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

clearAvroFileFormat()

public GcsDestinationConfig.Builder clearAvroFileFormat()

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Returns
Type Description
GcsDestinationConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileFormat()

public GcsDestinationConfig.Builder clearFileFormat()
Returns
Type Description
GcsDestinationConfig.Builder

clearFileRotationInterval()

public GcsDestinationConfig.Builder clearFileRotationInterval()

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Returns
Type Description
GcsDestinationConfig.Builder

clearFileRotationMb()

public GcsDestinationConfig.Builder clearFileRotationMb()

The maximum file size to be saved in the bucket.

int32 file_rotation_mb = 3;

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

clearGcsFileFormat() (deprecated)

public GcsDestinationConfig.Builder clearGcsFileFormat()

Deprecated. google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476

File format that data should be written in. Deprecated field - use file_format instead.

.google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

clearJsonFileFormat()

public GcsDestinationConfig.Builder clearJsonFileFormat()

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Returns
Type Description
GcsDestinationConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public GcsDestinationConfig.Builder clearPath()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

clone()

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

getAvroFileFormat()

public AvroFileFormat getAvroFileFormat()

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Returns
Type Description
AvroFileFormat

The avroFileFormat.

getAvroFileFormatBuilder()

public AvroFileFormat.Builder getAvroFileFormatBuilder()

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Returns
Type Description
AvroFileFormat.Builder

getAvroFileFormatOrBuilder()

public AvroFileFormatOrBuilder getAvroFileFormatOrBuilder()

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Returns
Type Description
AvroFileFormatOrBuilder

getDefaultInstanceForType()

public GcsDestinationConfig getDefaultInstanceForType()
Returns
Type Description
GcsDestinationConfig

getDescriptorForType()

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

getFileFormatCase()

public GcsDestinationConfig.FileFormatCase getFileFormatCase()
Returns
Type Description
GcsDestinationConfig.FileFormatCase

getFileRotationInterval()

public Duration getFileRotationInterval()

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Returns
Type Description
Duration

The fileRotationInterval.

getFileRotationIntervalBuilder()

public Duration.Builder getFileRotationIntervalBuilder()

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Returns
Type Description
Builder

getFileRotationIntervalOrBuilder()

public DurationOrBuilder getFileRotationIntervalOrBuilder()

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Returns
Type Description
DurationOrBuilder

getFileRotationMb()

public int getFileRotationMb()

The maximum file size to be saved in the bucket.

int32 file_rotation_mb = 3;

Returns
Type Description
int

The fileRotationMb.

getGcsFileFormat() (deprecated)

public GcsFileFormat getGcsFileFormat()

Deprecated. google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476

File format that data should be written in. Deprecated field - use file_format instead.

.google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];

Returns
Type Description
GcsFileFormat

The gcsFileFormat.

getGcsFileFormatValue() (deprecated)

public int getGcsFileFormatValue()

Deprecated. google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476

File format that data should be written in. Deprecated field - use file_format instead.

.google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for gcsFileFormat.

getJsonFileFormat()

public JsonFileFormat getJsonFileFormat()

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Returns
Type Description
JsonFileFormat

The jsonFileFormat.

getJsonFileFormatBuilder()

public JsonFileFormat.Builder getJsonFileFormatBuilder()

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Returns
Type Description
JsonFileFormat.Builder

getJsonFileFormatOrBuilder()

public JsonFileFormatOrBuilder getJsonFileFormatOrBuilder()

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Returns
Type Description
JsonFileFormatOrBuilder

getPath()

public String getPath()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

hasAvroFileFormat()

public boolean hasAvroFileFormat()

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Returns
Type Description
boolean

Whether the avroFileFormat field is set.

hasFileRotationInterval()

public boolean hasFileRotationInterval()

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Returns
Type Description
boolean

Whether the fileRotationInterval field is set.

hasJsonFileFormat()

public boolean hasJsonFileFormat()

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Returns
Type Description
boolean

Whether the jsonFileFormat field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAvroFileFormat(AvroFileFormat value)

public GcsDestinationConfig.Builder mergeAvroFileFormat(AvroFileFormat value)

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Parameter
Name Description
value AvroFileFormat
Returns
Type Description
GcsDestinationConfig.Builder

mergeFileRotationInterval(Duration value)

public GcsDestinationConfig.Builder mergeFileRotationInterval(Duration value)

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Parameter
Name Description
value Duration
Returns
Type Description
GcsDestinationConfig.Builder

mergeFrom(GcsDestinationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJsonFileFormat(JsonFileFormat value)

public GcsDestinationConfig.Builder mergeJsonFileFormat(JsonFileFormat value)

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Parameter
Name Description
value JsonFileFormat
Returns
Type Description
GcsDestinationConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAvroFileFormat(AvroFileFormat value)

public GcsDestinationConfig.Builder setAvroFileFormat(AvroFileFormat value)

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Parameter
Name Description
value AvroFileFormat
Returns
Type Description
GcsDestinationConfig.Builder

setAvroFileFormat(AvroFileFormat.Builder builderForValue)

public GcsDestinationConfig.Builder setAvroFileFormat(AvroFileFormat.Builder builderForValue)

AVRO file format configuration.

.google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;

Parameter
Name Description
builderForValue AvroFileFormat.Builder
Returns
Type Description
GcsDestinationConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileRotationInterval(Duration value)

public GcsDestinationConfig.Builder setFileRotationInterval(Duration value)

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Parameter
Name Description
value Duration
Returns
Type Description
GcsDestinationConfig.Builder

setFileRotationInterval(Duration.Builder builderForValue)

public GcsDestinationConfig.Builder setFileRotationInterval(Duration.Builder builderForValue)

The maximum duration for which new events are added before a file is closed and a new file is created.

.google.protobuf.Duration file_rotation_interval = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GcsDestinationConfig.Builder

setFileRotationMb(int value)

public GcsDestinationConfig.Builder setFileRotationMb(int value)

The maximum file size to be saved in the bucket.

int32 file_rotation_mb = 3;

Parameter
Name Description
value int

The fileRotationMb to set.

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

setGcsFileFormat(GcsFileFormat value) (deprecated)

public GcsDestinationConfig.Builder setGcsFileFormat(GcsFileFormat value)

Deprecated. google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476

File format that data should be written in. Deprecated field - use file_format instead.

.google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];

Parameter
Name Description
value GcsFileFormat

The gcsFileFormat to set.

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

setGcsFileFormatValue(int value) (deprecated)

public GcsDestinationConfig.Builder setGcsFileFormatValue(int value)

Deprecated. google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476

File format that data should be written in. Deprecated field - use file_format instead.

.google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];

Parameter
Name Description
value int

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

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

setJsonFileFormat(JsonFileFormat value)

public GcsDestinationConfig.Builder setJsonFileFormat(JsonFileFormat value)

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Parameter
Name Description
value JsonFileFormat
Returns
Type Description
GcsDestinationConfig.Builder

setJsonFileFormat(JsonFileFormat.Builder builderForValue)

public GcsDestinationConfig.Builder setJsonFileFormat(JsonFileFormat.Builder builderForValue)

JSON file format configuration.

.google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;

Parameter
Name Description
builderForValue JsonFileFormat.Builder
Returns
Type Description
GcsDestinationConfig.Builder

setPath(String value)

public GcsDestinationConfig.Builder setPath(String value)

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

setPathBytes(ByteString value)

public GcsDestinationConfig.Builder setPathBytes(ByteString value)

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
GcsDestinationConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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