public sealed class GcsDestinationConfig : IMessage<GcsDestinationConfig>, IEquatable<GcsDestinationConfig>, IDeepCloneable<GcsDestinationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the DataStream v1alpha1 API class GcsDestinationConfig.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGcsDestinationConfig\u003c/code\u003e class is a part of the DataStream v1alpha1 API, designed for configuring Google Cloud Storage as a destination.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows setting up file formats such as Avro or JSON, along with properties like \u003ccode\u003eFileRotationInterval\u003c/code\u003e and \u003ccode\u003eFileRotationMb\u003c/code\u003e to manage file handling in Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGcsDestinationConfig\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it a versatile component in data stream operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating instances, including one that copies from an existing \u003ccode\u003eGcsDestinationConfig\u003c/code\u003e, and properties for setting file formats and the output path in the cloud storage bucket.\u003c/p\u003e\n"],["\u003cp\u003eThere is an obsolete \u003ccode\u003eGcsFileFormat\u003c/code\u003e property, which has been replaced by the \u003ccode\u003eFileFormatCase\u003c/code\u003e property, demonstrating a version update within the API.\u003c/p\u003e\n"]]],[],null,["# DataStream v1alpha1 API - Class GcsDestinationConfig (2.0.0-alpha05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-alpha05 (latest)](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig)\n- [2.0.0-alpha04](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/2.0.0-alpha04/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/1.0.0-beta02/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig) \n\n public sealed class GcsDestinationConfig : IMessage\u003cGcsDestinationConfig\u003e, IEquatable\u003cGcsDestinationConfig\u003e, IDeepCloneable\u003cGcsDestinationConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the DataStream v1alpha1 API class GcsDestinationConfig.\n\nGoogle Cloud Storage destination configuration \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GcsDestinationConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GcsDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GcsDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GcsDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.GcsDestinationConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Datastream.V1Alpha1](/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastream.V1Alpha1.dll\n\nConstructors\n------------\n\n### GcsDestinationConfig()\n\n public GcsDestinationConfig()\n\n### GcsDestinationConfig(GcsDestinationConfig)\n\n public GcsDestinationConfig(GcsDestinationConfig other)\n\nProperties\n----------\n\n### AvroFileFormat\n\n public AvroFileFormat AvroFileFormat { get; set; }\n\nAVRO file format configuration.\n\n### FileFormatCase\n\n public GcsDestinationConfig.FileFormatOneofCase FileFormatCase { get; }\n\n### FileRotationInterval\n\n public Duration FileRotationInterval { get; set; }\n\nThe maximum duration for which new events are added before a file is\nclosed and a new file is created.\n\n### FileRotationMb\n\n public int FileRotationMb { get; set; }\n\nThe maximum file size to be saved in the bucket.\n\n### GcsFileFormat\n\n [Obsolete]\n public GcsFileFormat GcsFileFormat { get; set; }\n\nFile format that data should be written in.\nDeprecated field - use file_format instead.\n\n### JsonFileFormat\n\n public JsonFileFormat JsonFileFormat { get; set; }\n\nJSON file format configuration.\n\n### Path\n\n public string Path { get; set; }\n\nPath inside the Cloud Storage bucket to write data to."]]