Class GcsDestinationConfig.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GcsDestinationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

build()

public GcsDestinationConfig build()
Returns
TypeDescription
GcsDestinationConfig

buildPartial()

public GcsDestinationConfig buildPartial()
Returns
TypeDescription
GcsDestinationConfig

clear()

public GcsDestinationConfig.Builder clear()
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

clearAvroFileFormat()

public GcsDestinationConfig.Builder clearAvroFileFormat()

AVRO file format configuration.

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

Returns
TypeDescription
GcsDestinationConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GcsDestinationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

clearFileFormat()

public GcsDestinationConfig.Builder clearFileFormat()
Returns
TypeDescription
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
TypeDescription
GcsDestinationConfig.Builder

clearFileRotationMb()

public GcsDestinationConfig.Builder clearFileRotationMb()

The maximum file size to be saved in the bucket.

int32 file_rotation_mb = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GcsDestinationConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GcsDestinationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

clearPath()

public GcsDestinationConfig.Builder clearPath()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
TypeDescription
GcsDestinationConfig.Builder

This builder for chaining.

clone()

public GcsDestinationConfig.Builder clone()
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

getAvroFileFormat()

public AvroFileFormat getAvroFileFormat()

AVRO file format configuration.

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

Returns
TypeDescription
AvroFileFormat

The avroFileFormat.

getAvroFileFormatBuilder()

public AvroFileFormat.Builder getAvroFileFormatBuilder()

AVRO file format configuration.

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

Returns
TypeDescription
AvroFileFormat.Builder

getAvroFileFormatOrBuilder()

public AvroFileFormatOrBuilder getAvroFileFormatOrBuilder()

AVRO file format configuration.

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

Returns
TypeDescription
AvroFileFormatOrBuilder

getDefaultInstanceForType()

public GcsDestinationConfig getDefaultInstanceForType()
Returns
TypeDescription
GcsDestinationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileFormatCase()

public GcsDestinationConfig.FileFormatCase getFileFormatCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getFileRotationMb()

public int getFileRotationMb()

The maximum file size to be saved in the bucket.

int32 file_rotation_mb = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
JsonFileFormat

The jsonFileFormat.

getJsonFileFormatBuilder()

public JsonFileFormat.Builder getJsonFileFormatBuilder()

JSON file format configuration.

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

Returns
TypeDescription
JsonFileFormat.Builder

getJsonFileFormatOrBuilder()

public JsonFileFormatOrBuilder getJsonFileFormatOrBuilder()

JSON file format configuration.

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

Returns
TypeDescription
JsonFileFormatOrBuilder

getPath()

public String getPath()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path inside the Cloud Storage bucket to write data to.

string path = 1;

Returns
TypeDescription
ByteString

The bytes for path.

hasAvroFileFormat()

public boolean hasAvroFileFormat()

AVRO file format configuration.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the jsonFileFormat field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAvroFileFormat
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
GcsDestinationConfig.Builder

mergeFrom(GcsDestinationConfig other)

public GcsDestinationConfig.Builder mergeFrom(GcsDestinationConfig other)
Parameter
NameDescription
otherGcsDestinationConfig
Returns
TypeDescription
GcsDestinationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GcsDestinationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GcsDestinationConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueJsonFileFormat
Returns
TypeDescription
GcsDestinationConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GcsDestinationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAvroFileFormat
Returns
TypeDescription
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
NameDescription
builderForValueAvroFileFormat.Builder
Returns
TypeDescription
GcsDestinationConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GcsDestinationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

The fileRotationMb to set.

Returns
TypeDescription
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
NameDescription
valueGcsFileFormat

The gcsFileFormat to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueJsonFileFormat
Returns
TypeDescription
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
NameDescription
builderForValueJsonFileFormat.Builder
Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GcsDestinationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides