public static final class ListLogEntriesRequest.Builder extends GeneratedMessageV3.Builder<ListLogEntriesRequest.Builder> implements ListLogEntriesRequestOrBuilder
The parameters to ListLogEntries
.
Protobuf type google.logging.v2.ListLogEntriesRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListLogEntriesRequest.BuilderImplements
ListLogEntriesRequestOrBuilderMethods
addAllResourceNames(Iterable<String> values)
public ListLogEntriesRequest.Builder addAllResourceNames(Iterable<String> values)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
values | Iterable<String> The resourceNames to add. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListLogEntriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListLogEntriesRequest.Builder |
addResourceNames(String value)
public ListLogEntriesRequest.Builder addResourceNames(String value)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The resourceNames to add. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
addResourceNamesBytes(ByteString value)
public ListLogEntriesRequest.Builder addResourceNamesBytes(ByteString value)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes of the resourceNames to add. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
build()
public ListLogEntriesRequest build()
Type | Description |
ListLogEntriesRequest |
buildPartial()
public ListLogEntriesRequest buildPartial()
Type | Description |
ListLogEntriesRequest |
clear()
public ListLogEntriesRequest.Builder clear()
Type | Description |
ListLogEntriesRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListLogEntriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ListLogEntriesRequest.Builder |
clearFilter()
public ListLogEntriesRequest.Builder clearFilter()
Optional. A filter that chooses which log entries to return. See Advanced
Logs Queries.
Only log entries that match the filter are returned. An empty filter
matches all log entries in the resources listed in resource_names
.
Referencing a parent resource that is not listed in resource_names
will
cause the filter to return no results. The maximum length of the filter is
20000 characters.
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListLogEntriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ListLogEntriesRequest.Builder |
clearOrderBy()
public ListLogEntriesRequest.Builder clearOrderBy()
Optional. How the results should be sorted. Presently, the only permitted
values are "timestamp asc"
(default) and "timestamp desc"
. The first
option returns entries in order of increasing values of
LogEntry.timestamp
(oldest first), and the second option returns entries
in order of decreasing timestamps (newest first). Entries with equal
timestamps are returned in order of their insert_id
values.
string order_by = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
clearPageSize()
public ListLogEntriesRequest.Builder clearPageSize()
Optional. The maximum number of results to return from this request.
Default is 50. If the value is negative or exceeds 1000,
the request is rejected. The presence of next_page_token
in the
response indicates that more results might be available.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
clearPageToken()
public ListLogEntriesRequest.Builder clearPageToken()
Optional. If present, then retrieve the next batch of results from the
preceding call to this method. page_token
must be the value of
next_page_token
from the previous response. The values of other method
parameters should be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
clearResourceNames()
public ListLogEntriesRequest.Builder clearResourceNames()
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
clone()
public ListLogEntriesRequest.Builder clone()
Type | Description |
ListLogEntriesRequest.Builder |
getDefaultInstanceForType()
public ListLogEntriesRequest getDefaultInstanceForType()
Type | Description |
ListLogEntriesRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFilter()
public String getFilter()
Optional. A filter that chooses which log entries to return. See Advanced
Logs Queries.
Only log entries that match the filter are returned. An empty filter
matches all log entries in the resources listed in resource_names
.
Referencing a parent resource that is not listed in resource_names
will
cause the filter to return no results. The maximum length of the filter is
20000 characters.
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The filter. |
getFilterBytes()
public ByteString getFilterBytes()
Optional. A filter that chooses which log entries to return. See Advanced
Logs Queries.
Only log entries that match the filter are returned. An empty filter
matches all log entries in the resources listed in resource_names
.
Referencing a parent resource that is not listed in resource_names
will
cause the filter to return no results. The maximum length of the filter is
20000 characters.
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for filter. |
getOrderBy()
public String getOrderBy()
Optional. How the results should be sorted. Presently, the only permitted
values are "timestamp asc"
(default) and "timestamp desc"
. The first
option returns entries in order of increasing values of
LogEntry.timestamp
(oldest first), and the second option returns entries
in order of decreasing timestamps (newest first). Entries with equal
timestamps are returned in order of their insert_id
values.
string order_by = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The orderBy. |
getOrderByBytes()
public ByteString getOrderByBytes()
Optional. How the results should be sorted. Presently, the only permitted
values are "timestamp asc"
(default) and "timestamp desc"
. The first
option returns entries in order of increasing values of
LogEntry.timestamp
(oldest first), and the second option returns entries
in order of decreasing timestamps (newest first). Entries with equal
timestamps are returned in order of their insert_id
values.
string order_by = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for orderBy. |
getPageSize()
public int getPageSize()
Optional. The maximum number of results to return from this request.
Default is 50. If the value is negative or exceeds 1000,
the request is rejected. The presence of next_page_token
in the
response indicates that more results might be available.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The pageSize. |
getPageToken()
public String getPageToken()
Optional. If present, then retrieve the next batch of results from the
preceding call to this method. page_token
must be the value of
next_page_token
from the previous response. The values of other method
parameters should be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()
Optional. If present, then retrieve the next batch of results from the
preceding call to this method. page_token
must be the value of
next_page_token
from the previous response. The values of other method
parameters should be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for pageToken. |
getResourceNames(int index)
public String getResourceNames(int index)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The resourceNames at the given index. |
getResourceNamesBytes(int index)
public ByteString getResourceNamesBytes(int index)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the resourceNames at the given index. |
getResourceNamesCount()
public int getResourceNamesCount()
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
int | The count of resourceNames. |
getResourceNamesList()
public ProtocolStringList getResourceNamesList()
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ProtocolStringList | A list containing the resourceNames. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ListLogEntriesRequest other)
public ListLogEntriesRequest.Builder mergeFrom(ListLogEntriesRequest other)
Name | Description |
other | ListLogEntriesRequest |
Type | Description |
ListLogEntriesRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListLogEntriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ListLogEntriesRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ListLogEntriesRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ListLogEntriesRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListLogEntriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListLogEntriesRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListLogEntriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListLogEntriesRequest.Builder |
setFilter(String value)
public ListLogEntriesRequest.Builder setFilter(String value)
Optional. A filter that chooses which log entries to return. See Advanced
Logs Queries.
Only log entries that match the filter are returned. An empty filter
matches all log entries in the resources listed in resource_names
.
Referencing a parent resource that is not listed in resource_names
will
cause the filter to return no results. The maximum length of the filter is
20000 characters.
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The filter to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setFilterBytes(ByteString value)
public ListLogEntriesRequest.Builder setFilterBytes(ByteString value)
Optional. A filter that chooses which log entries to return. See Advanced
Logs Queries.
Only log entries that match the filter are returned. An empty filter
matches all log entries in the resources listed in resource_names
.
Referencing a parent resource that is not listed in resource_names
will
cause the filter to return no results. The maximum length of the filter is
20000 characters.
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for filter to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setOrderBy(String value)
public ListLogEntriesRequest.Builder setOrderBy(String value)
Optional. How the results should be sorted. Presently, the only permitted
values are "timestamp asc"
(default) and "timestamp desc"
. The first
option returns entries in order of increasing values of
LogEntry.timestamp
(oldest first), and the second option returns entries
in order of decreasing timestamps (newest first). Entries with equal
timestamps are returned in order of their insert_id
values.
string order_by = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The orderBy to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setOrderByBytes(ByteString value)
public ListLogEntriesRequest.Builder setOrderByBytes(ByteString value)
Optional. How the results should be sorted. Presently, the only permitted
values are "timestamp asc"
(default) and "timestamp desc"
. The first
option returns entries in order of increasing values of
LogEntry.timestamp
(oldest first), and the second option returns entries
in order of decreasing timestamps (newest first). Entries with equal
timestamps are returned in order of their insert_id
values.
string order_by = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for orderBy to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setPageSize(int value)
public ListLogEntriesRequest.Builder setPageSize(int value)
Optional. The maximum number of results to return from this request.
Default is 50. If the value is negative or exceeds 1000,
the request is rejected. The presence of next_page_token
in the
response indicates that more results might be available.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | int The pageSize to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setPageToken(String value)
public ListLogEntriesRequest.Builder setPageToken(String value)
Optional. If present, then retrieve the next batch of results from the
preceding call to this method. page_token
must be the value of
next_page_token
from the previous response. The values of other method
parameters should be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The pageToken to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setPageTokenBytes(ByteString value)
public ListLogEntriesRequest.Builder setPageTokenBytes(ByteString value)
Optional. If present, then retrieve the next batch of results from the
preceding call to this method. page_token
must be the value of
next_page_token
from the previous response. The values of other method
parameters should be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for pageToken to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListLogEntriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ListLogEntriesRequest.Builder |
setResourceNames(int index, String value)
public ListLogEntriesRequest.Builder setResourceNames(int index, String value)
Required. Names of one or more parent resources from which to
retrieve log entries:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
May alternatively be one or more views
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
Projects listed in the project_ids
field are added to this list.
repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
index | int The index to set the value at. |
value | String The resourceNames to set. |
Type | Description |
ListLogEntriesRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListLogEntriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListLogEntriesRequest.Builder |