Class GetVolumeRestoreRequest.Builder (0.7.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetVolumeRestoreRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

build()

public GetVolumeRestoreRequest build()
Returns
TypeDescription
GetVolumeRestoreRequest

buildPartial()

public GetVolumeRestoreRequest buildPartial()
Returns
TypeDescription
GetVolumeRestoreRequest

clear()

public GetVolumeRestoreRequest.Builder clear()
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetVolumeRestoreRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetVolumeRestoreRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetVolumeRestoreRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

clone()

public GetVolumeRestoreRequest.Builder clone()
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

getDefaultInstanceForType()

public GetVolumeRestoreRequest getDefaultInstanceForType()
Returns
TypeDescription
GetVolumeRestoreRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetVolumeRestoreRequest other)

public GetVolumeRestoreRequest.Builder mergeFrom(GetVolumeRestoreRequest other)
Parameter
NameDescription
otherGetVolumeRestoreRequest
Returns
TypeDescription
GetVolumeRestoreRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetVolumeRestoreRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetVolumeRestoreRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetVolumeRestoreRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetVolumeRestoreRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetVolumeRestoreRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetVolumeRestoreRequest.Builder
Overrides