Class LinkedProducerVpcNetwork.Builder (1.54.0)

public static final class LinkedProducerVpcNetwork.Builder extends GeneratedMessageV3.Builder<LinkedProducerVpcNetwork.Builder> implements LinkedProducerVpcNetworkOrBuilder

Protobuf type google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork

Static Methods

getDescriptor()

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

Methods

addAllExcludeExportRanges(Iterable<String> values)

public LinkedProducerVpcNetwork.Builder addAllExcludeExportRanges(Iterable<String> values)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The excludeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addAllIncludeExportRanges(Iterable<String> values)

public LinkedProducerVpcNetwork.Builder addAllIncludeExportRanges(Iterable<String> values)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The includeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addExcludeExportRanges(String value)

public LinkedProducerVpcNetwork.Builder addExcludeExportRanges(String value)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The excludeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addExcludeExportRangesBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder addExcludeExportRangesBytes(ByteString value)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the excludeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addIncludeExportRanges(String value)

public LinkedProducerVpcNetwork.Builder addIncludeExportRanges(String value)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The includeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addIncludeExportRangesBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder addIncludeExportRangesBytes(ByteString value)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the includeExportRanges to add.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinkedProducerVpcNetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

build()

public LinkedProducerVpcNetwork build()
Returns
Type Description
LinkedProducerVpcNetwork

buildPartial()

public LinkedProducerVpcNetwork buildPartial()
Returns
Type Description
LinkedProducerVpcNetwork

clear()

public LinkedProducerVpcNetwork.Builder clear()
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

clearExcludeExportRanges()

public LinkedProducerVpcNetwork.Builder clearExcludeExportRanges()

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LinkedProducerVpcNetwork.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

clearIncludeExportRanges()

public LinkedProducerVpcNetwork.Builder clearIncludeExportRanges()

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clearNetwork()

public LinkedProducerVpcNetwork.Builder clearNetwork()

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.

string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LinkedProducerVpcNetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

clearPeering()

public LinkedProducerVpcNetwork.Builder clearPeering()

Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.

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

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clearProducerNetwork()

public LinkedProducerVpcNetwork.Builder clearProducerNetwork()

Output only. The URI of the Producer VPC.

string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clearServiceConsumerVpcSpoke()

public LinkedProducerVpcNetwork.Builder clearServiceConsumerVpcSpoke()

Output only. The Service Consumer Network spoke.

string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

clone()

public LinkedProducerVpcNetwork.Builder clone()
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

getDefaultInstanceForType()

public LinkedProducerVpcNetwork getDefaultInstanceForType()
Returns
Type Description
LinkedProducerVpcNetwork

getDescriptorForType()

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

getExcludeExportRanges(int index)

public String getExcludeExportRanges(int index)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludeExportRanges at the given index.

getExcludeExportRangesBytes(int index)

public ByteString getExcludeExportRangesBytes(int index)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludeExportRanges at the given index.

getExcludeExportRangesCount()

public int getExcludeExportRangesCount()

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of excludeExportRanges.

getExcludeExportRangesList()

public ProtocolStringList getExcludeExportRangesList()

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the excludeExportRanges.

getIncludeExportRanges(int index)

public String getIncludeExportRanges(int index)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The includeExportRanges at the given index.

getIncludeExportRangesBytes(int index)

public ByteString getIncludeExportRangesBytes(int index)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the includeExportRanges at the given index.

getIncludeExportRangesCount()

public int getIncludeExportRangesCount()

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of includeExportRanges.

getIncludeExportRangesList()

public ProtocolStringList getIncludeExportRangesList()

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the includeExportRanges.

getNetwork()

public String getNetwork()

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.

string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.

string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getPeering()

public String getPeering()

Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.

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

Returns
Type Description
String

The peering.

getPeeringBytes()

public ByteString getPeeringBytes()

Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.

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

Returns
Type Description
ByteString

The bytes for peering.

getProducerNetwork()

public String getProducerNetwork()

Output only. The URI of the Producer VPC.

string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The producerNetwork.

getProducerNetworkBytes()

public ByteString getProducerNetworkBytes()

Output only. The URI of the Producer VPC.

string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for producerNetwork.

getServiceConsumerVpcSpoke()

public String getServiceConsumerVpcSpoke()

Output only. The Service Consumer Network spoke.

string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceConsumerVpcSpoke.

getServiceConsumerVpcSpokeBytes()

public ByteString getServiceConsumerVpcSpokeBytes()

Output only. The Service Consumer Network spoke.

string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceConsumerVpcSpoke.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinkedProducerVpcNetwork other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinkedProducerVpcNetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

setExcludeExportRanges(int index, String value)

public LinkedProducerVpcNetwork.Builder setExcludeExportRanges(int index, String value)

Optional. IP ranges encompassing the subnets to be excluded from peering.

repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The excludeExportRanges to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LinkedProducerVpcNetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

setIncludeExportRanges(int index, String value)

public LinkedProducerVpcNetwork.Builder setIncludeExportRanges(int index, String value)

Optional. IP ranges allowed to be included from peering.

repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The includeExportRanges to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setNetwork(String value)

public LinkedProducerVpcNetwork.Builder setNetwork(String value)

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.

string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder setNetworkBytes(ByteString value)

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.

string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setPeering(String value)

public LinkedProducerVpcNetwork.Builder setPeering(String value)

Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.

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

Parameter
Name Description
value String

The peering to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setPeeringBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder setPeeringBytes(ByteString value)

Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.

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

Parameter
Name Description
value ByteString

The bytes for peering to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setProducerNetwork(String value)

public LinkedProducerVpcNetwork.Builder setProducerNetwork(String value)

Output only. The URI of the Producer VPC.

string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The producerNetwork to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setProducerNetworkBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder setProducerNetworkBytes(ByteString value)

Output only. The URI of the Producer VPC.

string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for producerNetwork to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LinkedProducerVpcNetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides

setServiceConsumerVpcSpoke(String value)

public LinkedProducerVpcNetwork.Builder setServiceConsumerVpcSpoke(String value)

Output only. The Service Consumer Network spoke.

string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceConsumerVpcSpoke to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setServiceConsumerVpcSpokeBytes(ByteString value)

public LinkedProducerVpcNetwork.Builder setServiceConsumerVpcSpokeBytes(ByteString value)

Output only. The Service Consumer Network spoke.

string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceConsumerVpcSpoke to set.

Returns
Type Description
LinkedProducerVpcNetwork.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LinkedProducerVpcNetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinkedProducerVpcNetwork.Builder
Overrides