Class ListRuleRevisionsRequest.Builder (0.21.0)

public static final class ListRuleRevisionsRequest.Builder extends GeneratedMessage.Builder<ListRuleRevisionsRequest.Builder> implements ListRuleRevisionsRequestOrBuilder

Request message for ListRuleRevisions method.

Protobuf type google.cloud.chronicle.v1.ListRuleRevisionsRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListRuleRevisionsRequest build()
Returns
Type Description
ListRuleRevisionsRequest

buildPartial()

public ListRuleRevisionsRequest buildPartial()
Returns
Type Description
ListRuleRevisionsRequest

clear()

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

clearName()

public ListRuleRevisionsRequest.Builder clearName()

Required. The name of the rule to list revisions for. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}

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

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

clearPageSize()

public ListRuleRevisionsRequest.Builder clearPageSize()

The maximum number of revisions to return per page. The service may return fewer than this value. If unspecified, at most 100 revisions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

int32 page_size = 2;

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

clearPageToken()

public ListRuleRevisionsRequest.Builder clearPageToken()

The page token, received from a previous ListRuleRevisions call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRuleRevisions must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

clearView()

public ListRuleRevisionsRequest.Builder clearView()

The view field indicates the scope of fields to populate for the revision being returned. If unspecified, defaults to BASIC.

.google.cloud.chronicle.v1.RuleView view = 4;

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListRuleRevisionsRequest getDefaultInstanceForType()
Returns
Type Description
ListRuleRevisionsRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the rule to list revisions for. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the rule to list revisions for. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}

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

Returns
Type Description
ByteString

The bytes for name.

getPageSize()

public int getPageSize()

The maximum number of revisions to return per page. The service may return fewer than this value. If unspecified, at most 100 revisions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

The page token, received from a previous ListRuleRevisions call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRuleRevisions must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

The page token, received from a previous ListRuleRevisions call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRuleRevisions must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getView()

public RuleView getView()

The view field indicates the scope of fields to populate for the revision being returned. If unspecified, defaults to BASIC.

.google.cloud.chronicle.v1.RuleView view = 4;

Returns
Type Description
RuleView

The view.

getViewValue()

public int getViewValue()

The view field indicates the scope of fields to populate for the revision being returned. If unspecified, defaults to BASIC.

.google.cloud.chronicle.v1.RuleView view = 4;

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRuleRevisionsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public ListRuleRevisionsRequest.Builder setName(String value)

Required. The name of the rule to list revisions for. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ListRuleRevisionsRequest.Builder setNameBytes(ByteString value)

Required. The name of the rule to list revisions for. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListRuleRevisionsRequest.Builder setPageSize(int value)

The maximum number of revisions to return per page. The service may return fewer than this value. If unspecified, at most 100 revisions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListRuleRevisionsRequest.Builder setPageToken(String value)

The page token, received from a previous ListRuleRevisions call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRuleRevisions must match the call that provided the page token.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListRuleRevisionsRequest.Builder setPageTokenBytes(ByteString value)

The page token, received from a previous ListRuleRevisions call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRuleRevisions must match the call that provided the page token.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setView(RuleView value)

public ListRuleRevisionsRequest.Builder setView(RuleView value)

The view field indicates the scope of fields to populate for the revision being returned. If unspecified, defaults to BASIC.

.google.cloud.chronicle.v1.RuleView view = 4;

Parameter
Name Description
value RuleView

The view to set.

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.

setViewValue(int value)

public ListRuleRevisionsRequest.Builder setViewValue(int value)

The view field indicates the scope of fields to populate for the revision being returned. If unspecified, defaults to BASIC.

.google.cloud.chronicle.v1.RuleView view = 4;

Parameter
Name Description
value int

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

Returns
Type Description
ListRuleRevisionsRequest.Builder

This builder for chaining.