Class ExchangedPeeringRoute (1.38.0)

public final class ExchangedPeeringRoute extends GeneratedMessageV3 implements ExchangedPeeringRouteOrBuilder

Protobuf type google.cloud.compute.v1.ExchangedPeeringRoute

Static Fields

DEST_RANGE_FIELD_NUMBER

public static final int DEST_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

IMPORTED_FIELD_NUMBER

public static final int IMPORTED_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_REGION_FIELD_NUMBER

public static final int NEXT_HOP_REGION_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExchangedPeeringRoute getDefaultInstance()
Returns
TypeDescription
ExchangedPeeringRoute

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ExchangedPeeringRoute.Builder newBuilder()
Returns
TypeDescription
ExchangedPeeringRoute.Builder

newBuilder(ExchangedPeeringRoute prototype)

public static ExchangedPeeringRoute.Builder newBuilder(ExchangedPeeringRoute prototype)
Parameter
NameDescription
prototypeExchangedPeeringRoute
Returns
TypeDescription
ExchangedPeeringRoute.Builder

parseDelimitedFrom(InputStream input)

public static ExchangedPeeringRoute parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExchangedPeeringRoute parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExchangedPeeringRoute parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExchangedPeeringRoute parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExchangedPeeringRoute parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExchangedPeeringRoute parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExchangedPeeringRoute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExchangedPeeringRoute
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExchangedPeeringRoute> parser()
Returns
TypeDescription
Parser<ExchangedPeeringRoute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ExchangedPeeringRoute getDefaultInstanceForType()
Returns
TypeDescription
ExchangedPeeringRoute

getDestRange()

public String getDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
String

The destRange.

getDestRangeBytes()

public ByteString getDestRangeBytes()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
ByteString

The bytes for destRange.

getImported()

public boolean getImported()

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Returns
TypeDescription
boolean

The imported.

getNextHopRegion()

public String getNextHopRegion()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
TypeDescription
String

The nextHopRegion.

getNextHopRegionBytes()

public ByteString getNextHopRegionBytes()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
TypeDescription
ByteString

The bytes for nextHopRegion.

getParserForType()

public Parser<ExchangedPeeringRoute> getParserForType()
Returns
TypeDescription
Parser<ExchangedPeeringRoute>
Overrides

getPriority()

public int getPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
TypeDescription
int

The priority.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public String getType()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
ByteString

The bytes for type.

hasDestRange()

public boolean hasDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
boolean

Whether the destRange field is set.

hasImported()

public boolean hasImported()

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Returns
TypeDescription
boolean

Whether the imported field is set.

hasNextHopRegion()

public boolean hasNextHopRegion()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
TypeDescription
boolean

Whether the nextHopRegion field is set.

hasPriority()

public boolean hasPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
TypeDescription
boolean

Whether the priority field is set.

hasType()

public boolean hasType()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
boolean

Whether the type field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ExchangedPeeringRoute.Builder newBuilderForType()
Returns
TypeDescription
ExchangedPeeringRoute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExchangedPeeringRoute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExchangedPeeringRoute.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ExchangedPeeringRoute.Builder toBuilder()
Returns
TypeDescription
ExchangedPeeringRoute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException