Class InterceptLocation.Builder (0.94.0)

public static final class InterceptLocation.Builder extends GeneratedMessage.Builder<InterceptLocation.Builder> implements InterceptLocationOrBuilder

Details about intercept in a specific cloud location.

Protobuf type google.cloud.networksecurity.v1.InterceptLocation

Static Methods

getDescriptor()

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

Methods

build()

public InterceptLocation build()
Returns
Type Description
InterceptLocation

buildPartial()

public InterceptLocation buildPartial()
Returns
Type Description
InterceptLocation

clear()

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

clearLocation()

public InterceptLocation.Builder clearLocation()

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InterceptLocation.Builder

This builder for chaining.

clearState()

public InterceptLocation.Builder clearState()

Output only. The current state of the association in this location.

.google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InterceptLocation.Builder

This builder for chaining.

getDefaultInstanceForType()

public InterceptLocation getDefaultInstanceForType()
Returns
Type Description
InterceptLocation

getDescriptorForType()

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

getLocation()

public String getLocation()

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getState()

public InterceptLocation.State getState()

Output only. The current state of the association in this location.

.google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InterceptLocation.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the association in this location.

.google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterceptLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLocation(String value)

public InterceptLocation.Builder setLocation(String value)

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
InterceptLocation.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public InterceptLocation.Builder setLocationBytes(ByteString value)

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
InterceptLocation.Builder

This builder for chaining.

setState(InterceptLocation.State value)

public InterceptLocation.Builder setState(InterceptLocation.State value)

Output only. The current state of the association in this location.

.google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value InterceptLocation.State

The state to set.

Returns
Type Description
InterceptLocation.Builder

This builder for chaining.

setStateValue(int value)

public InterceptLocation.Builder setStateValue(int value)

Output only. The current state of the association in this location.

.google.cloud.networksecurity.v1.InterceptLocation.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
Type Description
InterceptLocation.Builder

This builder for chaining.