Class ListEventsRequest.Builder (0.164.0-beta)

public static final class ListEventsRequest.Builder extends GeneratedMessageV3.Builder<ListEventsRequest.Builder> implements ListEventsRequestOrBuilder

Specifies a set of error events to return.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ListEventsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListEventsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListEventsRequest.Builder
Overrides

build()

public ListEventsRequest build()
Returns
Type Description
ListEventsRequest

buildPartial()

public ListEventsRequest buildPartial()
Returns
Type Description
ListEventsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListEventsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListEventsRequest.Builder
Overrides

clearGroupId()

public ListEventsRequest.Builder clearGroupId()

Required. The group for which events shall be returned.

string group_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListEventsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListEventsRequest.Builder
Overrides

clearPageSize()

public ListEventsRequest.Builder clearPageSize()

Optional. The maximum number of results to return per response.

int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

clearPageToken()

public ListEventsRequest.Builder clearPageToken()

Optional. A next_page_token provided by a previous response.

string page_token = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

clearProjectName()

public ListEventsRequest.Builder clearProjectName()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID.

Example: projects/my-project-123.

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

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

clearServiceFilter()

public ListEventsRequest.Builder clearServiceFilter()

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListEventsRequest.Builder

clearTimeRange()

public ListEventsRequest.Builder clearTimeRange()

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListEventsRequest.Builder

clone()

public ListEventsRequest.Builder clone()
Returns
Type Description
ListEventsRequest.Builder
Overrides

getDefaultInstanceForType()

public ListEventsRequest getDefaultInstanceForType()
Returns
Type Description
ListEventsRequest

getDescriptorForType()

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

getGroupId()

public String getGroupId()

Required. The group for which events shall be returned.

string group_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The groupId.

getGroupIdBytes()

public ByteString getGroupIdBytes()

Required. The group for which events shall be returned.

string group_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for groupId.

getPageSize()

public int getPageSize()

Optional. The maximum number of results to return per response.

int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A next_page_token provided by a previous response.

string page_token = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A next_page_token provided by a previous response.

string page_token = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getProjectName()

public String getProjectName()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID.

Example: projects/my-project-123.

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

Returns
Type Description
String

The projectName.

getProjectNameBytes()

public ByteString getProjectNameBytes()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID.

Example: projects/my-project-123.

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

Returns
Type Description
ByteString

The bytes for projectName.

getServiceFilter()

public ServiceContextFilter getServiceFilter()

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceContextFilter

The serviceFilter.

getServiceFilterBuilder()

public ServiceContextFilter.Builder getServiceFilterBuilder()

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceContextFilter.Builder

getServiceFilterOrBuilder()

public ServiceContextFilterOrBuilder getServiceFilterOrBuilder()

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceContextFilterOrBuilder

getTimeRange()

public QueryTimeRange getTimeRange()

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryTimeRange

The timeRange.

getTimeRangeBuilder()

public QueryTimeRange.Builder getTimeRangeBuilder()

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryTimeRange.Builder

getTimeRangeOrBuilder()

public QueryTimeRangeOrBuilder getTimeRangeOrBuilder()

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryTimeRangeOrBuilder

hasServiceFilter()

public boolean hasServiceFilter()

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceFilter field is set.

hasTimeRange()

public boolean hasTimeRange()

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the timeRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListEventsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceFilter(ServiceContextFilter value)

public ListEventsRequest.Builder mergeServiceFilter(ServiceContextFilter value)

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceContextFilter
Returns
Type Description
ListEventsRequest.Builder

mergeTimeRange(QueryTimeRange value)

public ListEventsRequest.Builder mergeTimeRange(QueryTimeRange value)

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value QueryTimeRange
Returns
Type Description
ListEventsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListEventsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListEventsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListEventsRequest.Builder
Overrides

setGroupId(String value)

public ListEventsRequest.Builder setGroupId(String value)

Required. The group for which events shall be returned.

string group_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The groupId to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setGroupIdBytes(ByteString value)

public ListEventsRequest.Builder setGroupIdBytes(ByteString value)

Required. The group for which events shall be returned.

string group_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for groupId to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListEventsRequest.Builder setPageSize(int value)

Optional. The maximum number of results to return per response.

int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListEventsRequest.Builder setPageToken(String value)

Optional. A next_page_token provided by a previous response.

string page_token = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListEventsRequest.Builder setPageTokenBytes(ByteString value)

Optional. A next_page_token provided by a previous response.

string page_token = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setProjectName(String value)

public ListEventsRequest.Builder setProjectName(String value)

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID.

Example: projects/my-project-123.

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

Parameter
Name Description
value String

The projectName to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

setProjectNameBytes(ByteString value)

public ListEventsRequest.Builder setProjectNameBytes(ByteString value)

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID.

Example: projects/my-project-123.

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

Parameter
Name Description
value ByteString

The bytes for projectName to set.

Returns
Type Description
ListEventsRequest.Builder

This builder for chaining.

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

public ListEventsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListEventsRequest.Builder
Overrides

setServiceFilter(ServiceContextFilter value)

public ListEventsRequest.Builder setServiceFilter(ServiceContextFilter value)

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceContextFilter
Returns
Type Description
ListEventsRequest.Builder

setServiceFilter(ServiceContextFilter.Builder builderForValue)

public ListEventsRequest.Builder setServiceFilter(ServiceContextFilter.Builder builderForValue)

Optional. List only ErrorGroups which belong to a service context that matches the filter. Data for all service contexts is returned if this field is not specified.

.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ServiceContextFilter.Builder
Returns
Type Description
ListEventsRequest.Builder

setTimeRange(QueryTimeRange value)

public ListEventsRequest.Builder setTimeRange(QueryTimeRange value)

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value QueryTimeRange
Returns
Type Description
ListEventsRequest.Builder

setTimeRange(QueryTimeRange.Builder builderForValue)

public ListEventsRequest.Builder setTimeRange(QueryTimeRange.Builder builderForValue)

Optional. List only data for the given time range. If not set a default time range is used. The field time_range_begin in the response will specify the beginning of this time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue QueryTimeRange.Builder
Returns
Type Description
ListEventsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListEventsRequest.Builder
Overrides