Package com.google.container.v1
Class UsableSubnetwork.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
com.google.container.v1.UsableSubnetwork.Builder
- All Implemented Interfaces:
UsableSubnetworkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UsableSubnetwork
public static final class UsableSubnetwork.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
implements UsableSubnetworkOrBuilder
UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.Protobuf type
google.container.v1.UsableSubnetwork-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values) Secondary IP ranges.addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value) Secondary IP ranges.addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.Secondary IP ranges.addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.Secondary IP ranges.addSecondaryIpRangesBuilder(int index) Secondary IP ranges.build()clear()The range of internal addresses that are owned by this subnetwork.Network Name.Secondary IP ranges.A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.Subnetwork Name.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe range of internal addresses that are owned by this subnetwork.com.google.protobuf.ByteStringThe range of internal addresses that are owned by this subnetwork.Network Name.com.google.protobuf.ByteStringNetwork Name.getSecondaryIpRanges(int index) Secondary IP ranges.getSecondaryIpRangesBuilder(int index) Secondary IP ranges.Secondary IP ranges.intSecondary IP ranges.Secondary IP ranges.getSecondaryIpRangesOrBuilder(int index) Secondary IP ranges.List<? extends UsableSubnetworkSecondaryRangeOrBuilder>Secondary IP ranges.A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.com.google.protobuf.ByteStringA human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.Subnetwork Name.com.google.protobuf.ByteStringSubnetwork Name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UsableSubnetwork other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSecondaryIpRanges(int index) Secondary IP ranges.setIpCidrRange(String value) The range of internal addresses that are owned by this subnetwork.setIpCidrRangeBytes(com.google.protobuf.ByteString value) The range of internal addresses that are owned by this subnetwork.setNetwork(String value) Network Name.setNetworkBytes(com.google.protobuf.ByteString value) Network Name.setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value) Secondary IP ranges.setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.setStatusMessage(String value) A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.setStatusMessageBytes(com.google.protobuf.ByteString value) A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.setSubnetwork(String value) Subnetwork Name.setSubnetworkBytes(com.google.protobuf.ByteString value) Subnetwork Name.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsableSubnetwork.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder>
-
mergeFrom
public UsableSubnetwork.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsableSubnetwork.Builder>- Throws:
IOException
-
getSubnetwork
Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 1;- Specified by:
getSubnetworkin interfaceUsableSubnetworkOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 1;- Specified by:
getSubnetworkBytesin interfaceUsableSubnetworkOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 1;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 1;- Returns:
- This builder for chaining.
-
setSubnetworkBytes
Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 1;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
getNetwork
Network Name. Example: projects/my-project/global/networks/my-network
string network = 2;- Specified by:
getNetworkin interfaceUsableSubnetworkOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Network Name. Example: projects/my-project/global/networks/my-network
string network = 2;- Specified by:
getNetworkBytesin interfaceUsableSubnetworkOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Network Name. Example: projects/my-project/global/networks/my-network
string network = 2;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Network Name. Example: projects/my-project/global/networks/my-network
string network = 2;- Returns:
- This builder for chaining.
-
setNetworkBytes
Network Name. Example: projects/my-project/global/networks/my-network
string network = 2;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getIpCidrRange
The range of internal addresses that are owned by this subnetwork.
string ip_cidr_range = 3;- Specified by:
getIpCidrRangein interfaceUsableSubnetworkOrBuilder- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()The range of internal addresses that are owned by this subnetwork.
string ip_cidr_range = 3;- Specified by:
getIpCidrRangeBytesin interfaceUsableSubnetworkOrBuilder- Returns:
- The bytes for ipCidrRange.
-
setIpCidrRange
The range of internal addresses that are owned by this subnetwork.
string ip_cidr_range = 3;- Parameters:
value- The ipCidrRange to set.- Returns:
- This builder for chaining.
-
clearIpCidrRange
The range of internal addresses that are owned by this subnetwork.
string ip_cidr_range = 3;- Returns:
- This builder for chaining.
-
setIpCidrRangeBytes
The range of internal addresses that are owned by this subnetwork.
string ip_cidr_range = 3;- Parameters:
value- The bytes for ipCidrRange to set.- Returns:
- This builder for chaining.
-
getSecondaryIpRangesList
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;- Specified by:
getSecondaryIpRangesListin interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRangesCount
public int getSecondaryIpRangesCount()Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;- Specified by:
getSecondaryIpRangesCountin interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRanges
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;- Specified by:
getSecondaryIpRangesin interfaceUsableSubnetworkOrBuilder
-
setSecondaryIpRanges
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
setSecondaryIpRanges
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addSecondaryIpRanges
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addAllSecondaryIpRanges
public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values) Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
clearSecondaryIpRanges
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
removeSecondaryIpRanges
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
getSecondaryIpRangesBuilder
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
getSecondaryIpRangesOrBuilder
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;- Specified by:
getSecondaryIpRangesOrBuilderin interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRangesOrBuilderList
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;- Specified by:
getSecondaryIpRangesOrBuilderListin interfaceUsableSubnetworkOrBuilder
-
addSecondaryIpRangesBuilder
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
addSecondaryIpRangesBuilder
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
getSecondaryIpRangesBuilderList
Secondary IP ranges.
repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; -
getStatusMessage
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
string status_message = 5;- Specified by:
getStatusMessagein interfaceUsableSubnetworkOrBuilder- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
string status_message = 5;- Specified by:
getStatusMessageBytesin interfaceUsableSubnetworkOrBuilder- Returns:
- The bytes for statusMessage.
-
setStatusMessage
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
string status_message = 5;- Parameters:
value- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
string status_message = 5;- Returns:
- This builder for chaining.
-
setStatusMessageBytes
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
string status_message = 5;- Parameters:
value- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-