Class Evaluation.Builder (0.1.0)

public static final class Evaluation.Builder extends GeneratedMessage.Builder<Evaluation.Builder> implements EvaluationOrBuilder

Represents a Workload Manager Evaluation configuration. An Evaluation defines a set of rules to be validated against a scope of Cloud resources.

Protobuf type google.cloud.workloadmanager.v1.Evaluation

Implements

EvaluationOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRuleNames(Iterable<String> values)

public Evaluation.Builder addAllRuleNames(Iterable<String> values)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameter
Name Description
values Iterable<String>

The ruleNames to add.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

addRuleNames(String value)

public Evaluation.Builder addRuleNames(String value)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameter
Name Description
value String

The ruleNames to add.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

addRuleNamesBytes(ByteString value)

public Evaluation.Builder addRuleNamesBytes(ByteString value)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameter
Name Description
value ByteString

The bytes of the ruleNames to add.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

build()

public Evaluation build()
Returns
Type Description
Evaluation

buildPartial()

public Evaluation buildPartial()
Returns
Type Description
Evaluation

clear()

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

clearBigQueryDestination()

public Evaluation.Builder clearBigQueryDestination()

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.Builder

clearCreateTime()

public Evaluation.Builder clearCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.Builder

clearCustomRulesBucket()

public Evaluation.Builder clearCustomRulesBucket()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 11;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearDescription()

public Evaluation.Builder clearDescription()

Description of the Evaluation.

string description = 2;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearEvaluationType()

public Evaluation.Builder clearEvaluationType()

Evaluation type.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearKmsKey()

public Evaluation.Builder clearKmsKey()

Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. The key will be used for CMEK encryption of the evaluation resource.

string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearLabels()

public Evaluation.Builder clearLabels()
Returns
Type Description
Evaluation.Builder

clearName()

public Evaluation.Builder clearName()

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

string name = 1;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearResourceFilter()

public Evaluation.Builder clearResourceFilter()

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Returns
Type Description
Evaluation.Builder

clearResourceStatus()

public Evaluation.Builder clearResourceStatus()

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.Builder

clearRuleNames()

public Evaluation.Builder clearRuleNames()

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearSchedule()

public Evaluation.Builder clearSchedule()

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Returns
Type Description
Evaluation.Builder

This builder for chaining.

clearUpdateTime()

public Evaluation.Builder clearUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 9;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBigQueryDestination()

public BigQueryDestination getBigQueryDestination()

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination

The bigQueryDestination.

getBigQueryDestinationBuilder()

public BigQueryDestination.Builder getBigQueryDestinationBuilder()

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.Builder

getBigQueryDestinationOrBuilder()

public BigQueryDestinationOrBuilder getBigQueryDestinationOrBuilder()

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestinationOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCustomRulesBucket()

public String getCustomRulesBucket()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 11;

Returns
Type Description
String

The customRulesBucket.

getCustomRulesBucketBytes()

public ByteString getCustomRulesBucketBytes()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 11;

Returns
Type Description
ByteString

The bytes for customRulesBucket.

getDefaultInstanceForType()

public Evaluation getDefaultInstanceForType()
Returns
Type Description
Evaluation

getDescription()

public String getDescription()

Description of the Evaluation.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the Evaluation.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEvaluationType()

public Evaluation.EvaluationType getEvaluationType()

Evaluation type.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12;

Returns
Type Description
Evaluation.EvaluationType

The evaluationType.

getEvaluationTypeValue()

public int getEvaluationTypeValue()

Evaluation type.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12;

Returns
Type Description
int

The enum numeric value on the wire for evaluationType.

getKmsKey()

public String getKmsKey()

Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. The key will be used for CMEK encryption of the evaluation resource.

string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. The key will be used for CMEK encryption of the evaluation resource.

string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKey.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 9;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 9;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 9;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 9;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResourceFilter()

public ResourceFilter getResourceFilter()

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Returns
Type Description
ResourceFilter

The resourceFilter.

getResourceFilterBuilder()

public ResourceFilter.Builder getResourceFilterBuilder()

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Returns
Type Description
ResourceFilter.Builder

getResourceFilterOrBuilder()

public ResourceFilterOrBuilder getResourceFilterOrBuilder()

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Returns
Type Description
ResourceFilterOrBuilder

getResourceStatus()

public ResourceStatus getResourceStatus()

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceStatus

The resourceStatus.

getResourceStatusBuilder()

public ResourceStatus.Builder getResourceStatusBuilder()

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceStatus.Builder

getResourceStatusOrBuilder()

public ResourceStatusOrBuilder getResourceStatusOrBuilder()

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceStatusOrBuilder

getRuleNames(int index)

public String getRuleNames(int index)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ruleNames at the given index.

getRuleNamesBytes(int index)

public ByteString getRuleNamesBytes(int index)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ruleNames at the given index.

getRuleNamesCount()

public int getRuleNamesCount()

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Returns
Type Description
int

The count of ruleNames.

getRuleNamesList()

public ProtocolStringList getRuleNamesList()

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Returns
Type Description
ProtocolStringList

A list containing the ruleNames.

getSchedule()

public String getSchedule()

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Returns
Type Description
String

The schedule.

getScheduleBytes()

public ByteString getScheduleBytes()

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Returns
Type Description
ByteString

The bytes for schedule.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBigQueryDestination()

public boolean hasBigQueryDestination()

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the bigQueryDestination field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasResourceFilter()

public boolean hasResourceFilter()

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Returns
Type Description
boolean

Whether the resourceFilter field is set.

hasResourceStatus()

public boolean hasResourceStatus()

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the resourceStatus field is set.

hasSchedule()

public boolean hasSchedule()

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Returns
Type Description
boolean

Whether the schedule field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigQueryDestination(BigQueryDestination value)

public Evaluation.Builder mergeBigQueryDestination(BigQueryDestination value)

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BigQueryDestination
Returns
Type Description
Evaluation.Builder

mergeCreateTime(Timestamp value)

public Evaluation.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Evaluation.Builder

mergeFrom(Evaluation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceFilter(ResourceFilter value)

public Evaluation.Builder mergeResourceFilter(ResourceFilter value)

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Parameter
Name Description
value ResourceFilter
Returns
Type Description
Evaluation.Builder

mergeResourceStatus(ResourceStatus value)

public Evaluation.Builder mergeResourceStatus(ResourceStatus value)

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceStatus
Returns
Type Description
Evaluation.Builder

mergeUpdateTime(Timestamp value)

public Evaluation.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Evaluation.Builder

putAllLabels(Map<String,String> values)

public Evaluation.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 9;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Evaluation.Builder

putLabels(String key, String value)

public Evaluation.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 9;

Parameters
Name Description
key String
value String
Returns
Type Description
Evaluation.Builder

removeLabels(String key)

public Evaluation.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 9;

Parameter
Name Description
key String
Returns
Type Description
Evaluation.Builder

setBigQueryDestination(BigQueryDestination value)

public Evaluation.Builder setBigQueryDestination(BigQueryDestination value)

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BigQueryDestination
Returns
Type Description
Evaluation.Builder

setBigQueryDestination(BigQueryDestination.Builder builderForValue)

public Evaluation.Builder setBigQueryDestination(BigQueryDestination.Builder builderForValue)

Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery.

.google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue BigQueryDestination.Builder
Returns
Type Description
Evaluation.Builder

setCreateTime(Timestamp value)

public Evaluation.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Evaluation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Evaluation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Evaluation.Builder

setCustomRulesBucket(String value)

public Evaluation.Builder setCustomRulesBucket(String value)

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 11;

Parameter
Name Description
value String

The customRulesBucket to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setCustomRulesBucketBytes(ByteString value)

public Evaluation.Builder setCustomRulesBucketBytes(ByteString value)

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 11;

Parameter
Name Description
value ByteString

The bytes for customRulesBucket to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setDescription(String value)

public Evaluation.Builder setDescription(String value)

Description of the Evaluation.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Evaluation.Builder setDescriptionBytes(ByteString value)

Description of the Evaluation.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setEvaluationType(Evaluation.EvaluationType value)

public Evaluation.Builder setEvaluationType(Evaluation.EvaluationType value)

Evaluation type.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12;

Parameter
Name Description
value Evaluation.EvaluationType

The evaluationType to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setEvaluationTypeValue(int value)

public Evaluation.Builder setEvaluationTypeValue(int value)

Evaluation type.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12;

Parameter
Name Description
value int

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

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setKmsKey(String value)

public Evaluation.Builder setKmsKey(String value)

Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. The key will be used for CMEK encryption of the evaluation resource.

string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public Evaluation.Builder setKmsKeyBytes(ByteString value)

Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. The key will be used for CMEK encryption of the evaluation resource.

string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setName(String value)

public Evaluation.Builder setName(String value)

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Evaluation.Builder setNameBytes(ByteString value)

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setResourceFilter(ResourceFilter value)

public Evaluation.Builder setResourceFilter(ResourceFilter value)

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Parameter
Name Description
value ResourceFilter
Returns
Type Description
Evaluation.Builder

setResourceFilter(ResourceFilter.Builder builderForValue)

public Evaluation.Builder setResourceFilter(ResourceFilter.Builder builderForValue)

Resource filter for an evaluation defining the scope of resources to be evaluated.

.google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3;

Parameter
Name Description
builderForValue ResourceFilter.Builder
Returns
Type Description
Evaluation.Builder

setResourceStatus(ResourceStatus value)

public Evaluation.Builder setResourceStatus(ResourceStatus value)

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceStatus
Returns
Type Description
Evaluation.Builder

setResourceStatus(ResourceStatus.Builder builderForValue)

public Evaluation.Builder setResourceStatus(ResourceStatus.Builder builderForValue)

Output only. [Output only] The current lifecycle state of the evaluation resource.

.google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ResourceStatus.Builder
Returns
Type Description
Evaluation.Builder

setRuleNames(int index, String value)

public Evaluation.Builder setRuleNames(int index, String value)

The names of the rules used for this evaluation.

repeated string rule_names = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The ruleNames to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setSchedule(String value)

public Evaluation.Builder setSchedule(String value)

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Parameter
Name Description
value String

The schedule to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setScheduleBytes(ByteString value)

public Evaluation.Builder setScheduleBytes(ByteString value)

Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules:

  • 0 */1 * * * # Hourly
  • 0 */6 * * * # Every 6 hours
  • 0 */12 * * * # Every 12 hours
  • 0 0 */1 * * # Daily
  • 0 0 */7 * * # Weekly
  • 0 0 */14 * * # Every 14 days
  • 0 0 1 */1 * # Monthly

optional string schedule = 10;

Parameter
Name Description
value ByteString

The bytes for schedule to set.

Returns
Type Description
Evaluation.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Evaluation.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Evaluation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Evaluation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Evaluation.Builder