Class DropInfo.Builder (0.15.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.events.cloud.networkmanagement.v1.DropInfo

Implements

DropInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DropInfo build()
Returns
Type Description
DropInfo

buildPartial()

public DropInfo buildPartial()
Returns
Type Description
DropInfo

clear()

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

clearCause()

public DropInfo.Builder clearCause()

Cause that the packet is dropped.

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

Returns
Type Description
DropInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceUri()

public DropInfo.Builder clearResourceUri()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
Type Description
DropInfo.Builder

This builder for chaining.

clone()

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

getCause()

public DropInfo.Cause getCause()

Cause that the packet is dropped.

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

Returns
Type Description
DropInfo.Cause

The cause.

getCauseValue()

public int getCauseValue()

Cause that the packet is dropped.

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

Returns
Type Description
int

The enum numeric value on the wire for cause.

getDefaultInstanceForType()

public DropInfo getDefaultInstanceForType()
Returns
Type Description
DropInfo

getDescriptorForType()

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

getResourceUri()

public String getResourceUri()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
Type Description
String

The resourceUri.

getResourceUriBytes()

public ByteString getResourceUriBytes()

URI of the resource that caused the drop.

string resource_uri = 2;

Returns
Type Description
ByteString

The bytes for resourceUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DropInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCause(DropInfo.Cause value)

public DropInfo.Builder setCause(DropInfo.Cause value)

Cause that the packet is dropped.

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

Parameter
Name Description
value DropInfo.Cause

The cause to set.

Returns
Type Description
DropInfo.Builder

This builder for chaining.

setCauseValue(int value)

public DropInfo.Builder setCauseValue(int value)

Cause that the packet is dropped.

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

Parameter
Name Description
value int

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

Returns
Type Description
DropInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DropInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The resourceUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resourceUri to set.

Returns
Type Description
DropInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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