Class NetworkAttachmentsScopedList.Builder (1.20.0)

public static final class NetworkAttachmentsScopedList.Builder extends GeneratedMessageV3.Builder<NetworkAttachmentsScopedList.Builder> implements NetworkAttachmentsScopedListOrBuilder

Protobuf type google.cloud.compute.v1.NetworkAttachmentsScopedList

Static Methods

getDescriptor()

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

Methods

addAllNetworkAttachments(Iterable<? extends NetworkAttachment> values)

public NetworkAttachmentsScopedList.Builder addAllNetworkAttachments(Iterable<? extends NetworkAttachment> values)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NetworkAttachment>
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

addNetworkAttachments(NetworkAttachment value)

public NetworkAttachmentsScopedList.Builder addNetworkAttachments(NetworkAttachment value)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
valueNetworkAttachment
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

addNetworkAttachments(NetworkAttachment.Builder builderForValue)

public NetworkAttachmentsScopedList.Builder addNetworkAttachments(NetworkAttachment.Builder builderForValue)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
builderForValueNetworkAttachment.Builder
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

addNetworkAttachments(int index, NetworkAttachment value)

public NetworkAttachmentsScopedList.Builder addNetworkAttachments(int index, NetworkAttachment value)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameters
NameDescription
indexint
valueNetworkAttachment
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

addNetworkAttachments(int index, NetworkAttachment.Builder builderForValue)

public NetworkAttachmentsScopedList.Builder addNetworkAttachments(int index, NetworkAttachment.Builder builderForValue)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameters
NameDescription
indexint
builderForValueNetworkAttachment.Builder
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

addNetworkAttachmentsBuilder()

public NetworkAttachment.Builder addNetworkAttachmentsBuilder()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
NetworkAttachment.Builder

addNetworkAttachmentsBuilder(int index)

public NetworkAttachment.Builder addNetworkAttachmentsBuilder(int index)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAttachment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkAttachmentsScopedList build()
Returns
TypeDescription
NetworkAttachmentsScopedList

buildPartial()

public NetworkAttachmentsScopedList buildPartial()
Returns
TypeDescription
NetworkAttachmentsScopedList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkAttachments()

public NetworkAttachmentsScopedList.Builder clearNetworkAttachments()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWarning()

public NetworkAttachmentsScopedList.Builder clearWarning()

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

clone()

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

getDefaultInstanceForType()

public NetworkAttachmentsScopedList getDefaultInstanceForType()
Returns
TypeDescription
NetworkAttachmentsScopedList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworkAttachments(int index)

public NetworkAttachment getNetworkAttachments(int index)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAttachment

getNetworkAttachmentsBuilder(int index)

public NetworkAttachment.Builder getNetworkAttachmentsBuilder(int index)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAttachment.Builder

getNetworkAttachmentsBuilderList()

public List<NetworkAttachment.Builder> getNetworkAttachmentsBuilderList()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
List<Builder>

getNetworkAttachmentsCount()

public int getNetworkAttachmentsCount()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
int

getNetworkAttachmentsList()

public List<NetworkAttachment> getNetworkAttachmentsList()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
List<NetworkAttachment>

getNetworkAttachmentsOrBuilder(int index)

public NetworkAttachmentOrBuilder getNetworkAttachmentsOrBuilder(int index)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAttachmentOrBuilder

getNetworkAttachmentsOrBuilderList()

public List<? extends NetworkAttachmentOrBuilder> getNetworkAttachmentsOrBuilderList()

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.NetworkAttachmentOrBuilder>

getWarning()

public Warning getWarning()

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
TypeDescription
Warning

The warning.

getWarningBuilder()

public Warning.Builder getWarningBuilder()

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
TypeDescription
Warning.Builder

getWarningOrBuilder()

public WarningOrBuilder getWarningOrBuilder()

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
TypeDescription
WarningOrBuilder

hasWarning()

public boolean hasWarning()

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
TypeDescription
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkAttachmentsScopedList other)

public NetworkAttachmentsScopedList.Builder mergeFrom(NetworkAttachmentsScopedList other)
Parameter
NameDescription
otherNetworkAttachmentsScopedList
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWarning(Warning value)

public NetworkAttachmentsScopedList.Builder mergeWarning(Warning value)

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
NameDescription
valueWarning
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

removeNetworkAttachments(int index)

public NetworkAttachmentsScopedList.Builder removeNetworkAttachments(int index)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkAttachments(int index, NetworkAttachment value)

public NetworkAttachmentsScopedList.Builder setNetworkAttachments(int index, NetworkAttachment value)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameters
NameDescription
indexint
valueNetworkAttachment
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

setNetworkAttachments(int index, NetworkAttachment.Builder builderForValue)

public NetworkAttachmentsScopedList.Builder setNetworkAttachments(int index, NetworkAttachment.Builder builderForValue)

A list of NetworkAttachments contained in this scope.

repeated .google.cloud.compute.v1.NetworkAttachment network_attachments = 521514783;

Parameters
NameDescription
indexint
builderForValueNetworkAttachment.Builder
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarning(Warning value)

public NetworkAttachmentsScopedList.Builder setWarning(Warning value)

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
NameDescription
valueWarning
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder

setWarning(Warning.Builder builderForValue)

public NetworkAttachmentsScopedList.Builder setWarning(Warning.Builder builderForValue)

Informational warning which replaces the list of network attachments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
NameDescription
builderForValueWarning.Builder
Returns
TypeDescription
NetworkAttachmentsScopedList.Builder