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

yandex.cloud.api.monitoring.v3.DashboardOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/monitoring/v3/dashboard.proto

package yandex.cloud.api.monitoring.v3;

public final class DashboardOuterClass {
  private DashboardOuterClass() {}
  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 DashboardOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.monitoring.v3.Dashboard)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Dashboard ID.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Dashboard ID.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return Whether the folderId field is set. */ boolean hasFolderId(); /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; * @return Whether the modifiedAt field is set. */ boolean hasModifiedAt(); /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; * @return The modifiedAt. */ com.google.protobuf.Timestamp getModifiedAt(); /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; */ com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder(); /** *
     * ID of the user who created the dashboard.
     * 
* * string created_by = 22; * @return The createdBy. */ java.lang.String getCreatedBy(); /** *
     * ID of the user who created the dashboard.
     * 
* * string created_by = 22; * @return The bytes for createdBy. */ com.google.protobuf.ByteString getCreatedByBytes(); /** *
     * ID of the user who modified the dashboard.
     * 
* * string modified_by = 23; * @return The modifiedBy. */ java.lang.String getModifiedBy(); /** *
     * ID of the user who modified the dashboard.
     * 
* * string modified_by = 23; * @return The bytes for modifiedBy. */ com.google.protobuf.ByteString getModifiedByBytes(); /** *
     * Dashboard name.
     * 
* * string name = 24; * @return The name. */ java.lang.String getName(); /** *
     * Dashboard name.
     * 
* * string name = 24; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Dashboard description.
     * 
* * string description = 25; * @return The description. */ java.lang.String getDescription(); /** *
     * Dashboard description.
     * 
* * string description = 25; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Dashboard title.
     * 
* * string title = 27; * @return The title. */ java.lang.String getTitle(); /** *
     * Dashboard title.
     * 
* * string title = 27; * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ java.util.List getWidgetsList(); /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget getWidgets(int index); /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ int getWidgetsCount(); /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ java.util.List getWidgetsOrBuilderList(); /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder getWidgetsOrBuilder( int index); /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return Whether the parametrization field is set. */ boolean hasParametrization(); /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return The parametrization. */ yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization getParametrization(); /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder getParametrizationOrBuilder(); /** *
     * Dashboard etag.
     * 
* * string etag = 30; * @return The etag. */ java.lang.String getEtag(); /** *
     * Dashboard etag.
     * 
* * string etag = 30; * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); public yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.ContainerCase getContainerCase(); } /** *
   * Dashboard resource.
   * 
* * Protobuf type {@code yandex.cloud.monitoring.v3.Dashboard} */ public static final class Dashboard extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.monitoring.v3.Dashboard) DashboardOrBuilder { private static final long serialVersionUID = 0L; // Use Dashboard.newBuilder() to construct. private Dashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Dashboard() { id_ = ""; createdBy_ = ""; modifiedBy_ = ""; name_ = ""; description_ = ""; title_ = ""; widgets_ = java.util.Collections.emptyList(); etag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Dashboard(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Dashboard( 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 26: { java.lang.String s = input.readStringRequireUtf8(); containerCase_ = 3; container_ = s; break; } case 162: { 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 170: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } case 178: { java.lang.String s = input.readStringRequireUtf8(); createdBy_ = s; break; } case 186: { java.lang.String s = input.readStringRequireUtf8(); modifiedBy_ = s; break; } case 194: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 202: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 210: { 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 218: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 226: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } widgets_.add( input.readMessage(yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.parser(), extensionRegistry)); break; } case 234: { yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder subBuilder = null; if (parametrization_ != null) { subBuilder = parametrization_.toBuilder(); } parametrization_ = input.readMessage(yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parametrization_); parametrization_ = subBuilder.buildPartial(); } break; } case 242: { java.lang.String s = input.readStringRequireUtf8(); etag_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 26: 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.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.class, yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.Builder.class); } private int containerCase_ = 0; private java.lang.Object container_; public enum ContainerCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FOLDER_ID(3), CONTAINER_NOT_SET(0); private final int value; private ContainerCase(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 ContainerCase valueOf(int value) { return forNumber(value); } public static ContainerCase forNumber(int value) { switch (value) { case 3: return FOLDER_ID; case 0: return CONTAINER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ContainerCase getContainerCase() { return ContainerCase.forNumber( containerCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Dashboard 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; } } /** *
     * Dashboard 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 = 3; /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return Whether the folderId field is set. */ public boolean hasFolderId() { return containerCase_ == 3; } /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = ""; if (containerCase_ == 3) { ref = container_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (containerCase_ == 3) { container_ = s; } return s; } } /** *
     * Folder ID.
     * 
* * string folder_id = 3; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (containerCase_ == 3) { ref = container_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (containerCase_ == 3) { container_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 20; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 20; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 21; private com.google.protobuf.Timestamp modifiedAt_; /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
     * Modification timestamp.
     * 
* * .google.protobuf.Timestamp modified_at = 21; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int CREATED_BY_FIELD_NUMBER = 22; private volatile java.lang.Object createdBy_; /** *
     * ID of the user who created the dashboard.
     * 
* * string created_by = 22; * @return The createdBy. */ @java.lang.Override public java.lang.String getCreatedBy() { java.lang.Object ref = createdBy_; 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(); createdBy_ = s; return s; } } /** *
     * ID of the user who created the dashboard.
     * 
* * string created_by = 22; * @return The bytes for createdBy. */ @java.lang.Override public com.google.protobuf.ByteString getCreatedByBytes() { java.lang.Object ref = createdBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODIFIED_BY_FIELD_NUMBER = 23; private volatile java.lang.Object modifiedBy_; /** *
     * ID of the user who modified the dashboard.
     * 
* * string modified_by = 23; * @return The modifiedBy. */ @java.lang.Override public java.lang.String getModifiedBy() { java.lang.Object ref = modifiedBy_; 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(); modifiedBy_ = s; return s; } } /** *
     * ID of the user who modified the dashboard.
     * 
* * string modified_by = 23; * @return The bytes for modifiedBy. */ @java.lang.Override public com.google.protobuf.ByteString getModifiedByBytes() { java.lang.Object ref = modifiedBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modifiedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 24; private volatile java.lang.Object name_; /** *
     * Dashboard name.
     * 
* * string name = 24; * @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; } } /** *
     * Dashboard name.
     * 
* * string name = 24; * @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 = 25; private volatile java.lang.Object description_; /** *
     * Dashboard description.
     * 
* * string description = 25; * @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; } } /** *
     * Dashboard description.
     * 
* * string description = 25; * @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 = 26; 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.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_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(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ @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(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ @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; } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 26; */ @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 TITLE_FIELD_NUMBER = 27; private volatile java.lang.Object title_; /** *
     * Dashboard title.
     * 
* * string title = 27; * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; 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(); title_ = s; return s; } } /** *
     * Dashboard title.
     * 
* * string title = 27; * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WIDGETS_FIELD_NUMBER = 28; private java.util.List widgets_; /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ @java.lang.Override public java.util.List getWidgetsList() { return widgets_; } /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ @java.lang.Override public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ @java.lang.Override public int getWidgetsCount() { return widgets_.size(); } /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ @java.lang.Override public yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget getWidgets(int index) { return widgets_.get(index); } /** *
     * List of dashboard widgets.
     * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ @java.lang.Override public yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder getWidgetsOrBuilder( int index) { return widgets_.get(index); } public static final int PARAMETRIZATION_FIELD_NUMBER = 29; private yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization parametrization_; /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return Whether the parametrization field is set. */ @java.lang.Override public boolean hasParametrization() { return parametrization_ != null; } /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return The parametrization. */ @java.lang.Override public yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization getParametrization() { return parametrization_ == null ? yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.getDefaultInstance() : parametrization_; } /** *
     * Dashboard parametrization.
     * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ @java.lang.Override public yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder getParametrizationOrBuilder() { return getParametrization(); } public static final int ETAG_FIELD_NUMBER = 30; private volatile java.lang.Object etag_; /** *
     * Dashboard etag.
     * 
* * string etag = 30; * @return The etag. */ @java.lang.Override public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; } } /** *
     * Dashboard etag.
     * 
* * string etag = 30; * @return The bytes for etag. */ @java.lang.Override public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); etag_ = 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 (containerCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, container_); } if (createdAt_ != null) { output.writeMessage(20, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(21, getModifiedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, createdBy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modifiedBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, modifiedBy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 26); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, title_); } for (int i = 0; i < widgets_.size(); i++) { output.writeMessage(28, widgets_.get(i)); } if (parametrization_ != null) { output.writeMessage(29, getParametrization()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, etag_); } 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 (containerCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, container_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getModifiedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, createdBy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modifiedBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, modifiedBy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, 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(26, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, title_); } for (int i = 0; i < widgets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, widgets_.get(i)); } if (parametrization_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, getParametrization()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, etag_); } 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.monitoring.v3.DashboardOuterClass.Dashboard)) { return super.equals(obj); } yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard other = (yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard) obj; if (!getId() .equals(other.getId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (!getCreatedBy() .equals(other.getCreatedBy())) return false; if (!getModifiedBy() .equals(other.getModifiedBy())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getTitle() .equals(other.getTitle())) return false; if (!getWidgetsList() .equals(other.getWidgetsList())) return false; if (hasParametrization() != other.hasParametrization()) return false; if (hasParametrization()) { if (!getParametrization() .equals(other.getParametrization())) return false; } if (!getEtag() .equals(other.getEtag())) return false; if (!getContainerCase().equals(other.getContainerCase())) return false; switch (containerCase_) { case 3: if (!getFolderId() .equals(other.getFolderId())) 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(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } hash = (37 * hash) + CREATED_BY_FIELD_NUMBER; hash = (53 * hash) + getCreatedBy().hashCode(); hash = (37 * hash) + MODIFIED_BY_FIELD_NUMBER; hash = (53 * hash) + getModifiedBy().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) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); } if (hasParametrization()) { hash = (37 * hash) + PARAMETRIZATION_FIELD_NUMBER; hash = (53 * hash) + getParametrization().hashCode(); } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); switch (containerCase_) { case 3: hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard 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.monitoring.v3.DashboardOuterClass.Dashboard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard 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.monitoring.v3.DashboardOuterClass.Dashboard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard 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.monitoring.v3.DashboardOuterClass.Dashboard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard 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.monitoring.v3.DashboardOuterClass.Dashboard parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard 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.monitoring.v3.DashboardOuterClass.Dashboard 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; } /** *
     * Dashboard resource.
     * 
* * Protobuf type {@code yandex.cloud.monitoring.v3.Dashboard} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.monitoring.v3.Dashboard) yandex.cloud.api.monitoring.v3.DashboardOuterClass.DashboardOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 26: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 26: 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.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.class, yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.Builder.class); } // Construct using yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWidgetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } createdBy_ = ""; modifiedBy_ = ""; name_ = ""; description_ = ""; internalGetMutableLabels().clear(); title_ = ""; if (widgetsBuilder_ == null) { widgets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { widgetsBuilder_.clear(); } if (parametrizationBuilder_ == null) { parametrization_ = null; } else { parametrization_ = null; parametrizationBuilder_ = null; } etag_ = ""; containerCase_ = 0; container_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.monitoring.v3.DashboardOuterClass.internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor; } @java.lang.Override public yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard getDefaultInstanceForType() { return yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard build() { yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard buildPartial() { yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard result = new yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (containerCase_ == 3) { result.container_ = container_; } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } result.createdBy_ = createdBy_; result.modifiedBy_ = modifiedBy_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.title_ = title_; if (widgetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); bitField0_ = (bitField0_ & ~0x00000002); } result.widgets_ = widgets_; } else { result.widgets_ = widgetsBuilder_.build(); } if (parametrizationBuilder_ == null) { result.parametrization_ = parametrization_; } else { result.parametrization_ = parametrizationBuilder_.build(); } result.etag_ = etag_; result.containerCase_ = containerCase_; 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.monitoring.v3.DashboardOuterClass.Dashboard) { return mergeFrom((yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard other) { if (other == yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (!other.getCreatedBy().isEmpty()) { createdBy_ = other.createdBy_; onChanged(); } if (!other.getModifiedBy().isEmpty()) { modifiedBy_ = other.modifiedBy_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (widgetsBuilder_ == null) { if (!other.widgets_.isEmpty()) { if (widgets_.isEmpty()) { widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWidgetsIsMutable(); widgets_.addAll(other.widgets_); } onChanged(); } } else { if (!other.widgets_.isEmpty()) { if (widgetsBuilder_.isEmpty()) { widgetsBuilder_.dispose(); widgetsBuilder_ = null; widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); widgetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWidgetsFieldBuilder() : null; } else { widgetsBuilder_.addAllMessages(other.widgets_); } } } if (other.hasParametrization()) { mergeParametrization(other.getParametrization()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; onChanged(); } switch (other.getContainerCase()) { case FOLDER_ID: { containerCase_ = 3; container_ = other.container_; onChanged(); break; } case CONTAINER_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.monitoring.v3.DashboardOuterClass.Dashboard parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int containerCase_ = 0; private java.lang.Object container_; public ContainerCase getContainerCase() { return ContainerCase.forNumber( containerCase_); } public Builder clearContainer() { containerCase_ = 0; container_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Dashboard 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; } } /** *
       * Dashboard 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; } } /** *
       * Dashboard 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; } /** *
       * Dashboard ID.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Dashboard 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; } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @return Whether the folderId field is set. */ @java.lang.Override public boolean hasFolderId() { return containerCase_ == 3; } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = ""; if (containerCase_ == 3) { ref = container_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (containerCase_ == 3) { container_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (containerCase_ == 3) { ref = container_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (containerCase_ == 3) { container_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } containerCase_ = 3; container_ = value; onChanged(); return this; } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @return This builder for chaining. */ public Builder clearFolderId() { if (containerCase_ == 3) { containerCase_ = 0; container_ = null; onChanged(); } return this; } /** *
       * Folder ID.
       * 
* * string folder_id = 3; * @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); containerCase_ = 3; container_ = 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_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; * @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(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ 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; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ 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; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 20; */ 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 com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
       * Modification timestamp.
       * 
* * .google.protobuf.Timestamp modified_at = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private java.lang.Object createdBy_ = ""; /** *
       * ID of the user who created the dashboard.
       * 
* * string created_by = 22; * @return The createdBy. */ public java.lang.String getCreatedBy() { java.lang.Object ref = createdBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); createdBy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the user who created the dashboard.
       * 
* * string created_by = 22; * @return The bytes for createdBy. */ public com.google.protobuf.ByteString getCreatedByBytes() { java.lang.Object ref = createdBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the user who created the dashboard.
       * 
* * string created_by = 22; * @param value The createdBy to set. * @return This builder for chaining. */ public Builder setCreatedBy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } createdBy_ = value; onChanged(); return this; } /** *
       * ID of the user who created the dashboard.
       * 
* * string created_by = 22; * @return This builder for chaining. */ public Builder clearCreatedBy() { createdBy_ = getDefaultInstance().getCreatedBy(); onChanged(); return this; } /** *
       * ID of the user who created the dashboard.
       * 
* * string created_by = 22; * @param value The bytes for createdBy to set. * @return This builder for chaining. */ public Builder setCreatedByBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); createdBy_ = value; onChanged(); return this; } private java.lang.Object modifiedBy_ = ""; /** *
       * ID of the user who modified the dashboard.
       * 
* * string modified_by = 23; * @return The modifiedBy. */ public java.lang.String getModifiedBy() { java.lang.Object ref = modifiedBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modifiedBy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the user who modified the dashboard.
       * 
* * string modified_by = 23; * @return The bytes for modifiedBy. */ public com.google.protobuf.ByteString getModifiedByBytes() { java.lang.Object ref = modifiedBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modifiedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the user who modified the dashboard.
       * 
* * string modified_by = 23; * @param value The modifiedBy to set. * @return This builder for chaining. */ public Builder setModifiedBy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modifiedBy_ = value; onChanged(); return this; } /** *
       * ID of the user who modified the dashboard.
       * 
* * string modified_by = 23; * @return This builder for chaining. */ public Builder clearModifiedBy() { modifiedBy_ = getDefaultInstance().getModifiedBy(); onChanged(); return this; } /** *
       * ID of the user who modified the dashboard.
       * 
* * string modified_by = 23; * @param value The bytes for modifiedBy to set. * @return This builder for chaining. */ public Builder setModifiedByBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modifiedBy_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Dashboard name.
       * 
* * string name = 24; * @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; } } /** *
       * Dashboard name.
       * 
* * string name = 24; * @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; } } /** *
       * Dashboard name.
       * 
* * string name = 24; * @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; } /** *
       * Dashboard name.
       * 
* * string name = 24; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Dashboard name.
       * 
* * string name = 24; * @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_ = ""; /** *
       * Dashboard description.
       * 
* * string description = 25; * @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; } } /** *
       * Dashboard description.
       * 
* * string description = 25; * @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; } } /** *
       * Dashboard description.
       * 
* * string description = 25; * @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; } /** *
       * Dashboard description.
       * 
* * string description = 25; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Dashboard description.
       * 
* * string description = 25; * @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(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ @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(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ @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; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ @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; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ 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(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ 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; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 26; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object title_ = ""; /** *
       * Dashboard title.
       * 
* * string title = 27; * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Dashboard title.
       * 
* * string title = 27; * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Dashboard title.
       * 
* * string title = 27; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** *
       * Dashboard title.
       * 
* * string title = 27; * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** *
       * Dashboard title.
       * 
* * string title = 27; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.util.List widgets_ = java.util.Collections.emptyList(); private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder, yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder> widgetsBuilder_; /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public java.util.List getWidgetsList() { if (widgetsBuilder_ == null) { return java.util.Collections.unmodifiableList(widgets_); } else { return widgetsBuilder_.getMessageList(); } } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public int getWidgetsCount() { if (widgetsBuilder_ == null) { return widgets_.size(); } else { return widgetsBuilder_.getCount(); } } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget getWidgets(int index) { if (widgetsBuilder_ == null) { return widgets_.get(index); } else { return widgetsBuilder_.getMessage(index); } } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder setWidgets( int index, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWidgetsIsMutable(); widgets_.set(index, value); onChanged(); } else { widgetsBuilder_.setMessage(index, value); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder setWidgets( int index, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.set(index, builderForValue.build()); onChanged(); } else { widgetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder addWidgets(yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWidgetsIsMutable(); widgets_.add(value); onChanged(); } else { widgetsBuilder_.addMessage(value); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder addWidgets( int index, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWidgetsIsMutable(); widgets_.add(index, value); onChanged(); } else { widgetsBuilder_.addMessage(index, value); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder addWidgets( yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); onChanged(); } else { widgetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder addWidgets( int index, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(index, builderForValue.build()); onChanged(); } else { widgetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder clearWidgets() { if (widgetsBuilder_ == null) { widgets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { widgetsBuilder_.clear(); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public Builder removeWidgets(int index) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.remove(index); onChanged(); } else { widgetsBuilder_.remove(index); } return this; } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder getWidgetsBuilder( int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder getWidgetsOrBuilder( int index) { if (widgetsBuilder_ == null) { return widgets_.get(index); } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public java.util.List getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(widgets_); } } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder addWidgetsBuilder() { return getWidgetsFieldBuilder().addBuilder( yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.getDefaultInstance()); } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder addWidgetsBuilder( int index) { return getWidgetsFieldBuilder().addBuilder( index, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.getDefaultInstance()); } /** *
       * List of dashboard widgets.
       * 
* * repeated .yandex.cloud.monitoring.v3.Widget widgets = 28; */ public java.util.List getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder, yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget, yandex.cloud.api.monitoring.v3.WidgetOuterClass.Widget.Builder, yandex.cloud.api.monitoring.v3.WidgetOuterClass.WidgetOrBuilder>( widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); widgets_ = null; } return widgetsBuilder_; } private yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization parametrization_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder> parametrizationBuilder_; /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return Whether the parametrization field is set. */ public boolean hasParametrization() { return parametrizationBuilder_ != null || parametrization_ != null; } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; * @return The parametrization. */ public yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization getParametrization() { if (parametrizationBuilder_ == null) { return parametrization_ == null ? yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.getDefaultInstance() : parametrization_; } else { return parametrizationBuilder_.getMessage(); } } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public Builder setParametrization(yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization value) { if (parametrizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parametrization_ = value; onChanged(); } else { parametrizationBuilder_.setMessage(value); } return this; } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public Builder setParametrization( yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder builderForValue) { if (parametrizationBuilder_ == null) { parametrization_ = builderForValue.build(); onChanged(); } else { parametrizationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public Builder mergeParametrization(yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization value) { if (parametrizationBuilder_ == null) { if (parametrization_ != null) { parametrization_ = yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.newBuilder(parametrization_).mergeFrom(value).buildPartial(); } else { parametrization_ = value; } onChanged(); } else { parametrizationBuilder_.mergeFrom(value); } return this; } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public Builder clearParametrization() { if (parametrizationBuilder_ == null) { parametrization_ = null; onChanged(); } else { parametrization_ = null; parametrizationBuilder_ = null; } return this; } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder getParametrizationBuilder() { onChanged(); return getParametrizationFieldBuilder().getBuilder(); } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ public yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder getParametrizationOrBuilder() { if (parametrizationBuilder_ != null) { return parametrizationBuilder_.getMessageOrBuilder(); } else { return parametrization_ == null ? yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.getDefaultInstance() : parametrization_; } } /** *
       * Dashboard parametrization.
       * 
* * .yandex.cloud.monitoring.v3.Parametrization parametrization = 29; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder> getParametrizationFieldBuilder() { if (parametrizationBuilder_ == null) { parametrizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.Parametrization.Builder, yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.ParametrizationOrBuilder>( getParametrization(), getParentForChildren(), isClean()); parametrization_ = null; } return parametrizationBuilder_; } private java.lang.Object etag_ = ""; /** *
       * Dashboard etag.
       * 
* * string etag = 30; * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Dashboard etag.
       * 
* * string etag = 30; * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Dashboard etag.
       * 
* * string etag = 30; * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } etag_ = value; onChanged(); return this; } /** *
       * Dashboard etag.
       * 
* * string etag = 30; * @return This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** *
       * Dashboard etag.
       * 
* * string etag = 30; * @param value The bytes for etag to set. * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = 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.monitoring.v3.Dashboard) } // @@protoc_insertion_point(class_scope:yandex.cloud.monitoring.v3.Dashboard) private static final yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard(); } public static yandex.cloud.api.monitoring.v3.DashboardOuterClass.Dashboard getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Dashboard parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Dashboard(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.monitoring.v3.DashboardOuterClass.Dashboard getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_monitoring_v3_Dashboard_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_monitoring_v3_Dashboard_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_monitoring_v3_Dashboard_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/monitoring/v3/dashboard.p" + "roto\022\032yandex.cloud.monitoring.v3\032\037google" + "/protobuf/timestamp.proto\0320yandex/cloud/" + "monitoring/v3/parametrization.proto\032\'yan" + "dex/cloud/monitoring/v3/widget.proto\"\360\003\n" + "\tDashboard\022\n\n\002id\030\001 \001(\t\022\023\n\tfolder_id\030\003 \001(" + "\tH\000\022.\n\ncreated_at\030\024 \001(\0132\032.google.protobu" + "f.Timestamp\022/\n\013modified_at\030\025 \001(\0132\032.googl" + "e.protobuf.Timestamp\022\022\n\ncreated_by\030\026 \001(\t" + "\022\023\n\013modified_by\030\027 \001(\t\022\014\n\004name\030\030 \001(\t\022\023\n\013d" + "escription\030\031 \001(\t\022A\n\006labels\030\032 \003(\01321.yande" + "x.cloud.monitoring.v3.Dashboard.LabelsEn" + "try\022\r\n\005title\030\033 \001(\t\0223\n\007widgets\030\034 \003(\0132\".ya" + "ndex.cloud.monitoring.v3.Widget\022D\n\017param" + "etrization\030\035 \001(\0132+.yandex.cloud.monitori" + "ng.v3.Parametrization\022\014\n\004etag\030\036 \001(\t\032-\n\013L" + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + "8\001B\013\n\tcontainerBk\n\036yandex.cloud.api.moni" + "toring.v3ZIgithub.com/yandex-cloud/go-ge" + "nproto/yandex/cloud/monitoring/v3;monito" + "ringb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.getDescriptor(), yandex.cloud.api.monitoring.v3.WidgetOuterClass.getDescriptor(), }); internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_monitoring_v3_Dashboard_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "ModifiedAt", "CreatedBy", "ModifiedBy", "Name", "Description", "Labels", "Title", "Widgets", "Parametrization", "Etag", "Container", }); internal_static_yandex_cloud_monitoring_v3_Dashboard_LabelsEntry_descriptor = internal_static_yandex_cloud_monitoring_v3_Dashboard_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_monitoring_v3_Dashboard_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_monitoring_v3_Dashboard_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.monitoring.v3.ParametrizationOuterClass.getDescriptor(); yandex.cloud.api.monitoring.v3.WidgetOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy