Class BfdPacket.Builder (1.64.0)

public static final class BfdPacket.Builder extends GeneratedMessageV3.Builder<BfdPacket.Builder> implements BfdPacketOrBuilder

Protobuf type google.cloud.compute.v1.BfdPacket

Implements

BfdPacketOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BfdPacket.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BfdPacket.Builder
Overrides

build()

public BfdPacket build()
Returns
Type Description
BfdPacket

buildPartial()

public BfdPacket buildPartial()
Returns
Type Description
BfdPacket

clear()

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

clearAuthenticationPresent()

public BfdPacket.Builder clearAuthenticationPresent()

The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool authentication_present = 105974260;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearControlPlaneIndependent()

public BfdPacket.Builder clearControlPlaneIndependent()

The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool control_plane_independent = 62363573;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearDemand()

public BfdPacket.Builder clearDemand()

The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool demand = 275180107;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearDiagnostic()

public BfdPacket.Builder clearDiagnostic()

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BfdPacket.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BfdPacket.Builder
Overrides

clearFinal()

public BfdPacket.Builder clearFinal()

The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool final = 97436022;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearLength()

public BfdPacket.Builder clearLength()

The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880

optional uint32 length = 504249062;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMinEchoRxIntervalMs()

public BfdPacket.Builder clearMinEchoRxIntervalMs()

The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_echo_rx_interval_ms = 97286868;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMinRxIntervalMs()

public BfdPacket.Builder clearMinRxIntervalMs()

The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_rx_interval_ms = 463399028;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMinTxIntervalMs()

public BfdPacket.Builder clearMinTxIntervalMs()

The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_tx_interval_ms = 526023602;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMultiplier()

public BfdPacket.Builder clearMultiplier()

The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 multiplier = 191331777;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMultipoint()

public BfdPacket.Builder clearMultipoint()

The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool multipoint = 191421431;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearMyDiscriminator()

public BfdPacket.Builder clearMyDiscriminator()

The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 my_discriminator = 76663113;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BfdPacket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BfdPacket.Builder
Overrides

clearPoll()

public BfdPacket.Builder clearPoll()

The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool poll = 3446719;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearState()

public BfdPacket.Builder clearState()

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearVersion()

public BfdPacket.Builder clearVersion()

The version number of the BFD protocol, as specified in section 4.1 of RFC5880.

optional uint32 version = 351608024;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clearYourDiscriminator()

public BfdPacket.Builder clearYourDiscriminator()

The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 your_discriminator = 515634064;

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

clone()

public BfdPacket.Builder clone()
Returns
Type Description
BfdPacket.Builder
Overrides

getAuthenticationPresent()

public boolean getAuthenticationPresent()

The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool authentication_present = 105974260;

Returns
Type Description
boolean

The authenticationPresent.

getControlPlaneIndependent()

public boolean getControlPlaneIndependent()

The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool control_plane_independent = 62363573;

Returns
Type Description
boolean

The controlPlaneIndependent.

getDefaultInstanceForType()

public BfdPacket getDefaultInstanceForType()
Returns
Type Description
BfdPacket

getDemand()

public boolean getDemand()

The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool demand = 275180107;

Returns
Type Description
boolean

The demand.

getDescriptorForType()

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

getDiagnostic()

public String getDiagnostic()

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Returns
Type Description
String

The diagnostic.

getDiagnosticBytes()

public ByteString getDiagnosticBytes()

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Returns
Type Description
ByteString

The bytes for diagnostic.

getFinal()

public boolean getFinal()

The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool final = 97436022;

Returns
Type Description
boolean

The final.

getLength()

public int getLength()

The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880

optional uint32 length = 504249062;

Returns
Type Description
int

The length.

getMinEchoRxIntervalMs()

public int getMinEchoRxIntervalMs()

The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_echo_rx_interval_ms = 97286868;

Returns
Type Description
int

The minEchoRxIntervalMs.

getMinRxIntervalMs()

public int getMinRxIntervalMs()

The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_rx_interval_ms = 463399028;

Returns
Type Description
int

The minRxIntervalMs.

getMinTxIntervalMs()

public int getMinTxIntervalMs()

The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_tx_interval_ms = 526023602;

Returns
Type Description
int

The minTxIntervalMs.

getMultiplier()

public int getMultiplier()

The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 multiplier = 191331777;

Returns
Type Description
int

The multiplier.

getMultipoint()

public boolean getMultipoint()

The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool multipoint = 191421431;

Returns
Type Description
boolean

The multipoint.

getMyDiscriminator()

public int getMyDiscriminator()

The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 my_discriminator = 76663113;

Returns
Type Description
int

The myDiscriminator.

getPoll()

public boolean getPoll()

The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool poll = 3446719;

Returns
Type Description
boolean

The poll.

getState()

public String getState()

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

getVersion()

public int getVersion()

The version number of the BFD protocol, as specified in section 4.1 of RFC5880.

optional uint32 version = 351608024;

Returns
Type Description
int

The version.

getYourDiscriminator()

public int getYourDiscriminator()

The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 your_discriminator = 515634064;

Returns
Type Description
int

The yourDiscriminator.

hasAuthenticationPresent()

public boolean hasAuthenticationPresent()

The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool authentication_present = 105974260;

Returns
Type Description
boolean

Whether the authenticationPresent field is set.

hasControlPlaneIndependent()

public boolean hasControlPlaneIndependent()

The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool control_plane_independent = 62363573;

Returns
Type Description
boolean

Whether the controlPlaneIndependent field is set.

hasDemand()

public boolean hasDemand()

The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool demand = 275180107;

Returns
Type Description
boolean

Whether the demand field is set.

hasDiagnostic()

public boolean hasDiagnostic()

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Returns
Type Description
boolean

Whether the diagnostic field is set.

hasFinal()

public boolean hasFinal()

The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool final = 97436022;

Returns
Type Description
boolean

Whether the final field is set.

hasLength()

public boolean hasLength()

The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880

optional uint32 length = 504249062;

Returns
Type Description
boolean

Whether the length field is set.

hasMinEchoRxIntervalMs()

public boolean hasMinEchoRxIntervalMs()

The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_echo_rx_interval_ms = 97286868;

Returns
Type Description
boolean

Whether the minEchoRxIntervalMs field is set.

hasMinRxIntervalMs()

public boolean hasMinRxIntervalMs()

The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_rx_interval_ms = 463399028;

Returns
Type Description
boolean

Whether the minRxIntervalMs field is set.

hasMinTxIntervalMs()

public boolean hasMinTxIntervalMs()

The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_tx_interval_ms = 526023602;

Returns
Type Description
boolean

Whether the minTxIntervalMs field is set.

hasMultiplier()

public boolean hasMultiplier()

The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 multiplier = 191331777;

Returns
Type Description
boolean

Whether the multiplier field is set.

hasMultipoint()

public boolean hasMultipoint()

The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool multipoint = 191421431;

Returns
Type Description
boolean

Whether the multipoint field is set.

hasMyDiscriminator()

public boolean hasMyDiscriminator()

The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 my_discriminator = 76663113;

Returns
Type Description
boolean

Whether the myDiscriminator field is set.

hasPoll()

public boolean hasPoll()

The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool poll = 3446719;

Returns
Type Description
boolean

Whether the poll field is set.

hasState()

public boolean hasState()

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hasVersion()

public boolean hasVersion()

The version number of the BFD protocol, as specified in section 4.1 of RFC5880.

optional uint32 version = 351608024;

Returns
Type Description
boolean

Whether the version field is set.

hasYourDiscriminator()

public boolean hasYourDiscriminator()

The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 your_discriminator = 515634064;

Returns
Type Description
boolean

Whether the yourDiscriminator field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BfdPacket other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BfdPacket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BfdPacket.Builder
Overrides

setAuthenticationPresent(boolean value)

public BfdPacket.Builder setAuthenticationPresent(boolean value)

The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool authentication_present = 105974260;

Parameter
Name Description
value boolean

The authenticationPresent to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setControlPlaneIndependent(boolean value)

public BfdPacket.Builder setControlPlaneIndependent(boolean value)

The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool control_plane_independent = 62363573;

Parameter
Name Description
value boolean

The controlPlaneIndependent to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setDemand(boolean value)

public BfdPacket.Builder setDemand(boolean value)

The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool demand = 275180107;

Parameter
Name Description
value boolean

The demand to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setDiagnostic(String value)

public BfdPacket.Builder setDiagnostic(String value)

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Parameter
Name Description
value String

The diagnostic to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setDiagnosticBytes(ByteString value)

public BfdPacket.Builder setDiagnosticBytes(ByteString value)

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the Diagnostic enum for the list of possible values.

optional string diagnostic = 62708647;

Parameter
Name Description
value ByteString

The bytes for diagnostic to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BfdPacket.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BfdPacket.Builder
Overrides

setFinal(boolean value)

public BfdPacket.Builder setFinal(boolean value)

The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool final = 97436022;

Parameter
Name Description
value boolean

The final to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setLength(int value)

public BfdPacket.Builder setLength(int value)

The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880

optional uint32 length = 504249062;

Parameter
Name Description
value int

The length to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMinEchoRxIntervalMs(int value)

public BfdPacket.Builder setMinEchoRxIntervalMs(int value)

The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_echo_rx_interval_ms = 97286868;

Parameter
Name Description
value int

The minEchoRxIntervalMs to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMinRxIntervalMs(int value)

public BfdPacket.Builder setMinRxIntervalMs(int value)

The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_rx_interval_ms = 463399028;

Parameter
Name Description
value int

The minRxIntervalMs to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMinTxIntervalMs(int value)

public BfdPacket.Builder setMinTxIntervalMs(int value)

The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 min_tx_interval_ms = 526023602;

Parameter
Name Description
value int

The minTxIntervalMs to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMultiplier(int value)

public BfdPacket.Builder setMultiplier(int value)

The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 multiplier = 191331777;

Parameter
Name Description
value int

The multiplier to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMultipoint(boolean value)

public BfdPacket.Builder setMultipoint(boolean value)

The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool multipoint = 191421431;

Parameter
Name Description
value boolean

The multipoint to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setMyDiscriminator(int value)

public BfdPacket.Builder setMyDiscriminator(int value)

The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 my_discriminator = 76663113;

Parameter
Name Description
value int

The myDiscriminator to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setPoll(boolean value)

public BfdPacket.Builder setPoll(boolean value)

The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880

optional bool poll = 3446719;

Parameter
Name Description
value boolean

The poll to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

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

public BfdPacket.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BfdPacket.Builder
Overrides

setState(String value)

public BfdPacket.Builder setState(String value)

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value String

The state to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setStateBytes(ByteString value)

public BfdPacket.Builder setStateBytes(ByteString value)

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BfdPacket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BfdPacket.Builder
Overrides

setVersion(int value)

public BfdPacket.Builder setVersion(int value)

The version number of the BFD protocol, as specified in section 4.1 of RFC5880.

optional uint32 version = 351608024;

Parameter
Name Description
value int

The version to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.

setYourDiscriminator(int value)

public BfdPacket.Builder setYourDiscriminator(int value)

The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880

optional uint32 your_discriminator = 515634064;

Parameter
Name Description
value int

The yourDiscriminator to set.

Returns
Type Description
BfdPacket.Builder

This builder for chaining.