Class AbortInfo.Builder (1.25.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.cloud.networkmanagement.v1.AbortInfo

Implements

AbortInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The projectsMissingPermission to add.

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

The projectsMissingPermission to add.

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

The bytes of the projectsMissingPermission to add.

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AbortInfo build()
Returns
TypeDescription
AbortInfo

buildPartial()

public AbortInfo buildPartial()
Returns
TypeDescription
AbortInfo

clear()

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

clearCause()

public AbortInfo.Builder clearCause()

Causes that the analysis is aborted.

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

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearResourceUri()

public AbortInfo.Builder clearResourceUri()

URI of the resource that caused the abort.

string resource_uri = 2;

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

clone()

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

getCause()

public AbortInfo.Cause getCause()

Causes that the analysis is aborted.

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

Returns
TypeDescription
AbortInfo.Cause

The cause.

getCauseValue()

public int getCauseValue()

Causes that the analysis is aborted.

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

Returns
TypeDescription
int

The enum numeric value on the wire for cause.

getDefaultInstanceForType()

public AbortInfo getDefaultInstanceForType()
Returns
TypeDescription
AbortInfo

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the projectsMissingPermission.

getResourceUri()

public String getResourceUri()

URI of the resource that caused the abort.

string resource_uri = 2;

Returns
TypeDescription
String

The resourceUri.

getResourceUriBytes()

public ByteString getResourceUriBytes()

URI of the resource that caused the abort.

string resource_uri = 2;

Returns
TypeDescription
ByteString

The bytes for resourceUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AbortInfo other)

public AbortInfo.Builder mergeFrom(AbortInfo other)
Parameter
NameDescription
otherAbortInfo
Returns
TypeDescription
AbortInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCause(AbortInfo.Cause value)

public AbortInfo.Builder setCause(AbortInfo.Cause value)

Causes that the analysis is aborted.

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

Parameter
NameDescription
valueAbortInfo.Cause

The cause to set.

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

setCauseValue(int value)

public AbortInfo.Builder setCauseValue(int value)

Causes that the analysis is aborted.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The projectsMissingPermission to set.

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

The resourceUri to set.

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

The bytes for resourceUri to set.

Returns
TypeDescription
AbortInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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