Class GetVolumeRestoreRequest.Builder (0.53.0)

public static final class GetVolumeRestoreRequest.Builder extends GeneratedMessageV3.Builder<GetVolumeRestoreRequest.Builder> implements GetVolumeRestoreRequestOrBuilder

Request message for GetVolumeRestore.

Protobuf type google.cloud.gkebackup.v1.GetVolumeRestoreRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetVolumeRestoreRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

build()

public GetVolumeRestoreRequest build()
Returns
Type Description
GetVolumeRestoreRequest

buildPartial()

public GetVolumeRestoreRequest buildPartial()
Returns
Type Description
GetVolumeRestoreRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetVolumeRestoreRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

clearName()

public GetVolumeRestoreRequest.Builder clearName()

Required. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetVolumeRestoreRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetVolumeRestoreRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

clone()

public GetVolumeRestoreRequest.Builder clone()
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

getDefaultInstanceForType()

public GetVolumeRestoreRequest getDefaultInstanceForType()
Returns
Type Description
GetVolumeRestoreRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetVolumeRestoreRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetVolumeRestoreRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetVolumeRestoreRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

setName(String value)

public GetVolumeRestoreRequest.Builder setName(String value)

Required. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetVolumeRestoreRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetVolumeRestoreRequest.Builder setNameBytes(ByteString value)

Required. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetVolumeRestoreRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetVolumeRestoreRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetVolumeRestoreRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetVolumeRestoreRequest.Builder
Overrides