Class DropInfo.Builder (1.40.0)

public static final class DropInfo.Builder extends GeneratedMessageV3.Builder<DropInfo.Builder> implements DropInfoOrBuilder

Details of the final state "drop" and associated resource.

Protobuf type google.cloud.networkmanagement.v1.DropInfo

Implements

DropInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DropInfo build()
Returns
TypeDescription
DropInfo

buildPartial()

public DropInfo buildPartial()
Returns
TypeDescription
DropInfo

clear()

public DropInfo.Builder clear()
Returns
TypeDescription
DropInfo.Builder
Overrides

clearCause()

public DropInfo.Builder clearCause()

Cause that the packet is dropped.

.google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

clearDestinationIp()

public DropInfo.Builder clearDestinationIp()

Destination IP address of the dropped packet (if relevant).

string destination_ip = 4;

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DropInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DropInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DropInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DropInfo.Builder
Overrides

clearRegion()

public DropInfo.Builder clearRegion()

Region of the dropped packet (if relevant).

string region = 5;

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

clearResourceUri()

public DropInfo.Builder clearResourceUri()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

clearSourceIp()

public DropInfo.Builder clearSourceIp()

Source IP address of the dropped packet (if relevant).

string source_ip = 3;

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

clone()

public DropInfo.Builder clone()
Returns
TypeDescription
DropInfo.Builder
Overrides

getCause()

public DropInfo.Cause getCause()

Cause that the packet is dropped.

.google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;

Returns
TypeDescription
DropInfo.Cause

The cause.

getCauseValue()

public int getCauseValue()

Cause that the packet is dropped.

.google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for cause.

getDefaultInstanceForType()

public DropInfo getDefaultInstanceForType()
Returns
TypeDescription
DropInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationIp()

public String getDestinationIp()

Destination IP address of the dropped packet (if relevant).

string destination_ip = 4;

Returns
TypeDescription
String

The destinationIp.

getDestinationIpBytes()

public ByteString getDestinationIpBytes()

Destination IP address of the dropped packet (if relevant).

string destination_ip = 4;

Returns
TypeDescription
ByteString

The bytes for destinationIp.

getRegion()

public String getRegion()

Region of the dropped packet (if relevant).

string region = 5;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Region of the dropped packet (if relevant).

string region = 5;

Returns
TypeDescription
ByteString

The bytes for region.

getResourceUri()

public String getResourceUri()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
TypeDescription
String

The resourceUri.

getResourceUriBytes()

public ByteString getResourceUriBytes()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
TypeDescription
ByteString

The bytes for resourceUri.

getSourceIp()

public String getSourceIp()

Source IP address of the dropped packet (if relevant).

string source_ip = 3;

Returns
TypeDescription
String

The sourceIp.

getSourceIpBytes()

public ByteString getSourceIpBytes()

Source IP address of the dropped packet (if relevant).

string source_ip = 3;

Returns
TypeDescription
ByteString

The bytes for sourceIp.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DropInfo other)

public DropInfo.Builder mergeFrom(DropInfo other)
Parameter
NameDescription
otherDropInfo
Returns
TypeDescription
DropInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DropInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DropInfo.Builder
Overrides

setCause(DropInfo.Cause value)

public DropInfo.Builder setCause(DropInfo.Cause value)

Cause that the packet is dropped.

.google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;

Parameter
NameDescription
valueDropInfo.Cause

The cause to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setCauseValue(int value)

public DropInfo.Builder setCauseValue(int value)

Cause that the packet is dropped.

.google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for cause to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setDestinationIp(String value)

public DropInfo.Builder setDestinationIp(String value)

Destination IP address of the dropped packet (if relevant).

string destination_ip = 4;

Parameter
NameDescription
valueString

The destinationIp to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setDestinationIpBytes(ByteString value)

public DropInfo.Builder setDestinationIpBytes(ByteString value)

Destination IP address of the dropped packet (if relevant).

string destination_ip = 4;

Parameter
NameDescription
valueByteString

The bytes for destinationIp to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRegion(String value)

public DropInfo.Builder setRegion(String value)

Region of the dropped packet (if relevant).

string region = 5;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public DropInfo.Builder setRegionBytes(ByteString value)

Region of the dropped packet (if relevant).

string region = 5;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

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

public DropInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DropInfo.Builder
Overrides

setResourceUri(String value)

public DropInfo.Builder setResourceUri(String value)

URI of the resource that caused the drop.

string resource_uri = 2;

Parameter
NameDescription
valueString

The resourceUri to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setResourceUriBytes(ByteString value)

public DropInfo.Builder setResourceUriBytes(ByteString value)

URI of the resource that caused the drop.

string resource_uri = 2;

Parameter
NameDescription
valueByteString

The bytes for resourceUri to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setSourceIp(String value)

public DropInfo.Builder setSourceIp(String value)

Source IP address of the dropped packet (if relevant).

string source_ip = 3;

Parameter
NameDescription
valueString

The sourceIp to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setSourceIpBytes(ByteString value)

public DropInfo.Builder setSourceIpBytes(ByteString value)

Source IP address of the dropped packet (if relevant).

string source_ip = 3;

Parameter
NameDescription
valueByteString

The bytes for sourceIp to set.

Returns
TypeDescription
DropInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DropInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DropInfo.Builder
Overrides