Class Network.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
- com.google.cloud.lifesciences.v2beta.Network.Builder
-
- All Implemented Interfaces:
NetworkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Network
public static final class Network.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder
VM networking options.
Protobuf typegoogle.cloud.lifesciences.v2beta.Network
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Network.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network
build()
Network
buildPartial()
Network.Builder
clear()
Network.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Network.Builder
clearNetwork()
The network name to attach the VM's network interface to.Network.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Network.Builder
clearSubnetwork()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.Network.Builder
clearUsePrivateAddress()
If set to true, do not attach a public IP address to the VM.Network.Builder
clone()
Network
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNetwork()
The network name to attach the VM's network interface to.com.google.protobuf.ByteString
getNetworkBytes()
The network name to attach the VM's network interface to.String
getSubnetwork()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.com.google.protobuf.ByteString
getSubnetworkBytes()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.boolean
getUsePrivateAddress()
If set to true, do not attach a public IP address to the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Network.Builder
mergeFrom(Network other)
Network.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Network.Builder
mergeFrom(com.google.protobuf.Message other)
Network.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
setNetwork(String value)
The network name to attach the VM's network interface to.Network.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
The network name to attach the VM's network interface to.Network.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Network.Builder
setSubnetwork(String value)
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.Network.Builder
setSubnetworkBytes(com.google.protobuf.ByteString value)
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.Network.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
setUsePrivateAddress(boolean value)
If set to true, do not attach a public IP address to the VM.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
- Throws:
IOException
-
getNetwork
public String getNetwork()
The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
string network = 1;
- Specified by:
getNetwork
in interfaceNetworkOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
string network = 1;
- Specified by:
getNetworkBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public Network.Builder setNetwork(String value)
The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
string network = 1;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public Network.Builder clearNetwork()
The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
string network = 1;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public Network.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
string network = 1;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
getUsePrivateAddress
public boolean getUsePrivateAddress()
If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services. See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.
bool use_private_address = 2;
- Specified by:
getUsePrivateAddress
in interfaceNetworkOrBuilder
- Returns:
- The usePrivateAddress.
-
setUsePrivateAddress
public Network.Builder setUsePrivateAddress(boolean value)
If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services. See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.
bool use_private_address = 2;
- Parameters:
value
- The usePrivateAddress to set.- Returns:
- This builder for chaining.
-
clearUsePrivateAddress
public Network.Builder clearUsePrivateAddress()
If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services. See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.
bool use_private_address = 2;
- Returns:
- This builder for chaining.
-
getSubnetwork
public String getSubnetwork()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
string subnetwork = 3;
- Specified by:
getSubnetwork
in interfaceNetworkOrBuilder
- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
string subnetwork = 3;
- Specified by:
getSubnetworkBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for subnetwork.
-
setSubnetwork
public Network.Builder setSubnetwork(String value)
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
string subnetwork = 3;
- Parameters:
value
- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
public Network.Builder clearSubnetwork()
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
string subnetwork = 3;
- Returns:
- This builder for chaining.
-
setSubnetworkBytes
public Network.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
string subnetwork = 3;
- Parameters:
value
- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Network.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-