Class InternalRange.Migration.Builder (1.82.0)

public static final class InternalRange.Migration.Builder extends GeneratedMessage.Builder<InternalRange.Migration.Builder> implements InternalRange.MigrationOrBuilder

Specification for migration with source and target resource names.

Protobuf type google.cloud.networkconnectivity.v1.InternalRange.Migration

Static Methods

getDescriptor()

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

Methods

build()

public InternalRange.Migration build()
Returns
Type Description
InternalRange.Migration

buildPartial()

public InternalRange.Migration buildPartial()
Returns
Type Description
InternalRange.Migration

clear()

public InternalRange.Migration.Builder clear()
Returns
Type Description
InternalRange.Migration.Builder
Overrides

clearSource()

public InternalRange.Migration.Builder clearSource()

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string source = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.

clearTarget()

public InternalRange.Migration.Builder clearTarget()

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string target = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.

getDefaultInstanceForType()

public InternalRange.Migration getDefaultInstanceForType()
Returns
Type Description
InternalRange.Migration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSource()

public String getSource()

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string source = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string source = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for source.

getTarget()

public String getTarget()

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string target = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string target = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for target.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InternalRange.Migration other)

public InternalRange.Migration.Builder mergeFrom(InternalRange.Migration other)
Parameter
Name Description
other InternalRange.Migration
Returns
Type Description
InternalRange.Migration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InternalRange.Migration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InternalRange.Migration.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setSource(String value)

public InternalRange.Migration.Builder setSource(String value)

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string source = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The source to set.

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public InternalRange.Migration.Builder setSourceBytes(ByteString value)

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string source = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.

setTarget(String value)

public InternalRange.Migration.Builder setTarget(String value)

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string target = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The target to set.

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public InternalRange.Migration.Builder setTargetBytes(ByteString value)

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}

string target = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for target to set.

Returns
Type Description
InternalRange.Migration.Builder

This builder for chaining.