Class AmbientNetworking.Builder (0.103.0)

public static final class AmbientNetworking.Builder extends GeneratedMessage.Builder<AmbientNetworking.Builder> implements AmbientNetworkingOrBuilder

Configuration for Ambient Networking.

Protobuf type google.cloud.run.v2.AmbientNetworking

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AmbientNetworking build()
Returns
Type Description
AmbientNetworking

buildPartial()

public AmbientNetworking buildPartial()
Returns
Type Description
AmbientNetworking

clear()

public AmbientNetworking.Builder clear()
Returns
Type Description
AmbientNetworking.Builder
Overrides

clearAmbientScope()

public AmbientNetworking.Builder clearAmbientScope()

The ambient networking scope of the instance.

.google.cloud.run.v2.AmbientScope ambient_scope = 2;

Returns
Type Description
AmbientNetworking.Builder

This builder for chaining.

clearEnabled()

public AmbientNetworking.Builder clearEnabled()

Optional. Whether ambient networking is enabled.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmbientNetworking.Builder

This builder for chaining.

getAmbientScope()

public AmbientScope getAmbientScope()

The ambient networking scope of the instance.

.google.cloud.run.v2.AmbientScope ambient_scope = 2;

Returns
Type Description
AmbientScope

The ambientScope.

getAmbientScopeValue()

public int getAmbientScopeValue()

The ambient networking scope of the instance.

.google.cloud.run.v2.AmbientScope ambient_scope = 2;

Returns
Type Description
int

The enum numeric value on the wire for ambientScope.

getDefaultInstanceForType()

public AmbientNetworking getDefaultInstanceForType()
Returns
Type Description
AmbientNetworking

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Optional. Whether ambient networking is enabled.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

hasEnabled()

public boolean hasEnabled()

Optional. Whether ambient networking is enabled.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enabled field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AmbientNetworking other)

public AmbientNetworking.Builder mergeFrom(AmbientNetworking other)
Parameter
Name Description
other AmbientNetworking
Returns
Type Description
AmbientNetworking.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AmbientNetworking.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AmbientNetworking.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AmbientNetworking.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AmbientNetworking.Builder
Overrides

setAmbientScope(AmbientScope value)

public AmbientNetworking.Builder setAmbientScope(AmbientScope value)

The ambient networking scope of the instance.

.google.cloud.run.v2.AmbientScope ambient_scope = 2;

Parameter
Name Description
value AmbientScope

The ambientScope to set.

Returns
Type Description
AmbientNetworking.Builder

This builder for chaining.

setAmbientScopeValue(int value)

public AmbientNetworking.Builder setAmbientScopeValue(int value)

The ambient networking scope of the instance.

.google.cloud.run.v2.AmbientScope ambient_scope = 2;

Parameter
Name Description
value int

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

Returns
Type Description
AmbientNetworking.Builder

This builder for chaining.

setEnabled(boolean value)

public AmbientNetworking.Builder setEnabled(boolean value)

Optional. Whether ambient networking is enabled.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
AmbientNetworking.Builder

This builder for chaining.