Class NetworkPolicy.NetworkService.Builder (0.8.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkPolicy.NetworkService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

build()

public NetworkPolicy.NetworkService build()
Returns
TypeDescription
NetworkPolicy.NetworkService

buildPartial()

public NetworkPolicy.NetworkService buildPartial()
Returns
TypeDescription
NetworkPolicy.NetworkService

clear()

public NetworkPolicy.NetworkService.Builder clear()
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

clearEnabled()

public NetworkPolicy.NetworkService.Builder clearEnabled()

True if the service is enabled; false otherwise.

bool enabled = 1;

Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkPolicy.NetworkService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkPolicy.NetworkService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
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
TypeDescription
NetworkPolicy.NetworkService.Builder

This builder for chaining.

clone()

public NetworkPolicy.NetworkService.Builder clone()
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

getDefaultInstanceForType()

public NetworkPolicy.NetworkService getDefaultInstanceForType()
Returns
TypeDescription
NetworkPolicy.NetworkService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

True if the service is enabled; false otherwise.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

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
TypeDescription
NetworkPolicy.NetworkService.State

The state.

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
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkPolicy.NetworkService other)

public NetworkPolicy.NetworkService.Builder mergeFrom(NetworkPolicy.NetworkService other)
Parameter
NameDescription
otherNetworkPolicy.NetworkService
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkPolicy.NetworkService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkPolicy.NetworkService.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkPolicy.NetworkService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

setEnabled(boolean value)

public NetworkPolicy.NetworkService.Builder setEnabled(boolean value)

True if the service is enabled; false otherwise.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkPolicy.NetworkService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkPolicy.NetworkService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
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
NameDescription
valueNetworkPolicy.NetworkService.State

The state to set.

Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

This builder for chaining.

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
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkPolicy.NetworkService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides