public static final class PromoteReplicaRequest.Builder extends GeneratedMessage.Builder<PromoteReplicaRequest.Builder> implements PromoteReplicaRequestOrBuilderPromoteReplicaRequest promotes a Filestore standby instance (replica).
Protobuf type google.cloud.filestore.v1.PromoteReplicaRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PromoteReplicaRequest.BuilderImplements
PromoteReplicaRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PromoteReplicaRequest build()| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest |
|
buildPartial()
public PromoteReplicaRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest |
|
clear()
public PromoteReplicaRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
|
clearName()
public PromoteReplicaRequest.Builder clearName() Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |
clearPeerInstance()
public PromoteReplicaRequest.Builder clearPeerInstance() Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PromoteReplicaRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPeerInstance()
public String getPeerInstance() Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The peerInstance. |
getPeerInstanceBytes()
public ByteString getPeerInstanceBytes() Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for peerInstance. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PromoteReplicaRequest other)
public PromoteReplicaRequest.Builder mergeFrom(PromoteReplicaRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PromoteReplicaRequest |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PromoteReplicaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PromoteReplicaRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
|
setName(String value)
public PromoteReplicaRequest.Builder setName(String value) Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public PromoteReplicaRequest.Builder setNameBytes(ByteString value) Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |
setPeerInstance(String value)
public PromoteReplicaRequest.Builder setPeerInstance(String value) Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe peerInstance to set. |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |
setPeerInstanceBytes(ByteString value)
public PromoteReplicaRequest.Builder setPeerInstanceBytes(ByteString value) Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for peerInstance to set. |
| Returns | |
|---|---|
| Type | Description |
PromoteReplicaRequest.Builder |
This builder for chaining. |