Class MirroringLocation.Builder (0.94.0)

public static final class MirroringLocation.Builder extends GeneratedMessage.Builder<MirroringLocation.Builder> implements MirroringLocationOrBuilder

Details about mirroring in a specific cloud location.

Protobuf type google.cloud.networksecurity.v1.MirroringLocation

Static Methods

getDescriptor()

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

Methods

build()

public MirroringLocation build()
Returns
Type Description
MirroringLocation

buildPartial()

public MirroringLocation buildPartial()
Returns
Type Description
MirroringLocation

clear()

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

clearLocation()

public MirroringLocation.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
MirroringLocation.Builder

This builder for chaining.

clearState()

public MirroringLocation.Builder clearState()

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

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

Returns
Type Description
MirroringLocation.Builder

This builder for chaining.

getDefaultInstanceForType()

public MirroringLocation getDefaultInstanceForType()
Returns
Type Description
MirroringLocation

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 MirroringLocation.State getState()

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

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

Returns
Type Description
MirroringLocation.State

The state.

getStateValue()

public int getStateValue()

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

.google.cloud.networksecurity.v1.MirroringLocation.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(MirroringLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLocation(String value)

public MirroringLocation.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
MirroringLocation.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public MirroringLocation.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
MirroringLocation.Builder

This builder for chaining.

setState(MirroringLocation.State value)

public MirroringLocation.Builder setState(MirroringLocation.State value)

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

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

Parameter
Name Description
value MirroringLocation.State

The state to set.

Returns
Type Description
MirroringLocation.Builder

This builder for chaining.

setStateValue(int value)

public MirroringLocation.Builder setStateValue(int value)

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

.google.cloud.networksecurity.v1.MirroringLocation.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
MirroringLocation.Builder

This builder for chaining.