public static final class PrivatePoolV1Config.NetworkConfig.Builder extends GeneratedMessageV3.Builder<PrivatePoolV1Config.NetworkConfig.Builder> implements PrivatePoolV1Config.NetworkConfigOrBuilder
Defines the network configuration for the pool.
Protobuf type google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrivatePoolV1Config.NetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PrivatePoolV1Config.NetworkConfig build()
Returns
buildPartial()
public PrivatePoolV1Config.NetworkConfig buildPartial()
Returns
clear()
public PrivatePoolV1Config.NetworkConfig.Builder clear()
Returns
Overrides
clearEgressOption()
public PrivatePoolV1Config.NetworkConfig.Builder clearEgressOption()
Option to configure network egress for the workers.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PrivatePoolV1Config.NetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PrivatePoolV1Config.NetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPeeredNetwork()
public PrivatePoolV1Config.NetworkConfig.Builder clearPeeredNetwork()
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id
on the service producer network. Must be in the
format projects/{project}/global/networks/{network}
, where {project}
is a project number, such as 12345
, and {network}
is the name of a
VPC network in the project. See
Understanding network configuration
options
string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public PrivatePoolV1Config.NetworkConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PrivatePoolV1Config.NetworkConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEgressOption()
public PrivatePoolV1Config.NetworkConfig.EgressOption getEgressOption()
Option to configure network egress for the workers.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
Returns
getEgressOptionValue()
public int getEgressOptionValue()
Option to configure network egress for the workers.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for egressOption.
|
getPeeredNetwork()
public String getPeeredNetwork()
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id
on the service producer network. Must be in the
format projects/{project}/global/networks/{network}
, where {project}
is a project number, such as 12345
, and {network}
is the name of a
VPC network in the project. See
Understanding network configuration
options
string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The peeredNetwork.
|
getPeeredNetworkBytes()
public ByteString getPeeredNetworkBytes()
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id
on the service producer network. Must be in the
format projects/{project}/global/networks/{network}
, where {project}
is a project number, such as 12345
, and {network}
is the name of a
VPC network in the project. See
Understanding network configuration
options
string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for peeredNetwork.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PrivatePoolV1Config.NetworkConfig other)
public PrivatePoolV1Config.NetworkConfig.Builder mergeFrom(PrivatePoolV1Config.NetworkConfig other)
Parameter
Returns
public PrivatePoolV1Config.NetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PrivatePoolV1Config.NetworkConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrivatePoolV1Config.NetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEgressOption(PrivatePoolV1Config.NetworkConfig.EgressOption value)
public PrivatePoolV1Config.NetworkConfig.Builder setEgressOption(PrivatePoolV1Config.NetworkConfig.EgressOption value)
Option to configure network egress for the workers.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
Parameter
Returns
setEgressOptionValue(int value)
public PrivatePoolV1Config.NetworkConfig.Builder setEgressOptionValue(int value)
Option to configure network egress for the workers.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for egressOption to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PrivatePoolV1Config.NetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPeeredNetwork(String value)
public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetwork(String value)
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id
on the service producer network. Must be in the
format projects/{project}/global/networks/{network}
, where {project}
is a project number, such as 12345
, and {network}
is the name of a
VPC network in the project. See
Understanding network configuration
options
string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The peeredNetwork to set.
|
Returns
setPeeredNetworkBytes(ByteString value)
public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetworkBytes(ByteString value)
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id
on the service producer network. Must be in the
format projects/{project}/global/networks/{network}
, where {project}
is a project number, such as 12345
, and {network}
is the name of a
VPC network in the project. See
Understanding network configuration
options
string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for peeredNetwork to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrivatePoolV1Config.NetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PrivatePoolV1Config.NetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides