Class ListRulesRequest.Builder (0.1.0)

public static final class ListRulesRequest.Builder extends GeneratedMessage.Builder<ListRulesRequest.Builder> implements ListRulesRequestOrBuilder

Request message for the ListRules RPC.

Protobuf type google.cloud.workloadmanager.v1.ListRulesRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListRulesRequest build()
Returns
Type Description
ListRulesRequest

buildPartial()

public ListRulesRequest buildPartial()
Returns
Type Description
ListRulesRequest

clear()

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

clearCustomRulesBucket()

public ListRulesRequest.Builder clearCustomRulesBucket()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 5;

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

clearEvaluationType()

public ListRulesRequest.Builder clearEvaluationType()

Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

clearFilter()

public ListRulesRequest.Builder clearFilter()

Filter based on primary_category, secondary_category.

string filter = 4;

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

clearPageSize()

public ListRulesRequest.Builder clearPageSize()

Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

int32 page_size = 2;

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

clearPageToken()

public ListRulesRequest.Builder clearPageToken()

A token identifying a page of results the server should return.

string page_token = 3;

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

clearParent()

public ListRulesRequest.Builder clearParent()

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

getCustomRulesBucket()

public String getCustomRulesBucket()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 5;

Returns
Type Description
String

The customRulesBucket.

getCustomRulesBucketBytes()

public ByteString getCustomRulesBucketBytes()

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 5;

Returns
Type Description
ByteString

The bytes for customRulesBucket.

getDefaultInstanceForType()

public ListRulesRequest getDefaultInstanceForType()
Returns
Type Description
ListRulesRequest

getDescriptorForType()

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

getEvaluationType()

public Evaluation.EvaluationType getEvaluationType()

Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.EvaluationType

The evaluationType.

getEvaluationTypeValue()

public int getEvaluationTypeValue()

Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for evaluationType.

getFilter()

public String getFilter()

Filter based on primary_category, secondary_category.

string filter = 4;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Filter based on primary_category, secondary_category.

string filter = 4;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying a page of results the server should return.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying a page of results the server should return.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRulesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCustomRulesBucket(String value)

public ListRulesRequest.Builder setCustomRulesBucket(String value)

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 5;

Parameter
Name Description
value String

The customRulesBucket to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setCustomRulesBucketBytes(ByteString value)

public ListRulesRequest.Builder setCustomRulesBucketBytes(ByteString value)

The Cloud Storage bucket name for custom rules.

string custom_rules_bucket = 5;

Parameter
Name Description
value ByteString

The bytes for customRulesBucket to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setEvaluationType(Evaluation.EvaluationType value)

public ListRulesRequest.Builder setEvaluationType(Evaluation.EvaluationType value)

Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Evaluation.EvaluationType

The evaluationType to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setEvaluationTypeValue(int value)

public ListRulesRequest.Builder setEvaluationTypeValue(int value)

Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.

.google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setFilter(String value)

public ListRulesRequest.Builder setFilter(String value)

Filter based on primary_category, secondary_category.

string filter = 4;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListRulesRequest.Builder setFilterBytes(ByteString value)

Filter based on primary_category, secondary_category.

string filter = 4;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListRulesRequest.Builder setPageSize(int value)

Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListRulesRequest.Builder setPageToken(String value)

A token identifying a page of results the server should return.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListRulesRequest.Builder setPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setParent(String value)

public ListRulesRequest.Builder setParent(String value)

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListRulesRequest.Builder setParentBytes(ByteString value)

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListRulesRequest.Builder

This builder for chaining.