Class BfdPacket.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BfdPacket build()
Returns
TypeDescription
BfdPacket

buildPartial()

public BfdPacket buildPartial()
Returns
TypeDescription
BfdPacket

clear()

public BfdPacket.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BfdPacket.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BfdPacket.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BfdPacket.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public BfdPacket.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The controlPlaneIndependent.

getDefaultInstanceForType()

public BfdPacket getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
boolean

The demand.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the yourDiscriminator field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BfdPacket other)

public BfdPacket.Builder mergeFrom(BfdPacket other)
Parameter
NameDescription
otherBfdPacket
Returns
TypeDescription
BfdPacket.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BfdPacket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The authenticationPresent to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The controlPlaneIndependent to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The demand to set.

Returns
TypeDescription
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
NameDescription
valueString

The diagnostic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for diagnostic to set.

Returns
TypeDescription
BfdPacket.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BfdPacket.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The final to set.

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

The length to set.

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

The minEchoRxIntervalMs to set.

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

The minRxIntervalMs to set.

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

The minTxIntervalMs to set.

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

The multiplier to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The multipoint to set.

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

The myDiscriminator to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The poll to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The state to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for state to set.

Returns
TypeDescription
BfdPacket.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BfdPacket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The version to set.

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

The yourDiscriminator to set.

Returns
TypeDescription
BfdPacket.Builder

This builder for chaining.