Class ListCasesRequest.Builder (0.3.0)

public static final class ListCasesRequest.Builder extends GeneratedMessageV3.Builder<ListCasesRequest.Builder> implements ListCasesRequestOrBuilder

The request message for the ListCases endpoint.

Protobuf type google.cloud.support.v2.ListCasesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListCasesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

build()

public ListCasesRequest build()
Returns
TypeDescription
ListCasesRequest

buildPartial()

public ListCasesRequest buildPartial()
Returns
TypeDescription
ListCasesRequest

clear()

public ListCasesRequest.Builder clear()
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListCasesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

clearFilter()

public ListCasesRequest.Builder clearFilter()

An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases.

Filter expressions use the following fields with the operators equals (=) and AND:

  • state: The accepted values are OPEN or CLOSED.
  • priority: The accepted values are P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2.
  • creator.email: The email address of the case creator.

    Examples:

  • state=CLOSED

  • state=OPEN AND creator.email="tester@example.com"
  • state=OPEN AND (priority=P0 OR priority=P1)

string filter = 2;

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCasesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

clearPageSize()

public ListCasesRequest.Builder clearPageSize()

The maximum number of cases fetched with each request. Defaults to 10.

int32 page_size = 4;

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

clearPageToken()

public ListCasesRequest.Builder clearPageToken()

A token identifying the page of results to return. If unspecified, the first page is retrieved.

string page_token = 5;

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

clearParent()

public ListCasesRequest.Builder clearParent()

Required. The fully qualified name of parent resource to list cases under.

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

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

clone()

public ListCasesRequest.Builder clone()
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

getDefaultInstanceForType()

public ListCasesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListCasesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilter()

public String getFilter()

An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases.

Filter expressions use the following fields with the operators equals (=) and AND:

  • state: The accepted values are OPEN or CLOSED.
  • priority: The accepted values are P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2.
  • creator.email: The email address of the case creator.

    Examples:

  • state=CLOSED

  • state=OPEN AND creator.email="tester@example.com"
  • state=OPEN AND (priority=P0 OR priority=P1)

string filter = 2;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases.

Filter expressions use the following fields with the operators equals (=) and AND:

  • state: The accepted values are OPEN or CLOSED.
  • priority: The accepted values are P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2.
  • creator.email: The email address of the case creator.

    Examples:

  • state=CLOSED

  • state=OPEN AND creator.email="tester@example.com"
  • state=OPEN AND (priority=P0 OR priority=P1)

string filter = 2;

Returns
TypeDescription
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

The maximum number of cases fetched with each request. Defaults to 10.

int32 page_size = 4;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying the page of results to return. If unspecified, the first page is retrieved.

string page_token = 5;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying the page of results to return. If unspecified, the first page is retrieved.

string page_token = 5;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The fully qualified name of parent resource to list cases under.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The fully qualified name of parent resource to list cases under.

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCasesRequest other)

public ListCasesRequest.Builder mergeFrom(ListCasesRequest other)
Parameter
NameDescription
otherListCasesRequest
Returns
TypeDescription
ListCasesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListCasesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCasesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListCasesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCasesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListCasesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

setFilter(String value)

public ListCasesRequest.Builder setFilter(String value)

An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases.

Filter expressions use the following fields with the operators equals (=) and AND:

  • state: The accepted values are OPEN or CLOSED.
  • priority: The accepted values are P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2.
  • creator.email: The email address of the case creator.

    Examples:

  • state=CLOSED

  • state=OPEN AND creator.email="tester@example.com"
  • state=OPEN AND (priority=P0 OR priority=P1)

string filter = 2;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListCasesRequest.Builder setFilterBytes(ByteString value)

An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases.

Filter expressions use the following fields with the operators equals (=) and AND:

  • state: The accepted values are OPEN or CLOSED.
  • priority: The accepted values are P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2.
  • creator.email: The email address of the case creator.

    Examples:

  • state=CLOSED

  • state=OPEN AND creator.email="tester@example.com"
  • state=OPEN AND (priority=P0 OR priority=P1)

string filter = 2;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListCasesRequest.Builder setPageSize(int value)

The maximum number of cases fetched with each request. Defaults to 10.

int32 page_size = 4;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListCasesRequest.Builder setPageToken(String value)

A token identifying the page of results to return. If unspecified, the first page is retrieved.

string page_token = 5;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListCasesRequest.Builder setPageTokenBytes(ByteString value)

A token identifying the page of results to return. If unspecified, the first page is retrieved.

string page_token = 5;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setParent(String value)

public ListCasesRequest.Builder setParent(String value)

Required. The fully qualified name of parent resource to list cases under.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListCasesRequest.Builder setParentBytes(ByteString value)

Required. The fully qualified name of parent resource to list cases under.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListCasesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListCasesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCasesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListCasesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCasesRequest.Builder
Overrides