Class GceInstanceFilter.Builder (0.1.0)

public static final class GceInstanceFilter.Builder extends GeneratedMessage.Builder<GceInstanceFilter.Builder> implements GceInstanceFilterOrBuilder

A filter for matching Compute Engine instances.

Protobuf type google.cloud.workloadmanager.v1.GceInstanceFilter

Static Methods

getDescriptor()

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

Methods

addAllServiceAccounts(Iterable<String> values)

public GceInstanceFilter.Builder addAllServiceAccounts(Iterable<String> values)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameter
Name Description
values Iterable<String>

The serviceAccounts to add.

Returns
Type Description
GceInstanceFilter.Builder

This builder for chaining.

addServiceAccounts(String value)

public GceInstanceFilter.Builder addServiceAccounts(String value)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameter
Name Description
value String

The serviceAccounts to add.

Returns
Type Description
GceInstanceFilter.Builder

This builder for chaining.

addServiceAccountsBytes(ByteString value)

public GceInstanceFilter.Builder addServiceAccountsBytes(ByteString value)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameter
Name Description
value ByteString

The bytes of the serviceAccounts to add.

Returns
Type Description
GceInstanceFilter.Builder

This builder for chaining.

build()

public GceInstanceFilter build()
Returns
Type Description
GceInstanceFilter

buildPartial()

public GceInstanceFilter buildPartial()
Returns
Type Description
GceInstanceFilter

clear()

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

clearServiceAccounts()

public GceInstanceFilter.Builder clearServiceAccounts()

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Returns
Type Description
GceInstanceFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public GceInstanceFilter getDefaultInstanceForType()
Returns
Type Description
GceInstanceFilter

getDescriptorForType()

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

getServiceAccounts(int index)

public String getServiceAccounts(int index)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The serviceAccounts at the given index.

getServiceAccountsBytes(int index)

public ByteString getServiceAccountsBytes(int index)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the serviceAccounts at the given index.

getServiceAccountsCount()

public int getServiceAccountsCount()

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Returns
Type Description
int

The count of serviceAccounts.

getServiceAccountsList()

public ProtocolStringList getServiceAccountsList()

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Returns
Type Description
ProtocolStringList

A list containing the serviceAccounts.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GceInstanceFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setServiceAccounts(int index, String value)

public GceInstanceFilter.Builder setServiceAccounts(int index, String value)

If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation.

repeated string service_accounts = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The serviceAccounts to set.

Returns
Type Description
GceInstanceFilter.Builder

This builder for chaining.