public final class TailLogEntriesRequest extends GeneratedMessageV3 implements TailLogEntriesRequestOrBuilder
The parameters to TailLogEntries
.
Protobuf type google.logging.v2.TailLogEntriesRequest
Static Fields
BUFFER_WINDOW_FIELD_NUMBER
public static final int BUFFER_WINDOW_FIELD_NUMBER
Field Value
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value
RESOURCE_NAMES_FIELD_NUMBER
public static final int RESOURCE_NAMES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TailLogEntriesRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TailLogEntriesRequest.Builder newBuilder()
Returns
newBuilder(TailLogEntriesRequest prototype)
public static TailLogEntriesRequest.Builder newBuilder(TailLogEntriesRequest prototype)
Parameter
Returns
public static TailLogEntriesRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TailLogEntriesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TailLogEntriesRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TailLogEntriesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TailLogEntriesRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TailLogEntriesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TailLogEntriesRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TailLogEntriesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TailLogEntriesRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TailLogEntriesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TailLogEntriesRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TailLogEntriesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TailLogEntriesRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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];
Returns
Type | Description |
Duration | The bufferWindow.
|
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];
Returns
getDefaultInstanceForType()
public TailLogEntriesRequest getDefaultInstanceForType()
Returns
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];
Returns
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];
Returns
getParserForType()
public Parser<TailLogEntriesRequest> getParserForType()
Returns
Overrides
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];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
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];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
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];
Returns
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];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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];
Returns
Type | Description |
boolean | Whether the bufferWindow field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TailLogEntriesRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TailLogEntriesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TailLogEntriesRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions