Class UsableSubnetwork.Builder (1.7.2)

public static final class UsableSubnetwork.Builder extends GeneratedMessageV3.Builder<UsableSubnetwork.Builder> implements UsableSubnetworkOrBuilder

Subnetwork which the current user has compute.subnetworks.use permission on.

Protobuf type google.cloud.compute.v1.UsableSubnetwork

Static Methods

getDescriptor()

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

Methods

addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)

public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRange>
Returns
TypeDescription
UsableSubnetwork.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
UsableSubnetwork.Builder

addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
UsableSubnetwork.Builder

addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameters
NameDescription
indexint
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
UsableSubnetwork.Builder

addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameters
NameDescription
indexint
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
UsableSubnetwork.Builder

addSecondaryIpRangesBuilder()

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

addSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

build()

public UsableSubnetwork build()
Returns
TypeDescription
UsableSubnetwork

buildPartial()

public UsableSubnetwork buildPartial()
Returns
TypeDescription
UsableSubnetwork

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIpCidrRange()

public UsableSubnetwork.Builder clearIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

clearNetwork()

public UsableSubnetwork.Builder clearNetwork()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecondaryIpRanges()

public UsableSubnetwork.Builder clearSecondaryIpRanges()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
UsableSubnetwork.Builder

clearSubnetwork()

public UsableSubnetwork.Builder clearSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
TypeDescription
UsableSubnetwork

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpCidrRange()

public String getIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

getNetwork()

public String getNetwork()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
ByteString

The bytes for network.

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange

getSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

getSecondaryIpRangesBuilderList()

public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
List<Builder>

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRangeOrBuilder>

getSubnetwork()

public String getSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

hasIpCidrRange()

public boolean hasIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
boolean

Whether the ipCidrRange field is set.

hasNetwork()

public boolean hasNetwork()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
boolean

Whether the network field is set.

hasSubnetwork()

public boolean hasSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UsableSubnetwork other)

public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
Parameter
NameDescription
otherUsableSubnetwork
Returns
TypeDescription
UsableSubnetwork.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSecondaryIpRanges(int index)

public UsableSubnetwork.Builder removeSecondaryIpRanges(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetwork.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpCidrRange(String value)

public UsableSubnetwork.Builder setIpCidrRange(String value)

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Parameter
NameDescription
valueString

The ipCidrRange to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public UsableSubnetwork.Builder setIpCidrRangeBytes(ByteString value)

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Parameter
NameDescription
valueByteString

The bytes for ipCidrRange to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setNetwork(String value)

public UsableSubnetwork.Builder setNetwork(String value)

Network URL.

optional string network = 232872494;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public UsableSubnetwork.Builder setNetworkBytes(ByteString value)

Network URL.

optional string network = 232872494;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

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

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

setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameters
NameDescription
indexint
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
UsableSubnetwork.Builder

setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameters
NameDescription
indexint
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
UsableSubnetwork.Builder

setSubnetwork(String value)

public UsableSubnetwork.Builder setSubnetwork(String value)

Subnetwork URL.

optional string subnetwork = 307827694;

Parameter
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public UsableSubnetwork.Builder setSubnetworkBytes(ByteString value)

Subnetwork URL.

optional string subnetwork = 307827694;

Parameter
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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