public static final class SelfManagedSource.Builder extends GeneratedMessage.Builder<SelfManagedSource.Builder> implements SelfManagedSourceOrBuilderDetails of the self-managed source instance.
Protobuf type google.cloud.memorystore.v1.SelfManagedSource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SelfManagedSource.BuilderImplements
SelfManagedSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SelfManagedSource build()| Returns | |
|---|---|
| Type | Description |
SelfManagedSource |
|
buildPartial()
public SelfManagedSource buildPartial()| Returns | |
|---|---|
| Type | Description |
SelfManagedSource |
|
clear()
public SelfManagedSource.Builder clear()| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
|
clearIpAddress()
public SelfManagedSource.Builder clearIpAddress()Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
clearNetworkAttachment()
public SelfManagedSource.Builder clearNetworkAttachment()Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
clearPort()
public SelfManagedSource.Builder clearPort()Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SelfManagedSource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SelfManagedSource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIpAddress()
public String getIpAddress()Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The ipAddress. |
getIpAddressBytes()
public ByteString getIpAddressBytes()Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ipAddress. |
getNetworkAttachment()
public String getNetworkAttachment()Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The networkAttachment. |
getNetworkAttachmentBytes()
public ByteString getNetworkAttachmentBytes()Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for networkAttachment. |
getPort()
public int getPort()Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The port. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SelfManagedSource other)
public SelfManagedSource.Builder mergeFrom(SelfManagedSource other)| Parameter | |
|---|---|
| Name | Description |
other |
SelfManagedSource |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SelfManagedSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SelfManagedSource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
|
setIpAddress(String value)
public SelfManagedSource.Builder setIpAddress(String value)Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ipAddress to set. |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
setIpAddressBytes(ByteString value)
public SelfManagedSource.Builder setIpAddressBytes(ByteString value)Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ipAddress to set. |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
setNetworkAttachment(String value)
public SelfManagedSource.Builder setNetworkAttachment(String value)Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe networkAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
setNetworkAttachmentBytes(ByteString value)
public SelfManagedSource.Builder setNetworkAttachmentBytes(ByteString value)Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for networkAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |
setPort(int value)
public SelfManagedSource.Builder setPort(int value)Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe port to set. |
| Returns | |
|---|---|
| Type | Description |
SelfManagedSource.Builder |
This builder for chaining. |