public static final class CreateVolumeSnapshotRequest.Builder extends GeneratedMessageV3.Builder<CreateVolumeSnapshotRequest.Builder> implements CreateVolumeSnapshotRequestOrBuilder
Message for creating a volume snapshot.
Protobuf type google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateVolumeSnapshotRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateVolumeSnapshotRequest build()
public CreateVolumeSnapshotRequest buildPartial()
public CreateVolumeSnapshotRequest.Builder clear()
Overrides
public CreateVolumeSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateVolumeSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CreateVolumeSnapshotRequest.Builder clearParent()
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateVolumeSnapshotRequest.Builder clearVolumeSnapshot()
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateVolumeSnapshotRequest.Builder clone()
Overrides
public CreateVolumeSnapshotRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getParent()
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The parent.
|
public ByteString getParentBytes()
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for parent.
|
public VolumeSnapshot getVolumeSnapshot()
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public VolumeSnapshot.Builder getVolumeSnapshotBuilder()
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public VolumeSnapshotOrBuilder getVolumeSnapshotOrBuilder()
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean hasVolumeSnapshot()
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the volumeSnapshot field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateVolumeSnapshotRequest.Builder mergeFrom(CreateVolumeSnapshotRequest other)
public CreateVolumeSnapshotRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateVolumeSnapshotRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final CreateVolumeSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateVolumeSnapshotRequest.Builder mergeVolumeSnapshot(VolumeSnapshot value)
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateVolumeSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateVolumeSnapshotRequest.Builder setParent(String value)
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The parent to set.
|
public CreateVolumeSnapshotRequest.Builder setParentBytes(ByteString value)
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for parent to set.
|
public CreateVolumeSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CreateVolumeSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot value)
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot.Builder builderForValue)
Required. The snapshot to create.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];