public static final class GceInstanceFilter.Builder extends GeneratedMessage.Builder<GceInstanceFilter.Builder> implements GceInstanceFilterOrBuilderA filter for matching Compute Engine instances.
Protobuf type google.cloud.workloadmanager.v1.GceInstanceFilter
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GceInstanceFilter.BuilderImplements
GceInstanceFilterOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GceInstanceFilter.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GceInstanceFilter.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe serviceAccounts to set. |
| Returns | |
|---|---|
| Type | Description |
GceInstanceFilter.Builder |
This builder for chaining. |