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

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

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

package yandex.cloud.api.logging.v1;

public final class SinkOuterClass {
  private SinkOuterClass() {}
  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 SinkOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.Sink)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Sink ID.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Sink ID.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Sink folder ID.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * Sink folder ID.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Sink cloud ID.
     * 
* * string cloud_id = 3; * @return The cloudId. */ java.lang.String getCloudId(); /** *
     * Sink cloud ID.
     * 
* * string cloud_id = 3; * @return The bytes for cloudId. */ com.google.protobuf.ByteString getCloudIdBytes(); /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Sink name.
     * 
* * string name = 5; * @return The name. */ java.lang.String getName(); /** *
     * Sink name.
     * 
* * string name = 5; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Sink description.
     * 
* * string description = 6; * @return The description. */ java.lang.String getDescription(); /** *
     * Sink description.
     * 
* * string description = 6; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ int getLabelsCount(); /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ java.util.Map getLabelsMap(); /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Logs will be written to the sink on behalf of this service account
     * 
* * string service_account_id = 8; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * Logs will be written to the sink on behalf of this service account
     * 
* * string service_account_id = 8; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return Whether the yds field is set. */ boolean hasYds(); /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return The yds. */ yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds getYds(); /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder getYdsOrBuilder(); /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return Whether the s3 field is set. */ boolean hasS3(); /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return The s3. */ yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 getS3(); /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder getS3OrBuilder(); public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.SinkCase getSinkCase(); } /** * Protobuf type {@code yandex.cloud.logging.v1.Sink} */ public static final class Sink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.Sink) SinkOrBuilder { private static final long serialVersionUID = 0L; // Use Sink.newBuilder() to construct. private Sink(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sink() { id_ = ""; folderId_ = ""; cloudId_ = ""; name_ = ""; description_ = ""; serviceAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Sink(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sink( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cloudId_ = s; break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 74: { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder subBuilder = null; if (sinkCase_ == 9) { subBuilder = ((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_).toBuilder(); } sink_ = input.readMessage(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_); sink_ = subBuilder.buildPartial(); } sinkCase_ = 9; break; } case 82: { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder subBuilder = null; if (sinkCase_ == 10) { subBuilder = ((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_).toBuilder(); } sink_ = input.readMessage(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_); sink_ = subBuilder.buildPartial(); } sinkCase_ = 10; 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.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Builder.class); } public interface YdsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.Sink.Yds) com.google.protobuf.MessageOrBuilder { /** *
       * Fully qualified name of data stream
       * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The streamName. */ java.lang.String getStreamName(); /** *
       * Fully qualified name of data stream
       * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The bytes for streamName. */ com.google.protobuf.ByteString getStreamNameBytes(); } /** * Protobuf type {@code yandex.cloud.logging.v1.Sink.Yds} */ public static final class Yds extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.Sink.Yds) YdsOrBuilder { private static final long serialVersionUID = 0L; // Use Yds.newBuilder() to construct. private Yds(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Yds() { streamName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Yds(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Yds( 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(); streamName_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_Yds_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder.class); } public static final int STREAM_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object streamName_; /** *
       * Fully qualified name of data stream
       * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The streamName. */ @java.lang.Override public java.lang.String getStreamName() { java.lang.Object ref = streamName_; 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(); streamName_ = s; return s; } } /** *
       * Fully qualified name of data stream
       * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The bytes for streamName. */ @java.lang.Override public com.google.protobuf.ByteString getStreamNameBytes() { java.lang.Object ref = streamName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); streamName_ = 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(streamName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamName_); } 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(streamName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamName_); } 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.SinkOuterClass.Sink.Yds)) { return super.equals(obj); } yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds other = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) obj; if (!getStreamName() .equals(other.getStreamName())) 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) + STREAM_NAME_FIELD_NUMBER; hash = (53 * hash) + getStreamName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds 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.SinkOuterClass.Sink.Yds 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.Sink.Yds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.Sink.Yds) yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_Yds_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder.class); } // Construct using yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.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(); streamName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds build() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds buildPartial() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds result = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds(this); result.streamName_ = streamName_; 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.SinkOuterClass.Sink.Yds) { return mergeFrom((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds other) { if (other == yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance()) return this; if (!other.getStreamName().isEmpty()) { streamName_ = other.streamName_; 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.SinkOuterClass.Sink.Yds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object streamName_ = ""; /** *
         * Fully qualified name of data stream
         * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The streamName. */ public java.lang.String getStreamName() { java.lang.Object ref = streamName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Fully qualified name of data stream
         * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return The bytes for streamName. */ public com.google.protobuf.ByteString getStreamNameBytes() { java.lang.Object ref = streamName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); streamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Fully qualified name of data stream
         * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @param value The streamName to set. * @return This builder for chaining. */ public Builder setStreamName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } streamName_ = value; onChanged(); return this; } /** *
         * Fully qualified name of data stream
         * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @return This builder for chaining. */ public Builder clearStreamName() { streamName_ = getDefaultInstance().getStreamName(); onChanged(); return this; } /** *
         * Fully qualified name of data stream
         * 
* * string stream_name = 1 [(.yandex.cloud.length) = "<=512"]; * @param value The bytes for streamName to set. * @return This builder for chaining. */ public Builder setStreamNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); streamName_ = 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.Sink.Yds) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.Sink.Yds) private static final yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds(); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Yds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Yds(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.SinkOuterClass.Sink.Yds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S3OrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.logging.v1.Sink.S3) com.google.protobuf.MessageOrBuilder { /** *
       * Object storage bucket
       * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bucket. */ java.lang.String getBucket(); /** *
       * Object storage bucket
       * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bytes for bucket. */ com.google.protobuf.ByteString getBucketBytes(); /** *
       * Prefix to use for saved log object names
       * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The prefix. */ java.lang.String getPrefix(); /** *
       * Prefix to use for saved log object names
       * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The bytes for prefix. */ com.google.protobuf.ByteString getPrefixBytes(); } /** * Protobuf type {@code yandex.cloud.logging.v1.Sink.S3} */ public static final class S3 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.Sink.S3) S3OrBuilder { private static final long serialVersionUID = 0L; // Use S3.newBuilder() to construct. private S3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private S3() { bucket_ = ""; prefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new S3(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private S3( 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(); bucket_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); prefix_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_S3_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** *
       * Object storage bucket
       * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bucket. */ @java.lang.Override public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; } } /** *
       * Object storage bucket
       * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bytes for bucket. */ @java.lang.Override public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREFIX_FIELD_NUMBER = 2; private volatile java.lang.Object prefix_; /** *
       * Prefix to use for saved log object names
       * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The prefix. */ @java.lang.Override public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; } } /** *
       * Prefix to use for saved log object names
       * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The bytes for prefix. */ @java.lang.Override public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = 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(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prefix_); } 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(bucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, prefix_); } 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.SinkOuterClass.Sink.S3)) { return super.equals(obj); } yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 other = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) obj; if (!getBucket() .equals(other.getBucket())) return false; if (!getPrefix() .equals(other.getPrefix())) 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) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 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.SinkOuterClass.Sink.S3 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.Sink.S3} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.Sink.S3) yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_S3_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder.class); } // Construct using yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.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(); bucket_ = ""; prefix_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 build() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 buildPartial() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 result = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3(this); result.bucket_ = bucket_; result.prefix_ = prefix_; 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.SinkOuterClass.Sink.S3) { return mergeFrom((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 other) { if (other == yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); } if (!other.getPrefix().isEmpty()) { prefix_ = other.prefix_; 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.SinkOuterClass.Sink.S3 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object bucket_ = ""; /** *
         * Object storage bucket
         * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Object storage bucket
         * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return The bytes for bucket. */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Object storage bucket
         * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @param value The bucket to set. * @return This builder for chaining. */ public Builder setBucket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucket_ = value; onChanged(); return this; } /** *
         * Object storage bucket
         * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @return This builder for chaining. */ public Builder clearBucket() { bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** *
         * Object storage bucket
         * 
* * string bucket = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}"]; * @param value The bytes for bucket to set. * @return This builder for chaining. */ public Builder setBucketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; onChanged(); return this; } private java.lang.Object prefix_ = ""; /** *
         * Prefix to use for saved log object names
         * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Prefix to use for saved log object names
         * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return The bytes for prefix. */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Prefix to use for saved log object names
         * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @param value The prefix to set. * @return This builder for chaining. */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prefix_ = value; onChanged(); return this; } /** *
         * Prefix to use for saved log object names
         * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @return This builder for chaining. */ public Builder clearPrefix() { prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** *
         * Prefix to use for saved log object names
         * 
* * string prefix = 2 [(.yandex.cloud.length) = "<=1024"]; * @param value The bytes for prefix to set. * @return This builder for chaining. */ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = 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.Sink.S3) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.Sink.S3) private static final yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3(); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public S3 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new S3(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.SinkOuterClass.Sink.S3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sinkCase_ = 0; private java.lang.Object sink_; public enum SinkCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { YDS(9), S3(10), SINK_NOT_SET(0); private final int value; private SinkCase(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 SinkCase valueOf(int value) { return forNumber(value); } public static SinkCase forNumber(int value) { switch (value) { case 9: return YDS; case 10: return S3; case 0: return SINK_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SinkCase getSinkCase() { return SinkCase.forNumber( sinkCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Sink ID.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * Sink ID.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * Sink folder ID.
     * 
* * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** *
     * Sink folder ID.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLOUD_ID_FIELD_NUMBER = 3; private volatile java.lang.Object cloudId_; /** *
     * Sink cloud ID.
     * 
* * string cloud_id = 3; * @return The cloudId. */ @java.lang.Override public java.lang.String getCloudId() { java.lang.Object ref = cloudId_; 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(); cloudId_ = s; return s; } } /** *
     * Sink cloud ID.
     * 
* * string cloud_id = 3; * @return The bytes for cloudId. */ @java.lang.Override public com.google.protobuf.ByteString getCloudIdBytes() { java.lang.Object ref = cloudId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cloudId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createdAt_; /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Sink creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** *
     * Sink name.
     * 
* * string name = 5; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Sink name.
     * 
* * string name = 5; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** *
     * Sink description.
     * 
* * string description = 6; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Sink description.
     * 
* * string description = 6; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 7; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Sink labels.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 8; private volatile java.lang.Object serviceAccountId_; /** *
     * Logs will be written to the sink on behalf of this service account
     * 
* * string service_account_id = 8; * @return The serviceAccountId. */ @java.lang.Override public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; } } /** *
     * Logs will be written to the sink on behalf of this service account
     * 
* * string service_account_id = 8; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int YDS_FIELD_NUMBER = 9; /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return Whether the yds field is set. */ @java.lang.Override public boolean hasYds() { return sinkCase_ == 9; } /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return The yds. */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds getYds() { if (sinkCase_ == 9) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } /** *
     * Yandex data stream
     * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder getYdsOrBuilder() { if (sinkCase_ == 9) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } public static final int S3_FIELD_NUMBER = 10; /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return Whether the s3 field is set. */ @java.lang.Override public boolean hasS3() { return sinkCase_ == 10; } /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return The s3. */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 getS3() { if (sinkCase_ == 10) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } /** *
     * Object storage
     * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder getS3OrBuilder() { if (sinkCase_ == 10) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cloudId_); } if (createdAt_ != null) { output.writeMessage(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccountId_); } if (sinkCase_ == 9) { output.writeMessage(9, (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_); } if (sinkCase_ == 10) { output.writeMessage(10, (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cloudId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccountId_); } if (sinkCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_); } if (sinkCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_); } 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.SinkOuterClass.Sink)) { return super.equals(obj); } yandex.cloud.api.logging.v1.SinkOuterClass.Sink other = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getCloudId() .equals(other.getCloudId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (!getSinkCase().equals(other.getSinkCase())) return false; switch (sinkCase_) { case 9: if (!getYds() .equals(other.getYds())) return false; break; case 10: if (!getS3() .equals(other.getS3())) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + CLOUD_ID_FIELD_NUMBER; hash = (53 * hash) + getCloudId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); switch (sinkCase_) { case 9: hash = (37 * hash) + YDS_FIELD_NUMBER; hash = (53 * hash) + getYds().hashCode(); break; case 10: hash = (37 * hash) + S3_FIELD_NUMBER; hash = (53 * hash) + getS3().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink 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.SinkOuterClass.Sink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink 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.SinkOuterClass.Sink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink 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.SinkOuterClass.Sink parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink 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.SinkOuterClass.Sink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink 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.SinkOuterClass.Sink 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.SinkOuterClass.Sink 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.SinkOuterClass.Sink 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.Sink} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.Sink) yandex.cloud.api.logging.v1.SinkOuterClass.SinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 7: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.class, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Builder.class); } // Construct using yandex.cloud.api.logging.v1.SinkOuterClass.Sink.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(); id_ = ""; folderId_ = ""; cloudId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); serviceAccountId_ = ""; sinkCase_ = 0; sink_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.internal_static_yandex_cloud_logging_v1_Sink_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink build() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink buildPartial() { yandex.cloud.api.logging.v1.SinkOuterClass.Sink result = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; result.cloudId_ = cloudId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.serviceAccountId_ = serviceAccountId_; if (sinkCase_ == 9) { if (ydsBuilder_ == null) { result.sink_ = sink_; } else { result.sink_ = ydsBuilder_.build(); } } if (sinkCase_ == 10) { if (s3Builder_ == null) { result.sink_ = sink_; } else { result.sink_ = s3Builder_.build(); } } result.sinkCase_ = sinkCase_; 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.SinkOuterClass.Sink) { return mergeFrom((yandex.cloud.api.logging.v1.SinkOuterClass.Sink)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.SinkOuterClass.Sink other) { if (other == yandex.cloud.api.logging.v1.SinkOuterClass.Sink.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getCloudId().isEmpty()) { cloudId_ = other.cloudId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } switch (other.getSinkCase()) { case YDS: { mergeYds(other.getYds()); break; } case S3: { mergeS3(other.getS3()); break; } case SINK_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.SinkOuterClass.Sink parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.SinkOuterClass.Sink) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sinkCase_ = 0; private java.lang.Object sink_; public SinkCase getSinkCase() { return SinkCase.forNumber( sinkCase_); } public Builder clearSink() { sinkCase_ = 0; sink_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Sink ID.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sink ID.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sink ID.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * Sink ID.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Sink ID.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * Sink folder ID.
       * 
* * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sink folder ID.
       * 
* * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sink folder ID.
       * 
* * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * Sink folder ID.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * Sink folder ID.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object cloudId_ = ""; /** *
       * Sink cloud ID.
       * 
* * string cloud_id = 3; * @return The cloudId. */ public java.lang.String getCloudId() { java.lang.Object ref = cloudId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sink cloud ID.
       * 
* * string cloud_id = 3; * @return The bytes for cloudId. */ public com.google.protobuf.ByteString getCloudIdBytes() { java.lang.Object ref = cloudId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cloudId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sink cloud ID.
       * 
* * string cloud_id = 3; * @param value The cloudId to set. * @return This builder for chaining. */ public Builder setCloudId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cloudId_ = value; onChanged(); return this; } /** *
       * Sink cloud ID.
       * 
* * string cloud_id = 3; * @return This builder for chaining. */ public Builder clearCloudId() { cloudId_ = getDefaultInstance().getCloudId(); onChanged(); return this; } /** *
       * Sink cloud ID.
       * 
* * string cloud_id = 3; * @param value The bytes for cloudId to set. * @return This builder for chaining. */ public Builder setCloudIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cloudId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Sink creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Sink name.
       * 
* * string name = 5; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sink name.
       * 
* * string name = 5; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sink name.
       * 
* * string name = 5; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Sink name.
       * 
* * string name = 5; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Sink name.
       * 
* * string name = 5; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Sink description.
       * 
* * string description = 6; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sink description.
       * 
* * string description = 6; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sink description.
       * 
* * string description = 6; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Sink description.
       * 
* * string description = 6; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Sink description.
       * 
* * string description = 6; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Sink labels.
       * 
* * map<string, string> labels = 7; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object serviceAccountId_ = ""; /** *
       * Logs will be written to the sink on behalf of this service account
       * 
* * string service_account_id = 8; * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Logs will be written to the sink on behalf of this service account
       * 
* * string service_account_id = 8; * @return The bytes for serviceAccountId. */ public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Logs will be written to the sink on behalf of this service account
       * 
* * string service_account_id = 8; * @param value The serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; onChanged(); return this; } /** *
       * Logs will be written to the sink on behalf of this service account
       * 
* * string service_account_id = 8; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * Logs will be written to the sink on behalf of this service account
       * 
* * string service_account_id = 8; * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder> ydsBuilder_; /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return Whether the yds field is set. */ @java.lang.Override public boolean hasYds() { return sinkCase_ == 9; } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; * @return The yds. */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds getYds() { if (ydsBuilder_ == null) { if (sinkCase_ == 9) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } else { if (sinkCase_ == 9) { return ydsBuilder_.getMessage(); } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ public Builder setYds(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds value) { if (ydsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sink_ = value; onChanged(); } else { ydsBuilder_.setMessage(value); } sinkCase_ = 9; return this; } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ public Builder setYds( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder builderForValue) { if (ydsBuilder_ == null) { sink_ = builderForValue.build(); onChanged(); } else { ydsBuilder_.setMessage(builderForValue.build()); } sinkCase_ = 9; return this; } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ public Builder mergeYds(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds value) { if (ydsBuilder_ == null) { if (sinkCase_ == 9 && sink_ != yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance()) { sink_ = yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.newBuilder((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_) .mergeFrom(value).buildPartial(); } else { sink_ = value; } onChanged(); } else { if (sinkCase_ == 9) { ydsBuilder_.mergeFrom(value); } ydsBuilder_.setMessage(value); } sinkCase_ = 9; return this; } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ public Builder clearYds() { if (ydsBuilder_ == null) { if (sinkCase_ == 9) { sinkCase_ = 0; sink_ = null; onChanged(); } } else { if (sinkCase_ == 9) { sinkCase_ = 0; sink_ = null; } ydsBuilder_.clear(); } return this; } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder getYdsBuilder() { return getYdsFieldBuilder().getBuilder(); } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder getYdsOrBuilder() { if ((sinkCase_ == 9) && (ydsBuilder_ != null)) { return ydsBuilder_.getMessageOrBuilder(); } else { if (sinkCase_ == 9) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } } /** *
       * Yandex data stream
       * 
* * .yandex.cloud.logging.v1.Sink.Yds yds = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder> getYdsFieldBuilder() { if (ydsBuilder_ == null) { if (!(sinkCase_ == 9)) { sink_ = yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.getDefaultInstance(); } ydsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.YdsOrBuilder>( (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.Yds) sink_, getParentForChildren(), isClean()); sink_ = null; } sinkCase_ = 9; onChanged();; return ydsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder> s3Builder_; /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return Whether the s3 field is set. */ @java.lang.Override public boolean hasS3() { return sinkCase_ == 10; } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; * @return The s3. */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 getS3() { if (s3Builder_ == null) { if (sinkCase_ == 10) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } else { if (sinkCase_ == 10) { return s3Builder_.getMessage(); } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ public Builder setS3(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 value) { if (s3Builder_ == null) { if (value == null) { throw new NullPointerException(); } sink_ = value; onChanged(); } else { s3Builder_.setMessage(value); } sinkCase_ = 10; return this; } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ public Builder setS3( yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder builderForValue) { if (s3Builder_ == null) { sink_ = builderForValue.build(); onChanged(); } else { s3Builder_.setMessage(builderForValue.build()); } sinkCase_ = 10; return this; } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ public Builder mergeS3(yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3 value) { if (s3Builder_ == null) { if (sinkCase_ == 10 && sink_ != yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance()) { sink_ = yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.newBuilder((yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_) .mergeFrom(value).buildPartial(); } else { sink_ = value; } onChanged(); } else { if (sinkCase_ == 10) { s3Builder_.mergeFrom(value); } s3Builder_.setMessage(value); } sinkCase_ = 10; return this; } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ public Builder clearS3() { if (s3Builder_ == null) { if (sinkCase_ == 10) { sinkCase_ = 0; sink_ = null; onChanged(); } } else { if (sinkCase_ == 10) { sinkCase_ = 0; sink_ = null; } s3Builder_.clear(); } return this; } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder getS3Builder() { return getS3FieldBuilder().getBuilder(); } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ @java.lang.Override public yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder getS3OrBuilder() { if ((sinkCase_ == 10) && (s3Builder_ != null)) { return s3Builder_.getMessageOrBuilder(); } else { if (sinkCase_ == 10) { return (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_; } return yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } } /** *
       * Object storage
       * 
* * .yandex.cloud.logging.v1.Sink.S3 s3 = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder> getS3FieldBuilder() { if (s3Builder_ == null) { if (!(sinkCase_ == 10)) { sink_ = yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.getDefaultInstance(); } s3Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3.Builder, yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3OrBuilder>( (yandex.cloud.api.logging.v1.SinkOuterClass.Sink.S3) sink_, getParentForChildren(), isClean()); sink_ = null; } sinkCase_ = 10; onChanged();; return s3Builder_; } @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.Sink) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.Sink) private static final yandex.cloud.api.logging.v1.SinkOuterClass.Sink DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.SinkOuterClass.Sink(); } public static yandex.cloud.api.logging.v1.SinkOuterClass.Sink getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sink parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Sink(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.SinkOuterClass.Sink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_Sink_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_Sink_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_Sink_Yds_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_Sink_S3_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\"yandex/cloud/logging/v1/sink.proto\022\027ya" + "ndex.cloud.logging.v1\032\037google/protobuf/t" + "imestamp.proto\032\035yandex/cloud/validation." + "proto\"\375\003\n\004Sink\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030" + "\002 \001(\t\022\020\n\010cloud_id\030\003 \001(\t\022.\n\ncreated_at\030\004 " + "\001(\0132\032.google.protobuf.Timestamp\022\014\n\004name\030" + "\005 \001(\t\022\023\n\013description\030\006 \001(\t\0229\n\006labels\030\007 \003" + "(\0132).yandex.cloud.logging.v1.Sink.Labels" + "Entry\022\032\n\022service_account_id\030\010 \001(\t\0220\n\003yds" + "\030\t \001(\0132!.yandex.cloud.logging.v1.Sink.Yd" + "sH\000\022.\n\002s3\030\n \001(\0132 .yandex.cloud.logging.v" + "1.Sink.S3H\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\032%\n\003Yds\022\036\n\013stream_name" + "\030\001 \001(\tB\t\212\3101\005<=512\032T\n\002S3\0222\n\006bucket\030\001 \001(\tB" + "\"\362\3071\036[a-zA-Z0-9][-a-zA-Z0-9.]{2,62}\022\032\n\006p" + "refix\030\002 \001(\tB\n\212\3101\006<=1024B\014\n\004sink\022\004\300\3011\001Bb\n" + "\033yandex.cloud.api.logging.v1ZCgithub.com" + "/yandex-cloud/go-genproto/yandex/cloud/l" + "ogging/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(), }); internal_static_yandex_cloud_logging_v1_Sink_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_logging_v1_Sink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_Sink_descriptor, new java.lang.String[] { "Id", "FolderId", "CloudId", "CreatedAt", "Name", "Description", "Labels", "ServiceAccountId", "Yds", "S3", "Sink", }); internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_descriptor = internal_static_yandex_cloud_logging_v1_Sink_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_Sink_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor = internal_static_yandex_cloud_logging_v1_Sink_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_logging_v1_Sink_Yds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_Sink_Yds_descriptor, new java.lang.String[] { "StreamName", }); internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor = internal_static_yandex_cloud_logging_v1_Sink_descriptor.getNestedTypes().get(2); internal_static_yandex_cloud_logging_v1_Sink_S3_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_Sink_S3_descriptor, new java.lang.String[] { "Bucket", "Prefix", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.pattern); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy