Class GetVolumeSnapshotRequest.Builder (0.32.0)

public static final class GetVolumeSnapshotRequest.Builder extends GeneratedMessageV3.Builder<GetVolumeSnapshotRequest.Builder> implements GetVolumeSnapshotRequestOrBuilder

Message for requesting volume snapshot information.

Protobuf type google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetVolumeSnapshotRequest build()
Returns
TypeDescription
GetVolumeSnapshotRequest

buildPartial()

public GetVolumeSnapshotRequest buildPartial()
Returns
TypeDescription
GetVolumeSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetVolumeSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetVolumeSnapshotRequest.Builder
Overrides

clearName()

public GetVolumeSnapshotRequest.Builder clearName()

Required. The name of the snapshot.

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

Returns
TypeDescription
GetVolumeSnapshotRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetVolumeSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
GetVolumeSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the snapshot.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the snapshot.

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(GetVolumeSnapshotRequest other)

public GetVolumeSnapshotRequest.Builder mergeFrom(GetVolumeSnapshotRequest other)
Parameter
NameDescription
otherGetVolumeSnapshotRequest
Returns
TypeDescription
GetVolumeSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetVolumeSnapshotRequest.Builder setName(String value)

Required. The name of the snapshot.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetVolumeSnapshotRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetVolumeSnapshotRequest.Builder setNameBytes(ByteString value)

Required. The name of the snapshot.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetVolumeSnapshotRequest.Builder

This builder for chaining.

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

public GetVolumeSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetVolumeSnapshotRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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