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

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

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

package yandex.cloud.api.logging.v1;

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

    /**
     * 
     * Log group ID.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Log group ID.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Log group folder ID.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * Log group folder ID.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Log group cloud ID.
     * 
* * string cloud_id = 3; * @return The cloudId. */ java.lang.String getCloudId(); /** *
     * Log group cloud ID.
     * 
* * string cloud_id = 3; * @return The bytes for cloudId. */ com.google.protobuf.ByteString getCloudIdBytes(); /** *
     * Log group creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Log group creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Log group creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Log group name.
     * 
* * string name = 5; * @return The name. */ java.lang.String getName(); /** *
     * Log group name.
     * 
* * string name = 5; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Log group description.
     * 
* * string description = 6; * @return The description. */ java.lang.String getDescription(); /** *
     * Log group description.
     * 
* * string description = 6; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ int getLabelsCount(); /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ java.util.Map getLabelsMap(); /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Status of the log group.
     * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the log group.
     * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The status. */ yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status getStatus(); /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ boolean hasRetentionPeriod(); /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ com.google.protobuf.Duration getRetentionPeriod(); /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; */ com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder(); /** *
     * Data stream name
     * 
* * string data_stream = 10; * @return The dataStream. */ java.lang.String getDataStream(); /** *
     * Data stream name
     * 
* * string data_stream = 10; * @return The bytes for dataStream. */ com.google.protobuf.ByteString getDataStreamBytes(); } /** * Protobuf type {@code yandex.cloud.logging.v1.LogGroup} */ public static final class LogGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.logging.v1.LogGroup) LogGroupOrBuilder { private static final long serialVersionUID = 0L; // Use LogGroup.newBuilder() to construct. private LogGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogGroup() { id_ = ""; folderId_ = ""; cloudId_ = ""; name_ = ""; description_ = ""; status_ = 0; dataStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LogGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LogGroup( 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 64: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 74: { com.google.protobuf.Duration.Builder subBuilder = null; if (retentionPeriod_ != null) { subBuilder = retentionPeriod_.toBuilder(); } retentionPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionPeriod_); retentionPeriod_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); dataStream_ = 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.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_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.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.class, yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Builder.class); } /** *
     * Possible log group statuses.
     * 
* * Protobuf enum {@code yandex.cloud.logging.v1.LogGroup.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Unknown status.
       * Should never occur.
       * 
* * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Log group is creating.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Log group is ready to accept messages,
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * Log group is being deleted.
       * No messages will be accepted.
       * 
* * DELETING = 3; */ DELETING(3), /** *
       * Log group is in failed state.
       * 
* * ERROR = 4; */ ERROR(4), UNRECOGNIZED(-1), ; /** *
       * Unknown status.
       * Should never occur.
       * 
* * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Log group is creating.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Log group is ready to accept messages,
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * Log group is being deleted.
       * No messages will be accepted.
       * 
* * DELETING = 3; */ public static final int DELETING_VALUE = 3; /** *
       * Log group is in failed state.
       * 
* * ERROR = 4; */ public static final int ERROR_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; case 3: return DELETING; case 4: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.logging.v1.LogGroup.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Log group 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; } } /** *
     * Log group 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_; /** *
     * Log group 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; } } /** *
     * Log group 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_; /** *
     * Log group 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; } } /** *
     * Log group 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_; /** *
     * Log group creation time.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Log group 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_; } /** *
     * Log group 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_; /** *
     * Log group 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; } } /** *
     * Log group 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_; /** *
     * Log group 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; } } /** *
     * Log group 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.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_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(); } /** *
     * Log group 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(); } /** *
     * Log group labels.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Log group 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; } /** *
     * Log group 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 STATUS_FIELD_NUMBER = 8; private int status_; /** *
     * Status of the log group.
     * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the log group.
     * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The status. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status result = yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.valueOf(status_); return result == null ? yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.UNRECOGNIZED : result; } public static final int RETENTION_PERIOD_FIELD_NUMBER = 9; private com.google.protobuf.Duration retentionPeriod_; /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPeriod_ != null; } /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } /** *
     * Log group entry retention period.
     * Entries will be present in group during this period.
     * 
* * .google.protobuf.Duration retention_period = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { return getRetentionPeriod(); } public static final int DATA_STREAM_FIELD_NUMBER = 10; private volatile java.lang.Object dataStream_; /** *
     * Data stream name
     * 
* * string data_stream = 10; * @return The dataStream. */ @java.lang.Override public java.lang.String getDataStream() { java.lang.Object ref = dataStream_; 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(); dataStream_ = s; return s; } } /** *
     * Data stream name
     * 
* * string data_stream = 10; * @return The bytes for dataStream. */ @java.lang.Override public com.google.protobuf.ByteString getDataStreamBytes() { java.lang.Object ref = dataStream_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataStream_ = 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(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 (status_ != yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(8, status_); } if (retentionPeriod_ != null) { output.writeMessage(9, getRetentionPeriod()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, dataStream_); } 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 (status_ != yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, status_); } if (retentionPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRetentionPeriod()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStream_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, dataStream_); } 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.LogGroupOuterClass.LogGroup)) { return super.equals(obj); } yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup other = (yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup) 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 (status_ != other.status_) return false; if (hasRetentionPeriod() != other.hasRetentionPeriod()) return false; if (hasRetentionPeriod()) { if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; } if (!getDataStream() .equals(other.getDataStream())) 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) + 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasRetentionPeriod()) { hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); } hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; hash = (53 * hash) + getDataStream().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup 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.LogGroupOuterClass.LogGroup 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.LogGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.logging.v1.LogGroup) yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.logging.v1.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_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.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.class, yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Builder.class); } // Construct using yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.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(); status_ = 0; if (retentionPeriodBuilder_ == null) { retentionPeriod_ = null; } else { retentionPeriod_ = null; retentionPeriodBuilder_ = null; } dataStream_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.logging.v1.LogGroupOuterClass.internal_static_yandex_cloud_logging_v1_LogGroup_descriptor; } @java.lang.Override public yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup getDefaultInstanceForType() { return yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup build() { yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup buildPartial() { yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup result = new yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup(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.status_ = status_; if (retentionPeriodBuilder_ == null) { result.retentionPeriod_ = retentionPeriod_; } else { result.retentionPeriod_ = retentionPeriodBuilder_.build(); } result.dataStream_ = dataStream_; 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.LogGroupOuterClass.LogGroup) { return mergeFrom((yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup other) { if (other == yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.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.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasRetentionPeriod()) { mergeRetentionPeriod(other.getRetentionPeriod()); } if (!other.getDataStream().isEmpty()) { dataStream_ = other.dataStream_; 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.LogGroupOuterClass.LogGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Log group 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; } } /** *
       * Log group 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; } } /** *
       * Log group 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; } /** *
       * Log group ID.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Log group 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_ = ""; /** *
       * Log group 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; } } /** *
       * Log group 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; } } /** *
       * Log group 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; } /** *
       * Log group folder ID.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * Log group 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_ = ""; /** *
       * Log group 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; } } /** *
       * Log group 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; } } /** *
       * Log group 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; } /** *
       * Log group cloud ID.
       * 
* * string cloud_id = 3; * @return This builder for chaining. */ public Builder clearCloudId() { cloudId_ = getDefaultInstance().getCloudId(); onChanged(); return this; } /** *
       * Log group 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_; /** *
       * Log group creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Log group 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(); } } /** *
       * Log group 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; } /** *
       * Log group 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; } /** *
       * Log group 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; } /** *
       * Log group creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Log group creation time.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Log group 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_; } } /** *
       * Log group 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_ = ""; /** *
       * Log group 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; } } /** *
       * Log group 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; } } /** *
       * Log group 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; } /** *
       * Log group name.
       * 
* * string name = 5; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Log group 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_ = ""; /** *
       * Log group 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; } } /** *
       * Log group 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; } } /** *
       * Log group 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; } /** *
       * Log group description.
       * 
* * string description = 6; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Log group 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(); } /** *
       * Log group 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(); } /** *
       * Log group labels.
       * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Log group 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; } /** *
       * Log group 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; } /** *
       * Log group 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(); } /** *
       * Log group 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; } /** *
       * Log group labels.
       * 
* * map<string, string> labels = 7; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int status_ = 0; /** *
       * Status of the log group.
       * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the log group.
       * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the log group.
       * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return The status. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status result = yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.valueOf(status_); return result == null ? yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status.UNRECOGNIZED : result; } /** *
       * Status of the log group.
       * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the log group.
       * 
* * .yandex.cloud.logging.v1.LogGroup.Status status = 8; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.Duration retentionPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionPeriodBuilder_; /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ public boolean hasRetentionPeriod() { return retentionPeriodBuilder_ != null || retentionPeriod_ != null; } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } else { return retentionPeriodBuilder_.getMessage(); } } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder setRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionPeriod_ = value; onChanged(); } else { retentionPeriodBuilder_.setMessage(value); } return this; } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPeriod_ = builderForValue.build(); onChanged(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (retentionPeriod_ != null) { retentionPeriod_ = com.google.protobuf.Duration.newBuilder(retentionPeriod_).mergeFrom(value).buildPartial(); } else { retentionPeriod_ = value; } onChanged(); } else { retentionPeriodBuilder_.mergeFrom(value); } return this; } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder clearRetentionPeriod() { if (retentionPeriodBuilder_ == null) { retentionPeriod_ = null; onChanged(); } else { retentionPeriod_ = null; retentionPeriodBuilder_ = null; } return this; } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder() { onChanged(); return getRetentionPeriodFieldBuilder().getBuilder(); } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPeriodBuilder_ != null) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } } /** *
       * Log group entry retention period.
       * Entries will be present in group during this period.
       * 
* * .google.protobuf.Duration retention_period = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { retentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getRetentionPeriod(), getParentForChildren(), isClean()); retentionPeriod_ = null; } return retentionPeriodBuilder_; } private java.lang.Object dataStream_ = ""; /** *
       * Data stream name
       * 
* * string data_stream = 10; * @return The dataStream. */ public java.lang.String getDataStream() { java.lang.Object ref = dataStream_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataStream_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Data stream name
       * 
* * string data_stream = 10; * @return The bytes for dataStream. */ public com.google.protobuf.ByteString getDataStreamBytes() { java.lang.Object ref = dataStream_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataStream_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Data stream name
       * 
* * string data_stream = 10; * @param value The dataStream to set. * @return This builder for chaining. */ public Builder setDataStream( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dataStream_ = value; onChanged(); return this; } /** *
       * Data stream name
       * 
* * string data_stream = 10; * @return This builder for chaining. */ public Builder clearDataStream() { dataStream_ = getDefaultInstance().getDataStream(); onChanged(); return this; } /** *
       * Data stream name
       * 
* * string data_stream = 10; * @param value The bytes for dataStream to set. * @return This builder for chaining. */ public Builder setDataStreamBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataStream_ = 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.LogGroup) } // @@protoc_insertion_point(class_scope:yandex.cloud.logging.v1.LogGroup) private static final yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup(); } public static yandex.cloud.api.logging.v1.LogGroupOuterClass.LogGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LogGroup(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.LogGroupOuterClass.LogGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_LogGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_LogGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_logging_v1_LogGroup_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_logging_v1_LogGroup_LabelsEntry_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/log_group.prot" + "o\022\027yandex.cloud.logging.v1\032\036google/proto" + "buf/duration.proto\032\037google/protobuf/time" + "stamp.proto\"\325\003\n\010LogGroup\022\n\n\002id\030\001 \001(\t\022\021\n\t" + "folder_id\030\002 \001(\t\022\020\n\010cloud_id\030\003 \001(\t\022.\n\ncre" + "ated_at\030\004 \001(\0132\032.google.protobuf.Timestam" + "p\022\014\n\004name\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\022=\n\006" + "labels\030\007 \003(\0132-.yandex.cloud.logging.v1.L" + "ogGroup.LabelsEntry\0228\n\006status\030\010 \001(\0162(.ya" + "ndex.cloud.logging.v1.LogGroup.Status\0223\n" + "\020retention_period\030\t \001(\0132\031.google.protobu" + "f.Duration\022\023\n\013data_stream\030\n \001(\t\032-\n\013Label" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S" + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\014\n\010CREA" + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERRO" + "R\020\004Bb\n\033yandex.cloud.api.logging.v1ZCgith" + "ub.com/yandex-cloud/go-genproto/yandex/c" + "loud/logging/v1;loggingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_logging_v1_LogGroup_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_logging_v1_LogGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_LogGroup_descriptor, new java.lang.String[] { "Id", "FolderId", "CloudId", "CreatedAt", "Name", "Description", "Labels", "Status", "RetentionPeriod", "DataStream", }); internal_static_yandex_cloud_logging_v1_LogGroup_LabelsEntry_descriptor = internal_static_yandex_cloud_logging_v1_LogGroup_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_logging_v1_LogGroup_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_logging_v1_LogGroup_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy