public static final class RestoreParameters.Builder extends GeneratedMessageV3.Builder<RestoreParameters.Builder> implements RestoreParametersOrBuilder
The RestoreParameters if volume is created from a snapshot or backup.
Protobuf type google.cloud.netapp.v1beta1.RestoreParameters
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RestoreParameters.BuilderImplements
RestoreParametersOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RestoreParameters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
build()
public RestoreParameters build()
Returns | |
---|---|
Type | Description |
RestoreParameters |
buildPartial()
public RestoreParameters buildPartial()
Returns | |
---|---|
Type | Description |
RestoreParameters |
clear()
public RestoreParameters.Builder clear()
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
clearField(Descriptors.FieldDescriptor field)
public RestoreParameters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public RestoreParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
clearSource()
public RestoreParameters.Builder clearSource()
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
clearSourceSnapshot()
public RestoreParameters.Builder clearSourceSnapshot()
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder | This builder for chaining. |
clone()
public RestoreParameters.Builder clone()
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
getDefaultInstanceForType()
public RestoreParameters getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
RestoreParameters |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getSourceCase()
public RestoreParameters.SourceCase getSourceCase()
Returns | |
---|---|
Type | Description |
RestoreParameters.SourceCase |
getSourceSnapshot()
public String getSourceSnapshot()
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Returns | |
---|---|
Type | Description |
String | The sourceSnapshot. |
getSourceSnapshotBytes()
public ByteString getSourceSnapshotBytes()
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for sourceSnapshot. |
hasSourceSnapshot()
public boolean hasSourceSnapshot()
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the sourceSnapshot field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(RestoreParameters other)
public RestoreParameters.Builder mergeFrom(RestoreParameters other)
Parameter | |
---|---|
Name | Description |
other | RestoreParameters |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public RestoreParameters.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestoreParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public RestoreParameters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RestoreParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |
setSourceSnapshot(String value)
public RestoreParameters.Builder setSourceSnapshot(String value)
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Parameter | |
---|---|
Name | Description |
value | String The sourceSnapshot to set. |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder | This builder for chaining. |
setSourceSnapshotBytes(ByteString value)
public RestoreParameters.Builder setSourceSnapshotBytes(ByteString value)
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for sourceSnapshot to set. |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RestoreParameters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RestoreParameters.Builder |