Class GcsRepositorySnapshotMetadata.Builder (0.98.0)

public static final class GcsRepositorySnapshotMetadata.Builder extends GeneratedMessage.Builder<GcsRepositorySnapshotMetadata.Builder> implements GcsRepositorySnapshotMetadataOrBuilder

Metadata about a repository snapshot stored in Google Cloud Storage.

Protobuf type google.cloud.dataform.v1.GcsRepositorySnapshotMetadata

Static Methods

getDescriptor()

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

Methods

build()

public GcsRepositorySnapshotMetadata build()
Returns
Type Description
GcsRepositorySnapshotMetadata

buildPartial()

public GcsRepositorySnapshotMetadata buildPartial()
Returns
Type Description
GcsRepositorySnapshotMetadata

clear()

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

clearCrc32CChecksum()

public GcsRepositorySnapshotMetadata.Builder clearCrc32CChecksum()

Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.

string crc32c_checksum = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

clearGeneration()

public GcsRepositorySnapshotMetadata.Builder clearGeneration()

Output only. The generation number of the Cloud Storage object. See https://cloud.google.com/storage/docs/metadata#generation-number.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

clearRepositorySnapshotUri()

public GcsRepositorySnapshotMetadata.Builder clearRepositorySnapshotUri()

Output only. The Google Cloud Storage URI of the repository snapshot.

string repository_snapshot_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

getCrc32CChecksum()

public String getCrc32CChecksum()

Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.

string crc32c_checksum = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The crc32cChecksum.

getCrc32CChecksumBytes()

public ByteString getCrc32CChecksumBytes()

Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.

string crc32c_checksum = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for crc32cChecksum.

getDefaultInstanceForType()

public GcsRepositorySnapshotMetadata getDefaultInstanceForType()
Returns
Type Description
GcsRepositorySnapshotMetadata

getDescriptorForType()

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

getGeneration()

public long getGeneration()

Output only. The generation number of the Cloud Storage object. See https://cloud.google.com/storage/docs/metadata#generation-number.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The generation.

getRepositorySnapshotUri()

public String getRepositorySnapshotUri()

Output only. The Google Cloud Storage URI of the repository snapshot.

string repository_snapshot_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The repositorySnapshotUri.

getRepositorySnapshotUriBytes()

public ByteString getRepositorySnapshotUriBytes()

Output only. The Google Cloud Storage URI of the repository snapshot.

string repository_snapshot_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for repositorySnapshotUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcsRepositorySnapshotMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCrc32CChecksum(String value)

public GcsRepositorySnapshotMetadata.Builder setCrc32CChecksum(String value)

Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.

string crc32c_checksum = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The crc32cChecksum to set.

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

setCrc32CChecksumBytes(ByteString value)

public GcsRepositorySnapshotMetadata.Builder setCrc32CChecksumBytes(ByteString value)

Output only. The crc32c checksum of the repository snapshot, big-endian base64 encoded.

string crc32c_checksum = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for crc32cChecksum to set.

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

setGeneration(long value)

public GcsRepositorySnapshotMetadata.Builder setGeneration(long value)

Output only. The generation number of the Cloud Storage object. See https://cloud.google.com/storage/docs/metadata#generation-number.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The generation to set.

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

setRepositorySnapshotUri(String value)

public GcsRepositorySnapshotMetadata.Builder setRepositorySnapshotUri(String value)

Output only. The Google Cloud Storage URI of the repository snapshot.

string repository_snapshot_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The repositorySnapshotUri to set.

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.

setRepositorySnapshotUriBytes(ByteString value)

public GcsRepositorySnapshotMetadata.Builder setRepositorySnapshotUriBytes(ByteString value)

Output only. The Google Cloud Storage URI of the repository snapshot.

string repository_snapshot_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for repositorySnapshotUri to set.

Returns
Type Description
GcsRepositorySnapshotMetadata.Builder

This builder for chaining.