All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.logging.v1.LogReadingServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/logging/v1/log_reading_service.proto

package yandex.cloud.api.logging.v1;

public final class LogReadingServiceOuterClass {
  private LogReadingServiceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ReadRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.ReadRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return Whether the pageToken field is set. */ boolean hasPageToken(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return Whether the criteria field is set. */ boolean hasCriteria(); /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return The criteria. */ yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getCriteria(); /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder getCriteriaOrBuilder(); public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.SelectorCase getSelectorCase(); } /** * Protobuf type {@code yandex.cloud.logging.v1.ReadRequest} */ public static final class ReadRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.ReadRequest) ReadRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadRequest.newBuilder() to construct. private ReadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); selectorCase_ = 1; selector_ = s; break; } case 18: { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder subBuilder = null; if (selectorCase_ == 2) { subBuilder = ((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_).toBuilder(); } selector_ = input.readMessage(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_); selector_ = subBuilder.buildPartial(); } selectorCase_ = 2; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.Builder.class); } private int selectorCase_ = 0; private java.lang.Object selector_; public enum SelectorCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PAGE_TOKEN(1), CRITERIA(2), SELECTOR_NOT_SET(0); private final int value; private SelectorCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SelectorCase valueOf(int value) { return forNumber(value); } public static SelectorCase forNumber(int value) { switch (value) { case 1: return PAGE_TOKEN; case 2: return CRITERIA; case 0: return SELECTOR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SelectorCase getSelectorCase() { return SelectorCase.forNumber( selectorCase_); } public static final int PAGE_TOKEN_FIELD_NUMBER = 1; /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return Whether the pageToken field is set. */ public boolean hasPageToken() { return selectorCase_ == 1; } /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = ""; if (selectorCase_ == 1) { ref = selector_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (selectorCase_ == 1) { selector_ = s; } return s; } } /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
     * 
* * string page_token = 1; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = ""; if (selectorCase_ == 1) { ref = selector_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (selectorCase_ == 1) { selector_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CRITERIA_FIELD_NUMBER = 2; /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return Whether the criteria field is set. */ @java.lang.Override public boolean hasCriteria() { return selectorCase_ == 2; } /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return The criteria. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getCriteria() { if (selectorCase_ == 2) { return (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_; } return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } /** *
     * Read criteria.
     * See [Criteria] for details.
     * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder getCriteriaOrBuilder() { if (selectorCase_ == 2) { return (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_; } return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (selectorCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } if (selectorCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (selectorCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } if (selectorCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest)) { return super.equals(obj); } yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest other = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest) obj; if (!getSelectorCase().equals(other.getSelectorCase())) return false; switch (selectorCase_) { case 1: if (!getPageToken() .equals(other.getPageToken())) return false; break; case 2: if (!getCriteria() .equals(other.getCriteria())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (selectorCase_) { case 1: hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); break; case 2: hash = (37 * hash) + CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getCriteria().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.logging.v1.ReadRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.ReadRequest) yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.Builder.class); } // Construct using yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); selectorCase_ = 0; selector_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest build() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest buildPartial() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest result = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest(this); if (selectorCase_ == 1) { result.selector_ = selector_; } if (selectorCase_ == 2) { if (criteriaBuilder_ == null) { result.selector_ = selector_; } else { result.selector_ = criteriaBuilder_.build(); } } result.selectorCase_ = selectorCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest) { return mergeFrom((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest other) { if (other == yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest.getDefaultInstance()) return this; switch (other.getSelectorCase()) { case PAGE_TOKEN: { selectorCase_ = 1; selector_ = other.selector_; onChanged(); break; } case CRITERIA: { mergeCriteria(other.getCriteria()); break; } case SELECTOR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int selectorCase_ = 0; private java.lang.Object selector_; public SelectorCase getSelectorCase() { return SelectorCase.forNumber( selectorCase_); } public Builder clearSelector() { selectorCase_ = 0; selector_ = null; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @return Whether the pageToken field is set. */ @java.lang.Override public boolean hasPageToken() { return selectorCase_ == 1; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = ""; if (selectorCase_ == 1) { ref = selector_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (selectorCase_ == 1) { selector_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = ""; if (selectorCase_ == 1) { ref = selector_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (selectorCase_ == 1) { selector_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } selectorCase_ = 1; selector_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @return This builder for chaining. */ public Builder clearPageToken() { if (selectorCase_ == 1) { selectorCase_ = 0; selector_ = null; onChanged(); } return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ReadResponse.next_page_token] or [ReadResponse.previous_page_token] returned by a previous read request.
       * 
* * string page_token = 1; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selectorCase_ = 1; selector_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder> criteriaBuilder_; /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return Whether the criteria field is set. */ @java.lang.Override public boolean hasCriteria() { return selectorCase_ == 2; } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; * @return The criteria. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getCriteria() { if (criteriaBuilder_ == null) { if (selectorCase_ == 2) { return (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_; } return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } else { if (selectorCase_ == 2) { return criteriaBuilder_.getMessage(); } return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ public Builder setCriteria(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria value) { if (criteriaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); } else { criteriaBuilder_.setMessage(value); } selectorCase_ = 2; return this; } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ public Builder setCriteria( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder builderForValue) { if (criteriaBuilder_ == null) { selector_ = builderForValue.build(); onChanged(); } else { criteriaBuilder_.setMessage(builderForValue.build()); } selectorCase_ = 2; return this; } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ public Builder mergeCriteria(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria value) { if (criteriaBuilder_ == null) { if (selectorCase_ == 2 && selector_ != yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance()) { selector_ = yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.newBuilder((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_) .mergeFrom(value).buildPartial(); } else { selector_ = value; } onChanged(); } else { if (selectorCase_ == 2) { criteriaBuilder_.mergeFrom(value); } criteriaBuilder_.setMessage(value); } selectorCase_ = 2; return this; } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ public Builder clearCriteria() { if (criteriaBuilder_ == null) { if (selectorCase_ == 2) { selectorCase_ = 0; selector_ = null; onChanged(); } } else { if (selectorCase_ == 2) { selectorCase_ = 0; selector_ = null; } criteriaBuilder_.clear(); } return this; } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder getCriteriaBuilder() { return getCriteriaFieldBuilder().getBuilder(); } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder getCriteriaOrBuilder() { if ((selectorCase_ == 2) && (criteriaBuilder_ != null)) { return criteriaBuilder_.getMessageOrBuilder(); } else { if (selectorCase_ == 2) { return (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_; } return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } } /** *
       * Read criteria.
       * See [Criteria] for details.
       * 
* * .yandex.cloud.logging.v1.Criteria criteria = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder> getCriteriaFieldBuilder() { if (criteriaBuilder_ == null) { if (!(selectorCase_ == 2)) { selector_ = yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder>( (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) selector_, getParentForChildren(), isClean()); selector_ = null; } selectorCase_ = 2; onChanged();; return criteriaBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.logging.v1.ReadRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.ReadRequest) private static final yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest(); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.ReadResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Log group ID the read was performed from.
     * 
* * string log_group_id = 1; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * Log group ID the read was performed from.
     * 
* * string log_group_id = 1; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ java.util.List getEntriesList(); /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry getEntries(int index); /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ int getEntriesCount(); /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ java.util.List getEntriesOrBuilderList(); /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder getEntriesOrBuilder( int index); /** *
     * Token for getting the next page of the log entries.
     * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 3; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the log entries.
     * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 3; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); /** *
     * Token for getting the previous page of the log entries.
     * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string previous_page_token = 4; * @return The previousPageToken. */ java.lang.String getPreviousPageToken(); /** *
     * Token for getting the previous page of the log entries.
     * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string previous_page_token = 4; * @return The bytes for previousPageToken. */ com.google.protobuf.ByteString getPreviousPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.logging.v1.ReadResponse} */ public static final class ReadResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.ReadResponse) ReadResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadResponse.newBuilder() to construct. private ReadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadResponse() { logGroupId_ = ""; entries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; previousPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); logGroupId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); previousPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.Builder.class); } public static final int LOG_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object logGroupId_; /** *
     * Log group ID the read was performed from.
     * 
* * string log_group_id = 1; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } } /** *
     * Log group ID the read was performed from.
     * 
* * string log_group_id = 1; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 2; private java.util.List entries_; /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ @java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry getEntries(int index) { return entries_.get(index); } /** *
     * List of matching log entries.
     * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ @java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the log entries.
     * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 3; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the log entries.
     * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 3; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREVIOUS_PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object previousPageToken_; /** *
     * Token for getting the previous page of the log entries.
     * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string previous_page_token = 4; * @return The previousPageToken. */ @java.lang.Override public java.lang.String getPreviousPageToken() { java.lang.Object ref = previousPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousPageToken_ = s; return s; } } /** *
     * Token for getting the previous page of the log entries.
     * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
     * for the [ReadRequest.page_token] parameter in the next read request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string previous_page_token = 4; * @return The bytes for previousPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPreviousPageTokenBytes() { java.lang.Object ref = previousPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); previousPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logGroupId_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, previousPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logGroupId_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, previousPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse)) { return super.equals(obj); } yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse other = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse) obj; if (!getLogGroupId() .equals(other.getLogGroupId())) return false; if (!getEntriesList() .equals(other.getEntriesList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!getPreviousPageToken() .equals(other.getPreviousPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + PREVIOUS_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPreviousPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.logging.v1.ReadResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.ReadResponse) yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.Builder.class); } // Construct using yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); logGroupId_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } nextPageToken_ = ""; previousPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse build() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse buildPartial() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse result = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse(this); int from_bitField0_ = bitField0_; result.logGroupId_ = logGroupId_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; result.previousPageToken_ = previousPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse) { return mergeFrom((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse other) { if (other == yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse.getDefaultInstance()) return this; if (!other.getLogGroupId().isEmpty()) { logGroupId_ = other.logGroupId_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } if (!other.getPreviousPageToken().isEmpty()) { previousPageToken_ = other.previousPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object logGroupId_ = ""; /** *
       * Log group ID the read was performed from.
       * 
* * string log_group_id = 1; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Log group ID the read was performed from.
       * 
* * string log_group_id = 1; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Log group ID the read was performed from.
       * 
* * string log_group_id = 1; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logGroupId_ = value; onChanged(); return this; } /** *
       * Log group ID the read was performed from.
       * 
* * string log_group_id = 1; * @return This builder for chaining. */ public Builder clearLogGroupId() { logGroupId_ = getDefaultInstance().getLogGroupId(); onChanged(); return this; } /** *
       * Log group ID the read was performed from.
       * 
* * string log_group_id = 1; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logGroupId_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder> entriesBuilder_; /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder setEntries( int index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder setEntries( int index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder addEntries(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder addEntries( int index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder addEntries( yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder addEntries( int index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.getDefaultInstance()); } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.getDefaultInstance()); } /** *
       * List of matching log entries.
       * 
* * repeated .yandex.cloud.logging.v1.LogEntry entries = 2; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntry.Builder, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogEntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the log entries.
       * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 3; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the log entries.
       * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 3; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the log entries.
       * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 3; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the log entries.
       * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 3; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the log entries.
       * After getting log entries initially with [Criteria], you can use `next_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 3; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } private java.lang.Object previousPageToken_ = ""; /** *
       * Token for getting the previous page of the log entries.
       * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string previous_page_token = 4; * @return The previousPageToken. */ public java.lang.String getPreviousPageToken() { java.lang.Object ref = previousPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); previousPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the previous page of the log entries.
       * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string previous_page_token = 4; * @return The bytes for previousPageToken. */ public com.google.protobuf.ByteString getPreviousPageTokenBytes() { java.lang.Object ref = previousPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); previousPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the previous page of the log entries.
       * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string previous_page_token = 4; * @param value The previousPageToken to set. * @return This builder for chaining. */ public Builder setPreviousPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } previousPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the previous page of the log entries.
       * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string previous_page_token = 4; * @return This builder for chaining. */ public Builder clearPreviousPageToken() { previousPageToken_ = getDefaultInstance().getPreviousPageToken(); onChanged(); return this; } /** *
       * Token for getting the previous page of the log entries.
       * After getting log entries initially with [Criteria], you can use `previous_page_token` as the value
       * for the [ReadRequest.page_token] parameter in the next read request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string previous_page_token = 4; * @param value The bytes for previousPageToken to set. * @return This builder for chaining. */ public Builder setPreviousPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); previousPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.logging.v1.ReadResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.ReadResponse) private static final yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse(); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.ReadResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CriteriaOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.Criteria) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the log group to return.
     * To get a log group ID make a [LogGroupService.List] request.
     * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * ID of the log group to return.
     * To get a log group ID make a [LogGroupService.List] request.
     * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceTypes. */ java.util.List getResourceTypesList(); /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceTypes. */ int getResourceTypesCount(); /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceTypes at the given index. */ java.lang.String getResourceTypes(int index); /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ com.google.protobuf.ByteString getResourceTypesBytes(int index); /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceIds. */ java.util.List getResourceIdsList(); /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceIds. */ int getResourceIdsCount(); /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceIds at the given index. */ java.lang.String getResourceIds(int index); /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceIds at the given index. */ com.google.protobuf.ByteString getResourceIdsBytes(int index); /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; * @return Whether the since field is set. */ boolean hasSince(); /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; * @return The since. */ com.google.protobuf.Timestamp getSince(); /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; */ com.google.protobuf.TimestampOrBuilder getSinceOrBuilder(); /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; * @return Whether the until field is set. */ boolean hasUntil(); /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; * @return The until. */ com.google.protobuf.Timestamp getUntil(); /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; */ com.google.protobuf.TimestampOrBuilder getUntilOrBuilder(); /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the levels. */ java.util.List getLevelsList(); /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return The count of levels. */ int getLevelsCount(); /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the element to return. * @return The levels at the given index. */ yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getLevels(int index); /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the enum numeric values on the wire for levels. */ java.util.List getLevelsValueList(); /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of levels at the given index. */ int getLevelsValue(int index); /** *
     * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
     * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
     * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the streamNames. */ java.util.List getStreamNamesList(); /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of streamNames. */ int getStreamNamesCount(); /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The streamNames at the given index. */ java.lang.String getStreamNames(int index); /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the streamNames at the given index. */ com.google.protobuf.ByteString getStreamNamesBytes(int index); /** *
     * The maximum number of results per page to return.
     * 
* * int64 page_size = 8 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Limits response to maximum size in bytes. Prevents gRPC resource exhaustion.
     * Default value for max response size is 3.5 MiB
     * 
* * int64 max_response_size = 9 [(.yandex.cloud.value) = "0-10485760"]; * @return The maxResponseSize. */ long getMaxResponseSize(); } /** *
   * Read criteria. Should be used in initial [ReadRequest].
   * 
* * Protobuf type {@code yandex.cloud.logging.v1.Criteria} */ public static final class Criteria extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.Criteria) CriteriaOrBuilder { private static final long serialVersionUID = 0L; // Use Criteria.newBuilder() to construct. private Criteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Criteria() { logGroupId_ = ""; resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; resourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; levels_ = java.util.Collections.emptyList(); filter_ = ""; streamNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Criteria(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Criteria( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); logGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceTypes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } resourceTypes_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { resourceIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } resourceIds_.add(s); break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (since_ != null) { subBuilder = since_.toBuilder(); } since_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(since_); since_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (until_ != null) { subBuilder = until_.toBuilder(); } until_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(until_); until_ = subBuilder.buildPartial(); } break; } case 48: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { levels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } levels_.add(rawValue); break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { levels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } levels_.add(rawValue); } input.popLimit(oldLimit); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } case 64: { pageSize_ = input.readInt64(); break; } case 72: { maxResponseSize_ = input.readInt64(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) != 0)) { streamNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } streamNames_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceTypes_ = resourceTypes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { resourceIds_ = resourceIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { levels_ = java.util.Collections.unmodifiableList(levels_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { streamNames_ = streamNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_Criteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_Criteria_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder.class); } public static final int LOG_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object logGroupId_; /** *
     * ID of the log group to return.
     * To get a log group ID make a [LogGroupService.List] request.
     * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } } /** *
     * ID of the log group to return.
     * To get a log group ID make a [LogGroupService.List] request.
     * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList resourceTypes_; /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceTypes. */ public com.google.protobuf.ProtocolStringList getResourceTypesList() { return resourceTypes_; } /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceTypes at the given index. */ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** *
     * List of resource types to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } public static final int RESOURCE_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList resourceIds_; /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceIds. */ public com.google.protobuf.ProtocolStringList getResourceIdsList() { return resourceIds_; } /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceIds. */ public int getResourceIdsCount() { return resourceIds_.size(); } /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceIds at the given index. */ public java.lang.String getResourceIds(int index) { return resourceIds_.get(index); } /** *
     * List of resource IDs to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceIds at the given index. */ public com.google.protobuf.ByteString getResourceIdsBytes(int index) { return resourceIds_.getByteString(index); } public static final int SINCE_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp since_; /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; * @return Whether the since field is set. */ @java.lang.Override public boolean hasSince() { return since_ != null; } /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; * @return The since. */ @java.lang.Override public com.google.protobuf.Timestamp getSince() { return since_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : since_; } /** *
     * Lower bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp since = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSinceOrBuilder() { return getSince(); } public static final int UNTIL_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp until_; /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; * @return Whether the until field is set. */ @java.lang.Override public boolean hasUntil() { return until_ != null; } /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; * @return The until. */ @java.lang.Override public com.google.protobuf.Timestamp getUntil() { return until_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : until_; } /** *
     * Upper bound of log entries timestamps.
     * 
* * .google.protobuf.Timestamp until = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUntilOrBuilder() { return getUntil(); } public static final int LEVELS_FIELD_NUMBER = 6; private java.util.List levels_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level> levels_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level>() { public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(from); return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result; } }; /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the levels. */ @java.lang.Override public java.util.List getLevelsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level>(levels_, levels_converter_); } /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return The count of levels. */ @java.lang.Override public int getLevelsCount() { return levels_.size(); } /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the element to return. * @return The levels at the given index. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getLevels(int index) { return levels_converter_.convert(levels_.get(index)); } /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the enum numeric values on the wire for levels. */ @java.lang.Override public java.util.List getLevelsValueList() { return levels_; } /** *
     * List of log levels to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of levels at the given index. */ @java.lang.Override public int getLevelsValue(int index) { return levels_.get(index); } private int levelsMemoizedSerializedSize; public static final int FILTER_FIELD_NUMBER = 7; private volatile java.lang.Object filter_; /** *
     * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
     * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
     * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STREAM_NAMES_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList streamNames_; /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the streamNames. */ public com.google.protobuf.ProtocolStringList getStreamNamesList() { return streamNames_; } /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of streamNames. */ public int getStreamNamesCount() { return streamNames_.size(); } /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The streamNames at the given index. */ public java.lang.String getStreamNames(int index) { return streamNames_.get(index); } /** *
     * List of stream names to limit log entries to.
     * Empty list disables filter.
     * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the streamNames at the given index. */ public com.google.protobuf.ByteString getStreamNamesBytes(int index) { return streamNames_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 8; private long pageSize_; /** *
     * The maximum number of results per page to return.
     * 
* * int64 page_size = 8 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int MAX_RESPONSE_SIZE_FIELD_NUMBER = 9; private long maxResponseSize_; /** *
     * Limits response to maximum size in bytes. Prevents gRPC resource exhaustion.
     * Default value for max response size is 3.5 MiB
     * 
* * int64 max_response_size = 9 [(.yandex.cloud.value) = "0-10485760"]; * @return The maxResponseSize. */ @java.lang.Override public long getMaxResponseSize() { return maxResponseSize_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logGroupId_); } for (int i = 0; i < resourceTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceTypes_.getRaw(i)); } for (int i = 0; i < resourceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceIds_.getRaw(i)); } if (since_ != null) { output.writeMessage(4, getSince()); } if (until_ != null) { output.writeMessage(5, getUntil()); } if (getLevelsList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(levelsMemoizedSerializedSize); } for (int i = 0; i < levels_.size(); i++) { output.writeEnumNoTag(levels_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); } if (pageSize_ != 0L) { output.writeInt64(8, pageSize_); } if (maxResponseSize_ != 0L) { output.writeInt64(9, maxResponseSize_); } for (int i = 0; i < streamNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, streamNames_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logGroupId_); } { int dataSize = 0; for (int i = 0; i < resourceTypes_.size(); i++) { dataSize += computeStringSizeNoTag(resourceTypes_.getRaw(i)); } size += dataSize; size += 1 * getResourceTypesList().size(); } { int dataSize = 0; for (int i = 0; i < resourceIds_.size(); i++) { dataSize += computeStringSizeNoTag(resourceIds_.getRaw(i)); } size += dataSize; size += 1 * getResourceIdsList().size(); } if (since_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSince()); } if (until_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUntil()); } { int dataSize = 0; for (int i = 0; i < levels_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(levels_.get(i)); } size += dataSize; if (!getLevelsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }levelsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, pageSize_); } if (maxResponseSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, maxResponseSize_); } { int dataSize = 0; for (int i = 0; i < streamNames_.size(); i++) { dataSize += computeStringSizeNoTag(streamNames_.getRaw(i)); } size += dataSize; size += 1 * getStreamNamesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria)) { return super.equals(obj); } yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria other = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) obj; if (!getLogGroupId() .equals(other.getLogGroupId())) return false; if (!getResourceTypesList() .equals(other.getResourceTypesList())) return false; if (!getResourceIdsList() .equals(other.getResourceIdsList())) return false; if (hasSince() != other.hasSince()) return false; if (hasSince()) { if (!getSince() .equals(other.getSince())) return false; } if (hasUntil() != other.hasUntil()) return false; if (hasUntil()) { if (!getUntil() .equals(other.getUntil())) return false; } if (!levels_.equals(other.levels_)) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!getStreamNamesList() .equals(other.getStreamNamesList())) return false; if (getPageSize() != other.getPageSize()) return false; if (getMaxResponseSize() != other.getMaxResponseSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); if (getResourceTypesCount() > 0) { hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; hash = (53 * hash) + getResourceTypesList().hashCode(); } if (getResourceIdsCount() > 0) { hash = (37 * hash) + RESOURCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getResourceIdsList().hashCode(); } if (hasSince()) { hash = (37 * hash) + SINCE_FIELD_NUMBER; hash = (53 * hash) + getSince().hashCode(); } if (hasUntil()) { hash = (37 * hash) + UNTIL_FIELD_NUMBER; hash = (53 * hash) + getUntil().hashCode(); } if (getLevelsCount() > 0) { hash = (37 * hash) + LEVELS_FIELD_NUMBER; hash = (53 * hash) + levels_.hashCode(); } hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); if (getStreamNamesCount() > 0) { hash = (37 * hash) + STREAM_NAMES_FIELD_NUMBER; hash = (53 * hash) + getStreamNamesList().hashCode(); } hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + MAX_RESPONSE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxResponseSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Read criteria. Should be used in initial [ReadRequest].
     * 
* * Protobuf type {@code yandex.cloud.logging.v1.Criteria} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.Criteria) yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.CriteriaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_Criteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_Criteria_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.class, yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.Builder.class); } // Construct using yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); logGroupId_ = ""; resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); resourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (sinceBuilder_ == null) { since_ = null; } else { since_ = null; sinceBuilder_ = null; } if (untilBuilder_ == null) { until_ = null; } else { until_ = null; untilBuilder_ = null; } levels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); filter_ = ""; streamNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); pageSize_ = 0L; maxResponseSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.internal_static_yandex_cloud_logging_v1_Criteria_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria build() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria buildPartial() { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria result = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria(this); int from_bitField0_ = bitField0_; result.logGroupId_ = logGroupId_; if (((bitField0_ & 0x00000001) != 0)) { resourceTypes_ = resourceTypes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceTypes_ = resourceTypes_; if (((bitField0_ & 0x00000002) != 0)) { resourceIds_ = resourceIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.resourceIds_ = resourceIds_; if (sinceBuilder_ == null) { result.since_ = since_; } else { result.since_ = sinceBuilder_.build(); } if (untilBuilder_ == null) { result.until_ = until_; } else { result.until_ = untilBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { levels_ = java.util.Collections.unmodifiableList(levels_); bitField0_ = (bitField0_ & ~0x00000004); } result.levels_ = levels_; result.filter_ = filter_; if (((bitField0_ & 0x00000008) != 0)) { streamNames_ = streamNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.streamNames_ = streamNames_; result.pageSize_ = pageSize_; result.maxResponseSize_ = maxResponseSize_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) { return mergeFrom((yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria other) { if (other == yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria.getDefaultInstance()) return this; if (!other.getLogGroupId().isEmpty()) { logGroupId_ = other.logGroupId_; onChanged(); } if (!other.resourceTypes_.isEmpty()) { if (resourceTypes_.isEmpty()) { resourceTypes_ = other.resourceTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceTypesIsMutable(); resourceTypes_.addAll(other.resourceTypes_); } onChanged(); } if (!other.resourceIds_.isEmpty()) { if (resourceIds_.isEmpty()) { resourceIds_ = other.resourceIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourceIdsIsMutable(); resourceIds_.addAll(other.resourceIds_); } onChanged(); } if (other.hasSince()) { mergeSince(other.getSince()); } if (other.hasUntil()) { mergeUntil(other.getUntil()); } if (!other.levels_.isEmpty()) { if (levels_.isEmpty()) { levels_ = other.levels_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLevelsIsMutable(); levels_.addAll(other.levels_); } onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } if (!other.streamNames_.isEmpty()) { if (streamNames_.isEmpty()) { streamNames_ = other.streamNames_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureStreamNamesIsMutable(); streamNames_.addAll(other.streamNames_); } onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (other.getMaxResponseSize() != 0L) { setMaxResponseSize(other.getMaxResponseSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object logGroupId_ = ""; /** *
       * ID of the log group to return.
       * To get a log group ID make a [LogGroupService.List] request.
       * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the log group to return.
       * To get a log group ID make a [LogGroupService.List] request.
       * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the log group to return.
       * To get a log group ID make a [LogGroupService.List] request.
       * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logGroupId_ = value; onChanged(); return this; } /** *
       * ID of the log group to return.
       * To get a log group ID make a [LogGroupService.List] request.
       * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @return This builder for chaining. */ public Builder clearLogGroupId() { logGroupId_ = getDefaultInstance().getLogGroupId(); onChanged(); return this; } /** *
       * ID of the log group to return.
       * To get a log group ID make a [LogGroupService.List] request.
       * 
* * string log_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=64"]; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logGroupId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); bitField0_ |= 0x00000001; } } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceTypes. */ public com.google.protobuf.ProtocolStringList getResourceTypesList() { return resourceTypes_.getUnmodifiableView(); } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceTypes at the given index. */ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index to set the value at. * @param value The resourceTypes to set. * @return This builder for chaining. */ public Builder setResourceTypes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceTypesIsMutable(); resourceTypes_.set(index, value); onChanged(); return this; } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The resourceTypes to add. * @return This builder for chaining. */ public Builder addResourceTypes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceTypesIsMutable(); resourceTypes_.add(value); onChanged(); return this; } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param values The resourceTypes to add. * @return This builder for chaining. */ public Builder addAllResourceTypes( java.lang.Iterable values) { ensureResourceTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceTypes_); onChanged(); return this; } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return This builder for chaining. */ public Builder clearResourceTypes() { resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of resource types to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_types = 2 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The bytes of the resourceTypes to add. * @return This builder for chaining. */ public Builder addResourceTypesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceTypesIsMutable(); resourceTypes_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList resourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { resourceIds_ = new com.google.protobuf.LazyStringArrayList(resourceIds_); bitField0_ |= 0x00000002; } } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the resourceIds. */ public com.google.protobuf.ProtocolStringList getResourceIdsList() { return resourceIds_.getUnmodifiableView(); } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of resourceIds. */ public int getResourceIdsCount() { return resourceIds_.size(); } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The resourceIds at the given index. */ public java.lang.String getResourceIds(int index) { return resourceIds_.get(index); } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the resourceIds at the given index. */ public com.google.protobuf.ByteString getResourceIdsBytes(int index) { return resourceIds_.getByteString(index); } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index to set the value at. * @param value The resourceIds to set. * @return This builder for chaining. */ public Builder setResourceIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceIdsIsMutable(); resourceIds_.set(index, value); onChanged(); return this; } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The resourceIds to add. * @return This builder for chaining. */ public Builder addResourceIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceIdsIsMutable(); resourceIds_.add(value); onChanged(); return this; } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param values The resourceIds to add. * @return This builder for chaining. */ public Builder addAllResourceIds( java.lang.Iterable values) { ensureResourceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceIds_); onChanged(); return this; } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return This builder for chaining. */ public Builder clearResourceIds() { resourceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * List of resource IDs to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string resource_ids = 3 [(.yandex.cloud.pattern) = "|[a-zA-Z0-9][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The bytes of the resourceIds to add. * @return This builder for chaining. */ public Builder addResourceIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceIdsIsMutable(); resourceIds_.add(value); onChanged(); return this; } private com.google.protobuf.Timestamp since_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> sinceBuilder_; /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; * @return Whether the since field is set. */ public boolean hasSince() { return sinceBuilder_ != null || since_ != null; } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; * @return The since. */ public com.google.protobuf.Timestamp getSince() { if (sinceBuilder_ == null) { return since_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : since_; } else { return sinceBuilder_.getMessage(); } } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public Builder setSince(com.google.protobuf.Timestamp value) { if (sinceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } since_ = value; onChanged(); } else { sinceBuilder_.setMessage(value); } return this; } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public Builder setSince( com.google.protobuf.Timestamp.Builder builderForValue) { if (sinceBuilder_ == null) { since_ = builderForValue.build(); onChanged(); } else { sinceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public Builder mergeSince(com.google.protobuf.Timestamp value) { if (sinceBuilder_ == null) { if (since_ != null) { since_ = com.google.protobuf.Timestamp.newBuilder(since_).mergeFrom(value).buildPartial(); } else { since_ = value; } onChanged(); } else { sinceBuilder_.mergeFrom(value); } return this; } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public Builder clearSince() { if (sinceBuilder_ == null) { since_ = null; onChanged(); } else { since_ = null; sinceBuilder_ = null; } return this; } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public com.google.protobuf.Timestamp.Builder getSinceBuilder() { onChanged(); return getSinceFieldBuilder().getBuilder(); } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ public com.google.protobuf.TimestampOrBuilder getSinceOrBuilder() { if (sinceBuilder_ != null) { return sinceBuilder_.getMessageOrBuilder(); } else { return since_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : since_; } } /** *
       * Lower bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp since = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSinceFieldBuilder() { if (sinceBuilder_ == null) { sinceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSince(), getParentForChildren(), isClean()); since_ = null; } return sinceBuilder_; } private com.google.protobuf.Timestamp until_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> untilBuilder_; /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; * @return Whether the until field is set. */ public boolean hasUntil() { return untilBuilder_ != null || until_ != null; } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; * @return The until. */ public com.google.protobuf.Timestamp getUntil() { if (untilBuilder_ == null) { return until_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : until_; } else { return untilBuilder_.getMessage(); } } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public Builder setUntil(com.google.protobuf.Timestamp value) { if (untilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } until_ = value; onChanged(); } else { untilBuilder_.setMessage(value); } return this; } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public Builder setUntil( com.google.protobuf.Timestamp.Builder builderForValue) { if (untilBuilder_ == null) { until_ = builderForValue.build(); onChanged(); } else { untilBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public Builder mergeUntil(com.google.protobuf.Timestamp value) { if (untilBuilder_ == null) { if (until_ != null) { until_ = com.google.protobuf.Timestamp.newBuilder(until_).mergeFrom(value).buildPartial(); } else { until_ = value; } onChanged(); } else { untilBuilder_.mergeFrom(value); } return this; } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public Builder clearUntil() { if (untilBuilder_ == null) { until_ = null; onChanged(); } else { until_ = null; untilBuilder_ = null; } return this; } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public com.google.protobuf.Timestamp.Builder getUntilBuilder() { onChanged(); return getUntilFieldBuilder().getBuilder(); } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ public com.google.protobuf.TimestampOrBuilder getUntilOrBuilder() { if (untilBuilder_ != null) { return untilBuilder_.getMessageOrBuilder(); } else { return until_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : until_; } } /** *
       * Upper bound of log entries timestamps.
       * 
* * .google.protobuf.Timestamp until = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUntilFieldBuilder() { if (untilBuilder_ == null) { untilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUntil(), getParentForChildren(), isClean()); until_ = null; } return untilBuilder_; } private java.util.List levels_ = java.util.Collections.emptyList(); private void ensureLevelsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { levels_ = new java.util.ArrayList(levels_); bitField0_ |= 0x00000004; } } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the levels. */ public java.util.List getLevelsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level>(levels_, levels_converter_); } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return The count of levels. */ public int getLevelsCount() { return levels_.size(); } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the element to return. * @return The levels at the given index. */ public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getLevels(int index) { return levels_converter_.convert(levels_.get(index)); } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index to set the value at. * @param value The levels to set. * @return This builder for chaining. */ public Builder setLevels( int index, yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value) { if (value == null) { throw new NullPointerException(); } ensureLevelsIsMutable(); levels_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param value The levels to add. * @return This builder for chaining. */ public Builder addLevels(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value) { if (value == null) { throw new NullPointerException(); } ensureLevelsIsMutable(); levels_.add(value.getNumber()); onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param values The levels to add. * @return This builder for chaining. */ public Builder addAllLevels( java.lang.Iterable values) { ensureLevelsIsMutable(); for (yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value : values) { levels_.add(value.getNumber()); } onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return This builder for chaining. */ public Builder clearLevels() { levels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @return A list containing the enum numeric values on the wire for levels. */ public java.util.List getLevelsValueList() { return java.util.Collections.unmodifiableList(levels_); } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of levels at the given index. */ public int getLevelsValue(int index) { return levels_.get(index); } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of levels at the given index. * @return This builder for chaining. */ public Builder setLevelsValue( int index, int value) { ensureLevelsIsMutable(); levels_.set(index, value); onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param value The enum numeric value on the wire for levels to add. * @return This builder for chaining. */ public Builder addLevelsValue(int value) { ensureLevelsIsMutable(); levels_.add(value); onChanged(); return this; } /** *
       * List of log levels to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated .yandex.cloud.logging.v1.LogLevel.Level levels = 6 [(.yandex.cloud.size) = "<=10"]; * @param values The enum numeric values on the wire for levels to add. * @return This builder for chaining. */ public Builder addAllLevelsValue( java.lang.Iterable values) { ensureLevelsIsMutable(); for (int value : values) { levels_.add(value); } onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
       * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
       * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
       * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
       * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * Filter expression. For details about filtering, see [documentation](/docs/logging/concepts/filter).
       * 
* * string filter = 7 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList streamNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStreamNamesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { streamNames_ = new com.google.protobuf.LazyStringArrayList(streamNames_); bitField0_ |= 0x00000008; } } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return A list containing the streamNames. */ public com.google.protobuf.ProtocolStringList getStreamNamesList() { return streamNames_.getUnmodifiableView(); } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return The count of streamNames. */ public int getStreamNamesCount() { return streamNames_.size(); } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the element to return. * @return The streamNames at the given index. */ public java.lang.String getStreamNames(int index) { return streamNames_.get(index); } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index of the value to return. * @return The bytes of the streamNames at the given index. */ public com.google.protobuf.ByteString getStreamNamesBytes(int index) { return streamNames_.getByteString(index); } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param index The index to set the value at. * @param value The streamNames to set. * @return This builder for chaining. */ public Builder setStreamNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStreamNamesIsMutable(); streamNames_.set(index, value); onChanged(); return this; } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The streamNames to add. * @return This builder for chaining. */ public Builder addStreamNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStreamNamesIsMutable(); streamNames_.add(value); onChanged(); return this; } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param values The streamNames to add. * @return This builder for chaining. */ public Builder addAllStreamNames( java.lang.Iterable values) { ensureStreamNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, streamNames_); onChanged(); return this; } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @return This builder for chaining. */ public Builder clearStreamNames() { streamNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * List of stream names to limit log entries to.
       * Empty list disables filter.
       * 
* * repeated string stream_names = 10 [(.yandex.cloud.pattern) = "|[a-zA-Z][-a-zA-Z0-9_.]{0,63}", (.yandex.cloud.size) = "<=100"]; * @param value The bytes of the streamNames to add. * @return This builder for chaining. */ public Builder addStreamNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStreamNamesIsMutable(); streamNames_.add(value); onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return.
       * 
* * int64 page_size = 8 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return.
       * 
* * int64 page_size = 8 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return.
       * 
* * int64 page_size = 8 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private long maxResponseSize_ ; /** *
       * Limits response to maximum size in bytes. Prevents gRPC resource exhaustion.
       * Default value for max response size is 3.5 MiB
       * 
* * int64 max_response_size = 9 [(.yandex.cloud.value) = "0-10485760"]; * @return The maxResponseSize. */ @java.lang.Override public long getMaxResponseSize() { return maxResponseSize_; } /** *
       * Limits response to maximum size in bytes. Prevents gRPC resource exhaustion.
       * Default value for max response size is 3.5 MiB
       * 
* * int64 max_response_size = 9 [(.yandex.cloud.value) = "0-10485760"]; * @param value The maxResponseSize to set. * @return This builder for chaining. */ public Builder setMaxResponseSize(long value) { maxResponseSize_ = value; onChanged(); return this; } /** *
       * Limits response to maximum size in bytes. Prevents gRPC resource exhaustion.
       * Default value for max response size is 3.5 MiB
       * 
* * int64 max_response_size = 9 [(.yandex.cloud.value) = "0-10485760"]; * @return This builder for chaining. */ public Builder clearMaxResponseSize() { maxResponseSize_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.logging.v1.Criteria) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.Criteria) private static final yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria(); } public static yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Criteria parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Criteria(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.logging.v1.LogReadingServiceOuterClass.Criteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_ReadRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_ReadResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_Criteria_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_Criteria_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n1yandex/cloud/logging/v1/log_reading_se" + "rvice.proto\022\027yandex.cloud.logging.v1\032\037go" + "ogle/protobuf/timestamp.proto\032\035yandex/cl" + "oud/validation.proto\032\'yandex/cloud/loggi" + "ng/v1/log_entry.proto\"f\n\013ReadRequest\022\024\n\n" + "page_token\030\001 \001(\tH\000\0225\n\010criteria\030\002 \001(\0132!.y" + "andex.cloud.logging.v1.CriteriaH\000B\n\n\010sel" + "ector\"\216\001\n\014ReadResponse\022\024\n\014log_group_id\030\001" + " \001(\t\0222\n\007entries\030\002 \003(\0132!.yandex.cloud.log" + "ging.v1.LogEntry\022\027\n\017next_page_token\030\003 \001(" + "\t\022\033\n\023previous_page_token\030\004 \001(\t\"\370\003\n\010Crite" + "ria\022\"\n\014log_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=64\022" + "B\n\016resource_types\030\002 \003(\tB*\362\3071\035|[a-zA-Z][-" + "a-zA-Z0-9_.]{0,63}\202\3101\005<=100\022C\n\014resource_" + "ids\030\003 \003(\tB-\362\3071 |[a-zA-Z0-9][-a-zA-Z0-9_." + "]{0,63}\202\3101\005<=100\022)\n\005since\030\004 \001(\0132\032.google" + ".protobuf.Timestamp\022)\n\005until\030\005 \001(\0132\032.goo" + "gle.protobuf.Timestamp\022A\n\006levels\030\006 \003(\0162\'" + ".yandex.cloud.logging.v1.LogLevel.LevelB" + "\010\202\3101\004<=10\022\032\n\006filter\030\007 \001(\tB\n\212\3101\006<=1000\022@\n" + "\014stream_names\030\n \003(\tB*\362\3071\035|[a-zA-Z][-a-zA" + "-Z0-9_.]{0,63}\202\3101\005<=100\022\035\n\tpage_size\030\010 \001" + "(\003B\n\372\3071\0060-1000\022)\n\021max_response_size\030\t \001(" + "\003B\016\372\3071\n0-104857602h\n\021LogReadingService\022S" + "\n\004Read\022$.yandex.cloud.logging.v1.ReadReq" + "uest\032%.yandex.cloud.logging.v1.ReadRespo" + "nseBb\n\033yandex.cloud.api.logging.v1ZCgith" + "ub.com/yandex-cloud/go-genproto/yandex/c" + "loud/logging/v1;loggingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(), }); internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_logging_v1_ReadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_ReadRequest_descriptor, new java.lang.String[] { "PageToken", "Criteria", "Selector", }); internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_logging_v1_ReadResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_ReadResponse_descriptor, new java.lang.String[] { "LogGroupId", "Entries", "NextPageToken", "PreviousPageToken", }); internal_static_yandex_cloud_logging_v1_Criteria_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_logging_v1_Criteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_Criteria_descriptor, new java.lang.String[] { "LogGroupId", "ResourceTypes", "ResourceIds", "Since", "Until", "Levels", "Filter", "StreamNames", "PageSize", "MaxResponseSize", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy