Class ParameterVersionPayload.Builder (0.43.0)

public static final class ParameterVersionPayload.Builder extends GeneratedMessage.Builder<ParameterVersionPayload.Builder> implements ParameterVersionPayloadOrBuilder

Message for storing a ParameterVersion resource's payload data

Protobuf type google.cloud.parametermanager.v1.ParameterVersionPayload

Static Methods

getDescriptor()

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

Methods

build()

public ParameterVersionPayload build()
Returns
Type Description
ParameterVersionPayload

buildPartial()

public ParameterVersionPayload buildPartial()
Returns
Type Description
ParameterVersionPayload

clear()

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

clearData()

public ParameterVersionPayload.Builder clearData()

Required. bytes data for storing payload.

bytes data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ParameterVersionPayload.Builder

This builder for chaining.

clearDataCrc32C()

public ParameterVersionPayload.Builder clearDataCrc32C()

Optional. [Optional] The integrity checksum of the payload. If provided, the server will verify that the checksum matches the payload. If not provided, the server will generate the checksum.

optional int64 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterVersionPayload.Builder

This builder for chaining.

getData()

public ByteString getData()

Required. bytes data for storing payload.

bytes data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The data.

getDataCrc32C()

public long getDataCrc32C()

Optional. [Optional] The integrity checksum of the payload. If provided, the server will verify that the checksum matches the payload. If not provided, the server will generate the checksum.

optional int64 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The dataCrc32c.

getDefaultInstanceForType()

public ParameterVersionPayload getDefaultInstanceForType()
Returns
Type Description
ParameterVersionPayload

getDescriptorForType()

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

hasDataCrc32C()

public boolean hasDataCrc32C()

Optional. [Optional] The integrity checksum of the payload. If provided, the server will verify that the checksum matches the payload. If not provided, the server will generate the checksum.

optional int64 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dataCrc32c field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ParameterVersionPayload other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(ByteString value)

public ParameterVersionPayload.Builder setData(ByteString value)

Required. bytes data for storing payload.

bytes data = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
ParameterVersionPayload.Builder

This builder for chaining.

setDataCrc32C(long value)

public ParameterVersionPayload.Builder setDataCrc32C(long value)

Optional. [Optional] The integrity checksum of the payload. If provided, the server will verify that the checksum matches the payload. If not provided, the server will generate the checksum.

optional int64 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The dataCrc32c to set.

Returns
Type Description
ParameterVersionPayload.Builder

This builder for chaining.