Class NamedSet.Builder (1.105.0)

public static final class NamedSet.Builder extends GeneratedMessage.Builder<NamedSet.Builder> implements NamedSetOrBuilder

Protobuf type google.cloud.compute.v1.NamedSet

Implements

NamedSetOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllElements(Iterable<? extends Expr> values)

public NamedSet.Builder addAllElements(Iterable<? extends Expr> values)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.Expr>
Returns
Type Description
NamedSet.Builder

addElements(Expr value)

public NamedSet.Builder addElements(Expr value)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
value Expr
Returns
Type Description
NamedSet.Builder

addElements(Expr.Builder builderForValue)

public NamedSet.Builder addElements(Expr.Builder builderForValue)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
builderForValue Expr.Builder
Returns
Type Description
NamedSet.Builder

addElements(int index, Expr value)

public NamedSet.Builder addElements(int index, Expr value)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameters
Name Description
index int
value Expr
Returns
Type Description
NamedSet.Builder

addElements(int index, Expr.Builder builderForValue)

public NamedSet.Builder addElements(int index, Expr.Builder builderForValue)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameters
Name Description
index int
builderForValue Expr.Builder
Returns
Type Description
NamedSet.Builder

addElementsBuilder()

public Expr.Builder addElementsBuilder()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
Expr.Builder

addElementsBuilder(int index)

public Expr.Builder addElementsBuilder(int index)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
index int
Returns
Type Description
Expr.Builder

build()

public NamedSet build()
Returns
Type Description
NamedSet

buildPartial()

public NamedSet buildPartial()
Returns
Type Description
NamedSet

clear()

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

clearDescription()

public NamedSet.Builder clearDescription()

An optional description of named set.

optional string description = 422937596;

Returns
Type Description
NamedSet.Builder

This builder for chaining.

clearElements()

public NamedSet.Builder clearElements()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
NamedSet.Builder

clearFingerprint()

public NamedSet.Builder clearFingerprint()

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Returns
Type Description
NamedSet.Builder

This builder for chaining.

clearName()

public NamedSet.Builder clearName()

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
NamedSet.Builder

This builder for chaining.

clearType()

public NamedSet.Builder clearType()

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
NamedSet.Builder

This builder for chaining.

getDefaultInstanceForType()

public NamedSet getDefaultInstanceForType()
Returns
Type Description
NamedSet

getDescription()

public String getDescription()

An optional description of named set.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of named set.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getElements(int index)

public Expr getElements(int index)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
index int
Returns
Type Description
Expr

getElementsBuilder(int index)

public Expr.Builder getElementsBuilder(int index)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
index int
Returns
Type Description
Expr.Builder

getElementsBuilderList()

public List<Expr.Builder> getElementsBuilderList()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
List<Builder>

getElementsCount()

public int getElementsCount()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
int

getElementsList()

public List<Expr> getElementsList()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
List<Expr>

getElementsOrBuilder(int index)

public ExprOrBuilder getElementsOrBuilder(int index)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
index int
Returns
Type Description
ExprOrBuilder

getElementsOrBuilderList()

public List<? extends ExprOrBuilder> getElementsOrBuilderList()

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.ExprOrBuilder>

getFingerprint()

public String getFingerprint()

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getName()

public String getName()

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasDescription()

public boolean hasDescription()

An optional description of named set.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasFingerprint()

public boolean hasFingerprint()

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasName()

public boolean hasName()

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasType()

public boolean hasType()

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NamedSet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeElements(int index)

public NamedSet.Builder removeElements(int index)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameter
Name Description
index int
Returns
Type Description
NamedSet.Builder

setDescription(String value)

public NamedSet.Builder setDescription(String value)

An optional description of named set.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NamedSet.Builder setDescriptionBytes(ByteString value)

An optional description of named set.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setElements(int index, Expr value)

public NamedSet.Builder setElements(int index, Expr value)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameters
Name Description
index int
value Expr
Returns
Type Description
NamedSet.Builder

setElements(int index, Expr.Builder builderForValue)

public NamedSet.Builder setElements(int index, Expr.Builder builderForValue)

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

repeated .google.cloud.compute.v1.Expr elements = 528531703;

Parameters
Name Description
index int
builderForValue Expr.Builder
Returns
Type Description
NamedSet.Builder

setFingerprint(String value)

public NamedSet.Builder setFingerprint(String value)

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public NamedSet.Builder setFingerprintBytes(ByteString value)

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels.

To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setName(String value)

public NamedSet.Builder setName(String value)

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NamedSet.Builder setNameBytes(ByteString value)

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setType(String value)

public NamedSet.Builder setType(String value)

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public NamedSet.Builder setTypeBytes(ByteString value)

This named set's type Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
NamedSet.Builder

This builder for chaining.