Class AbortInfo.Builder (0.15.0)

public static final class AbortInfo.Builder extends GeneratedMessageV3.Builder<AbortInfo.Builder> implements AbortInfoOrBuilder

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

Protobuf type google.events.cloud.networkmanagement.v1.AbortInfo

Implements

AbortInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllProjectsMissingPermission(Iterable<String> values)

public AbortInfo.Builder addAllProjectsMissingPermission(Iterable<String> values)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameter
Name Description
values Iterable<String>

The projectsMissingPermission to add.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

addProjectsMissingPermission(String value)

public AbortInfo.Builder addProjectsMissingPermission(String value)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameter
Name Description
value String

The projectsMissingPermission to add.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

addProjectsMissingPermissionBytes(ByteString value)

public AbortInfo.Builder addProjectsMissingPermissionBytes(ByteString value)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameter
Name Description
value ByteString

The bytes of the projectsMissingPermission to add.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AbortInfo build()
Returns
Type Description
AbortInfo

buildPartial()

public AbortInfo buildPartial()
Returns
Type Description
AbortInfo

clear()

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

clearCause()

public AbortInfo.Builder clearCause()

Causes that the analysis is aborted.

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

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectsMissingPermission()

public AbortInfo.Builder clearProjectsMissingPermission()

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

clearResourceUri()

public AbortInfo.Builder clearResourceUri()

URI of the resource that caused the abort.

string resource_uri = 2;

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

clone()

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

getCause()

public AbortInfo.Cause getCause()

Causes that the analysis is aborted.

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

Returns
Type Description
AbortInfo.Cause

The cause.

getCauseValue()

public int getCauseValue()

Causes that the analysis is aborted.

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

Returns
Type Description
int

The enum numeric value on the wire for cause.

getDefaultInstanceForType()

public AbortInfo getDefaultInstanceForType()
Returns
Type Description
AbortInfo

getDescriptorForType()

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

getProjectsMissingPermission(int index)

public String getProjectsMissingPermission(int index)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The projectsMissingPermission at the given index.

getProjectsMissingPermissionBytes(int index)

public ByteString getProjectsMissingPermissionBytes(int index)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the projectsMissingPermission at the given index.

getProjectsMissingPermissionCount()

public int getProjectsMissingPermissionCount()

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Returns
Type Description
int

The count of projectsMissingPermission.

getProjectsMissingPermissionList()

public ProtocolStringList getProjectsMissingPermissionList()

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Returns
Type Description
ProtocolStringList

A list containing the projectsMissingPermission.

getResourceUri()

public String getResourceUri()

URI of the resource that caused the abort.

string resource_uri = 2;

Returns
Type Description
String

The resourceUri.

getResourceUriBytes()

public ByteString getResourceUriBytes()

URI of the resource that caused the abort.

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(AbortInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCause(AbortInfo.Cause value)

public AbortInfo.Builder setCause(AbortInfo.Cause value)

Causes that the analysis is aborted.

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

Parameter
Name Description
value AbortInfo.Cause

The cause to set.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

setCauseValue(int value)

public AbortInfo.Builder setCauseValue(int value)

Causes that the analysis is aborted.

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

Parameter
Name Description
value int

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

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectsMissingPermission(int index, String value)

public AbortInfo.Builder setProjectsMissingPermission(int index, String value)

List of project IDs that the user has specified in the request but does not have permission to access network configs. Analysis is aborted in this case with the PERMISSION_DENIED cause.

repeated string projects_missing_permission = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The projectsMissingPermission to set.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

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

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

setResourceUri(String value)

public AbortInfo.Builder setResourceUri(String value)

URI of the resource that caused the abort.

string resource_uri = 2;

Parameter
Name Description
value String

The resourceUri to set.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

setResourceUriBytes(ByteString value)

public AbortInfo.Builder setResourceUriBytes(ByteString value)

URI of the resource that caused the abort.

string resource_uri = 2;

Parameter
Name Description
value ByteString

The bytes for resourceUri to set.

Returns
Type Description
AbortInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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