Class GcsDestinationConfig (1.13.0)

public final class GcsDestinationConfig extends GeneratedMessageV3 implements GcsDestinationConfigOrBuilder

Google Cloud Storage destination configuration

Protobuf type google.cloud.datastream.v1alpha1.GcsDestinationConfig

Static Fields

AVRO_FILE_FORMAT_FIELD_NUMBER

public static final int AVRO_FILE_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_ROTATION_INTERVAL_FIELD_NUMBER

public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_ROTATION_MB_FIELD_NUMBER

public static final int FILE_ROTATION_MB_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_FILE_FORMAT_FIELD_NUMBER

public static final int GCS_FILE_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

JSON_FILE_FORMAT_FIELD_NUMBER

public static final int JSON_FILE_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GcsDestinationConfig getDefaultInstance()
Returns
TypeDescription
GcsDestinationConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GcsDestinationConfig.Builder newBuilder()
Returns
TypeDescription
GcsDestinationConfig.Builder

newBuilder(GcsDestinationConfig prototype)

public static GcsDestinationConfig.Builder newBuilder(GcsDestinationConfig prototype)
Parameter
NameDescription
prototypeGcsDestinationConfig
Returns
TypeDescription
GcsDestinationConfig.Builder

parseDelimitedFrom(InputStream input)

public static GcsDestinationConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GcsDestinationConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GcsDestinationConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GcsDestinationConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GcsDestinationConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GcsDestinationConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GcsDestinationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsDestinationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GcsDestinationConfig> parser()
Returns
TypeDescription
Parser<GcsDestinationConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAvroFileFormat()

public AvroFileFormat getAvroFileFormat()

AVRO file format configuration.

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

Returns
TypeDescription
AvroFileFormat

The avroFileFormat.

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

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.

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.

getJsonFileFormatOrBuilder()

public JsonFileFormatOrBuilder getJsonFileFormatOrBuilder()

JSON file format configuration.

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

Returns
TypeDescription
JsonFileFormatOrBuilder

getParserForType()

public Parser<GcsDestinationConfig> getParserForType()
Returns
TypeDescription
Parser<GcsDestinationConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GcsDestinationConfig.Builder newBuilderForType()
Returns
TypeDescription
GcsDestinationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GcsDestinationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GcsDestinationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GcsDestinationConfig.Builder toBuilder()
Returns
TypeDescription
GcsDestinationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException