Package com.google.cloud.batch.v1
Class AllocationPolicy.NetworkInterface.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>
-
- com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder
-
- All Implemented Interfaces:
AllocationPolicy.NetworkInterfaceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AllocationPolicy.NetworkInterface
public static final class AllocationPolicy.NetworkInterface.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder> implements AllocationPolicy.NetworkInterfaceOrBuilder
A network interface.
Protobuf typegoogle.cloud.batch.v1.AllocationPolicy.NetworkInterface
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationPolicy.NetworkInterface.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.NetworkInterface
build()
AllocationPolicy.NetworkInterface
buildPartial()
AllocationPolicy.NetworkInterface.Builder
clear()
AllocationPolicy.NetworkInterface.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationPolicy.NetworkInterface.Builder
clearNetwork()
The URL of an existing network resource.AllocationPolicy.NetworkInterface.Builder
clearNoExternalIpAddress()
Default is false (with an external IP address).AllocationPolicy.NetworkInterface.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationPolicy.NetworkInterface.Builder
clearSubnetwork()
The URL of an existing subnetwork resource in the network.AllocationPolicy.NetworkInterface.Builder
clone()
AllocationPolicy.NetworkInterface
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNetwork()
The URL of an existing network resource.com.google.protobuf.ByteString
getNetworkBytes()
The URL of an existing network resource.boolean
getNoExternalIpAddress()
Default is false (with an external IP address).String
getSubnetwork()
The URL of an existing subnetwork resource in the network.com.google.protobuf.ByteString
getSubnetworkBytes()
The URL of an existing subnetwork resource in the network.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationPolicy.NetworkInterface.Builder
mergeFrom(AllocationPolicy.NetworkInterface other)
AllocationPolicy.NetworkInterface.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationPolicy.NetworkInterface.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationPolicy.NetworkInterface.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationPolicy.NetworkInterface.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.NetworkInterface.Builder
setNetwork(String value)
The URL of an existing network resource.AllocationPolicy.NetworkInterface.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing network resource.AllocationPolicy.NetworkInterface.Builder
setNoExternalIpAddress(boolean value)
Default is false (with an external IP address).AllocationPolicy.NetworkInterface.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationPolicy.NetworkInterface.Builder
setSubnetwork(String value)
The URL of an existing subnetwork resource in the network.AllocationPolicy.NetworkInterface.Builder
setSubnetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing subnetwork resource in the network.AllocationPolicy.NetworkInterface.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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<AllocationPolicy.NetworkInterface.Builder>
-
clear
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.NetworkInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.NetworkInterface build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.NetworkInterface buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
setField
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
clearField
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
clearOneof
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
setRepeatedField
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
addRepeatedField
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
-
mergeFrom
public AllocationPolicy.NetworkInterface.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.NetworkInterface.Builder>
-
mergeFrom
public AllocationPolicy.NetworkInterface.Builder mergeFrom(AllocationPolicy.NetworkInterface other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>
-
mergeFrom
public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
- Throws:
IOException
-
getNetwork
public String getNetwork()
The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
string network = 1;
- Specified by:
getNetwork
in interfaceAllocationPolicy.NetworkInterfaceOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
string network = 1;
- Specified by:
getNetworkBytes
in interfaceAllocationPolicy.NetworkInterfaceOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public AllocationPolicy.NetworkInterface.Builder setNetwork(String value)
The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
string network = 1;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public AllocationPolicy.NetworkInterface.Builder clearNetwork()
The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
string network = 1;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public AllocationPolicy.NetworkInterface.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
string network = 1;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
getSubnetwork
public String getSubnetwork()
The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
- Specified by:
getSubnetwork
in interfaceAllocationPolicy.NetworkInterfaceOrBuilder
- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()
The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
- Specified by:
getSubnetworkBytes
in interfaceAllocationPolicy.NetworkInterfaceOrBuilder
- Returns:
- The bytes for subnetwork.
-
setSubnetwork
public AllocationPolicy.NetworkInterface.Builder setSubnetwork(String value)
The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
- Parameters:
value
- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
public AllocationPolicy.NetworkInterface.Builder clearSubnetwork()
The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
- Returns:
- This builder for chaining.
-
setSubnetworkBytes
public AllocationPolicy.NetworkInterface.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
- Parameters:
value
- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
getNoExternalIpAddress
public boolean getNoExternalIpAddress()
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external 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 and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;
- Specified by:
getNoExternalIpAddress
in interfaceAllocationPolicy.NetworkInterfaceOrBuilder
- Returns:
- The noExternalIpAddress.
-
setNoExternalIpAddress
public AllocationPolicy.NetworkInterface.Builder setNoExternalIpAddress(boolean value)
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external 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 and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;
- Parameters:
value
- The noExternalIpAddress to set.- Returns:
- This builder for chaining.
-
clearNoExternalIpAddress
public AllocationPolicy.NetworkInterface.Builder clearNoExternalIpAddress()
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external 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 and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationPolicy.NetworkInterface.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>
-
mergeUnknownFields
public final AllocationPolicy.NetworkInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>
-
-