Class SelfManagedSource (0.41.0)

public final class SelfManagedSource extends GeneratedMessage implements SelfManagedSourceOrBuilder

Details of the self-managed source instance.

Protobuf type google.cloud.memorystore.v1.SelfManagedSource

Static Fields

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_ATTACHMENT_FIELD_NUMBER

public static final int NETWORK_ATTACHMENT_FIELD_NUMBER
Field Value
Type Description
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SelfManagedSource getDefaultInstance()
Returns
Type Description
SelfManagedSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SelfManagedSource.Builder newBuilder()
Returns
Type Description
SelfManagedSource.Builder

newBuilder(SelfManagedSource prototype)

public static SelfManagedSource.Builder newBuilder(SelfManagedSource prototype)
Parameter
Name Description
prototype SelfManagedSource
Returns
Type Description
SelfManagedSource.Builder

parseDelimitedFrom(InputStream input)

public static SelfManagedSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SelfManagedSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SelfManagedSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SelfManagedSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SelfManagedSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SelfManagedSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SelfManagedSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelfManagedSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SelfManagedSource> parser()
Returns
Type Description
Parser<SelfManagedSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SelfManagedSource getDefaultInstanceForType()
Returns
Type Description
SelfManagedSource

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.

getParserForType()

public Parser<SelfManagedSource> getParserForType()
Returns
Type Description
Parser<SelfManagedSource>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SelfManagedSource.Builder newBuilderForType()
Returns
Type Description
SelfManagedSource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SelfManagedSource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SelfManagedSource.Builder
Overrides

toBuilder()

public SelfManagedSource.Builder toBuilder()
Returns
Type Description
SelfManagedSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException