public static final class NetworkPolicy.NetworkService.Builder extends GeneratedMessageV3.Builder<NetworkPolicy.NetworkService.Builder> implements NetworkPolicy.NetworkServiceOrBuilder
Represents a network service that is managed by a NetworkPolicy
resource.
A network service provides a way to control an aspect of external access to
VMware workloads. For example, whether the VMware workloads in the
private clouds governed by a network policy can access or be accessed from
the internet.
Protobuf type google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
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 NetworkPolicy.NetworkService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public NetworkPolicy.NetworkService build()
Returns
buildPartial()
public NetworkPolicy.NetworkService buildPartial()
Returns
clear()
public NetworkPolicy.NetworkService.Builder clear()
Returns
Overrides
clearEnabled()
public NetworkPolicy.NetworkService.Builder clearEnabled()
True if the service is enabled; false otherwise.
bool enabled = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public NetworkPolicy.NetworkService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkPolicy.NetworkService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearState()
public NetworkPolicy.NetworkService.Builder clearState()
Output only. State of the service. New values may be added to this enum
when appropriate.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clone()
public NetworkPolicy.NetworkService.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public NetworkPolicy.NetworkService getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnabled()
public boolean getEnabled()
True if the service is enabled; false otherwise.
bool enabled = 1;
Returns
getState()
public NetworkPolicy.NetworkService.State getState()
Output only. State of the service. New values may be added to this enum
when appropriate.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStateValue()
public int getStateValue()
Output only. State of the service. New values may be added to this enum
when appropriate.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(NetworkPolicy.NetworkService other)
public NetworkPolicy.NetworkService.Builder mergeFrom(NetworkPolicy.NetworkService other)
Parameter
Returns
public NetworkPolicy.NetworkService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NetworkPolicy.NetworkService.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.NetworkService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEnabled(boolean value)
public NetworkPolicy.NetworkService.Builder setEnabled(boolean value)
True if the service is enabled; false otherwise.
bool enabled = 1;
Parameter
Name | Description |
value | boolean
The enabled to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public NetworkPolicy.NetworkService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NetworkPolicy.NetworkService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setState(NetworkPolicy.NetworkService.State value)
public NetworkPolicy.NetworkService.Builder setState(NetworkPolicy.NetworkService.State value)
Output only. State of the service. New values may be added to this enum
when appropriate.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setStateValue(int value)
public NetworkPolicy.NetworkService.Builder setStateValue(int value)
Output only. State of the service. New values may be added to this enum
when appropriate.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | int
The enum numeric value on the wire for state to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.NetworkService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides