Class SelfManagedSource.Builder (0.41.0)

public static final class SelfManagedSource.Builder extends GeneratedMessage.Builder<SelfManagedSource.Builder> implements SelfManagedSourceOrBuilder

Details of the self-managed source instance.

Protobuf type google.cloud.memorystore.v1beta.SelfManagedSource

Static 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
Overrides

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:

  1. It must be in the same project as the Memorystore instance.
  2. It must be in the same region as the Memorystore instance.
  3. 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
Overrides

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:

  1. It must be in the same project as the Memorystore instance.
  2. It must be in the same region as the Memorystore instance.
  3. 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:

  1. It must be in the same project as the Memorystore instance.
  2. It must be in the same region as the Memorystore instance.
  3. 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SelfManagedSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SelfManagedSource.Builder
Overrides

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 String

The 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 ByteString

The 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:

  1. It must be in the same project as the Memorystore instance.
  2. It must be in the same region as the Memorystore instance.
  3. 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 String

The 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:

  1. It must be in the same project as the Memorystore instance.
  2. It must be in the same region as the Memorystore instance.
  3. 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 ByteString

The 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 int

The port to set.

Returns
Type Description
SelfManagedSource.Builder

This builder for chaining.