public static final class TailLogEntriesRequest.Builder extends GeneratedMessageV3.Builder<TailLogEntriesRequest.Builder> implements TailLogEntriesRequestOrBuilder
The parameters to TailLogEntries
.
Protobuf type google.logging.v2.TailLogEntriesRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TailLogEntriesRequest.BuilderImplements
TailLogEntriesRequestOrBuilderMethods
addAllResourceNames(Iterable<String> values)
public TailLogEntriesRequest.Builder addAllResourceNames(Iterable<String> values)
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Iterable<String> The resourceNames to add. |
Type | Description |
TailLogEntriesRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TailLogEntriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TailLogEntriesRequest.Builder |
addResourceNames(String value)
public TailLogEntriesRequest.Builder addResourceNames(String value)
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The resourceNames to add. |
Type | Description |
TailLogEntriesRequest.Builder | This builder for chaining. |
addResourceNamesBytes(ByteString value)
public TailLogEntriesRequest.Builder addResourceNamesBytes(ByteString value)
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes of the resourceNames to add. |
Type | Description |
TailLogEntriesRequest.Builder | This builder for chaining. |
build()
public TailLogEntriesRequest build()
Type | Description |
TailLogEntriesRequest |
buildPartial()
public TailLogEntriesRequest buildPartial()
Type | Description |
TailLogEntriesRequest |
clear()
public TailLogEntriesRequest.Builder clear()
Type | Description |
TailLogEntriesRequest.Builder |
clearBufferWindow()
public TailLogEntriesRequest.Builder clearBufferWindow()
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
TailLogEntriesRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public TailLogEntriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TailLogEntriesRequest.Builder |
clearFilter()
public TailLogEntriesRequest.Builder clearFilter()
Optional. A filter that chooses which log entries to return. See Advanced
Logs Filters.
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 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 |
TailLogEntriesRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TailLogEntriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TailLogEntriesRequest.Builder |
clearResourceNames()
public TailLogEntriesRequest.Builder clearResourceNames()
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
TailLogEntriesRequest.Builder | This builder for chaining. |
clone()
public TailLogEntriesRequest.Builder clone()
Type | Description |
TailLogEntriesRequest.Builder |
getBufferWindow()
public Duration getBufferWindow()
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Duration | The bufferWindow. |
getBufferWindowBuilder()
public Duration.Builder getBufferWindowBuilder()
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Builder |
getBufferWindowOrBuilder()
public DurationOrBuilder getBufferWindowOrBuilder()
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
DurationOrBuilder |
getDefaultInstanceForType()
public TailLogEntriesRequest getDefaultInstanceForType()
Type | Description |
TailLogEntriesRequest |
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 Filters.
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 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 Filters.
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 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. |
getResourceNames(int index)
public String getResourceNames(int index)
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
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. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
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. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The count of resourceNames. |
getResourceNamesList()
public ProtocolStringList getResourceNamesList()
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ProtocolStringList | A list containing the resourceNames. |
hasBufferWindow()
public boolean hasBufferWindow()
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the bufferWindow field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBufferWindow(Duration value)
public TailLogEntriesRequest.Builder mergeBufferWindow(Duration value)
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Duration |
Type | Description |
TailLogEntriesRequest.Builder |
mergeFrom(TailLogEntriesRequest other)
public TailLogEntriesRequest.Builder mergeFrom(TailLogEntriesRequest other)
Name | Description |
other | TailLogEntriesRequest |
Type | Description |
TailLogEntriesRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TailLogEntriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TailLogEntriesRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TailLogEntriesRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TailLogEntriesRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TailLogEntriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TailLogEntriesRequest.Builder |
setBufferWindow(Duration value)
public TailLogEntriesRequest.Builder setBufferWindow(Duration value)
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Duration |
Type | Description |
TailLogEntriesRequest.Builder |
setBufferWindow(Duration.Builder builderForValue)
public TailLogEntriesRequest.Builder setBufferWindow(Duration.Builder builderForValue)
Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
.google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | Builder |
Type | Description |
TailLogEntriesRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TailLogEntriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TailLogEntriesRequest.Builder |
setFilter(String value)
public TailLogEntriesRequest.Builder setFilter(String value)
Optional. A filter that chooses which log entries to return. See Advanced
Logs Filters.
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 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 |
TailLogEntriesRequest.Builder | This builder for chaining. |
setFilterBytes(ByteString value)
public TailLogEntriesRequest.Builder setFilterBytes(ByteString value)
Optional. A filter that chooses which log entries to return. See Advanced
Logs Filters.
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 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 |
TailLogEntriesRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TailLogEntriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TailLogEntriesRequest.Builder |
setResourceNames(int index, String value)
public TailLogEntriesRequest.Builder setResourceNames(int index, String value)
Required. Name of a parent resource 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]"
repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int The index to set the value at. |
value | String The resourceNames to set. |
Type | Description |
TailLogEntriesRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TailLogEntriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TailLogEntriesRequest.Builder |