Class LinkedVpcNetwork.Builder (1.36.0)

public static final class LinkedVpcNetwork.Builder extends GeneratedMessageV3.Builder<LinkedVpcNetwork.Builder> implements LinkedVpcNetworkOrBuilder

An existing VPC network.

Protobuf type google.cloud.networkconnectivity.v1.LinkedVpcNetwork

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllExcludeExportRanges(Iterable<String> values)

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

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

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

Parameter
NameDescription
valuesIterable<String>

The excludeExportRanges to add.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

addExcludeExportRanges(String value)

public LinkedVpcNetwork.Builder addExcludeExportRanges(String value)

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

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

Parameter
NameDescription
valueString

The excludeExportRanges to add.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

addExcludeExportRangesBytes(ByteString value)

public LinkedVpcNetwork.Builder addExcludeExportRangesBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes of the excludeExportRanges to add.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinkedVpcNetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

build()

public LinkedVpcNetwork build()
Returns
TypeDescription
LinkedVpcNetwork

buildPartial()

public LinkedVpcNetwork buildPartial()
Returns
TypeDescription
LinkedVpcNetwork

clear()

public LinkedVpcNetwork.Builder clear()
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

clearExcludeExportRanges()

public LinkedVpcNetwork.Builder clearExcludeExportRanges()

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

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

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LinkedVpcNetwork.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LinkedVpcNetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

clearUri()

public LinkedVpcNetwork.Builder clearUri()

Required. The URI of the VPC network resource.

string uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

clone()

public LinkedVpcNetwork.Builder clone()
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

getDefaultInstanceForType()

public LinkedVpcNetwork getDefaultInstanceForType()
Returns
TypeDescription
LinkedVpcNetwork

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the excludeExportRanges.

getUri()

public String getUri()

Required. The URI of the VPC network resource.

string uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI of the VPC network resource.

string uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LinkedVpcNetwork other)

public LinkedVpcNetwork.Builder mergeFrom(LinkedVpcNetwork other)
Parameter
NameDescription
otherLinkedVpcNetwork
Returns
TypeDescription
LinkedVpcNetwork.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LinkedVpcNetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LinkedVpcNetwork.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinkedVpcNetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

setExcludeExportRanges(int index, String value)

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

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

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The excludeExportRanges to set.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LinkedVpcNetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

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

public LinkedVpcNetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LinkedVpcNetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LinkedVpcNetwork.Builder
Overrides

setUri(String value)

public LinkedVpcNetwork.Builder setUri(String value)

Required. The URI of the VPC network resource.

string uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.

setUriBytes(ByteString value)

public LinkedVpcNetwork.Builder setUriBytes(ByteString value)

Required. The URI of the VPC network resource.

string uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
LinkedVpcNetwork.Builder

This builder for chaining.