diff --git a/components/dashboard/src/AppNotifications.tsx b/components/dashboard/src/AppNotifications.tsx index f0a09d6a8d1be2..33e9a34f284667 100644 --- a/components/dashboard/src/AppNotifications.tsx +++ b/components/dashboard/src/AppNotifications.tsx @@ -18,6 +18,8 @@ import { AttributionId } from "@gitpod/gitpod-protocol/lib/attribution"; import { getGitpodService } from "./service/service"; import { useOrgBillingMode } from "./data/billing-mode/org-billing-mode-query"; import { Organization } from "@gitpod/public-api/lib/gitpod/v1/organization_pb"; +import { MaintenanceModeBanner } from "./org-admin/MaintenanceModeBanner"; +import { MaintenanceNotificationBanner } from "./org-admin/MaintenanceNotificationBanner"; const KEY_APP_DISMISSED_NOTIFICATIONS = "gitpod-app-notifications-dismissed"; const PRIVACY_POLICY_LAST_UPDATED = "2024-12-03"; @@ -208,29 +210,29 @@ export function AppNotifications() { setTopNotification(undefined); }, [topNotification, setTopNotification]); - if (!topNotification) { - return <>>; - } - return (
+ When enabled, users cannot start new workspaces and a notification is displayed. +
++ Display a notification banner to inform users about upcoming maintenance. +
+Error loading running workspaces:
+{error instanceof Error ? error.message : String(error)}+
No workspaces are currently running.
+ ) : ( ++ Are you sure you want to stop all {runningWorkspaces.length} currently running workspaces in this + organization? Workspaces will be backed up before stopping. This action cannot be undone. +
++ * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ java.lang.String getOrganizationId();
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ com.google.protobuf.ByteString
+ getOrganizationIdBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetOrganizationMaintenanceModeRequest}
+ */
+ public static final class GetOrganizationMaintenanceModeRequest extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationMaintenanceModeRequest)
+ GetOrganizationMaintenanceModeRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ GetOrganizationMaintenanceModeRequest.class.getName());
+ }
+ // Use GetOrganizationMaintenanceModeRequest.newBuilder() to construct.
+ private GetOrganizationMaintenanceModeRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private GetOrganizationMaintenanceModeRequest() {
+ organizationId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationMaintenanceModeRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationMaintenanceModeRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest.Builder.class);
+ }
+
+ public static final int ORGANIZATION_ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationId_ = "";
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ 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();
+ organizationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = 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.GeneratedMessage.isStringEmpty(organizationId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest) obj;
+
+ if (!getOrganizationId()
+ .equals(other.getOrganizationId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ORGANIZATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetOrganizationMaintenanceModeRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organizationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganizationId() {
+ organizationId_ = getDefaultInstance().getOrganizationId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The bytes for organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationMaintenanceModeRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationMaintenanceModeRequest)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * enabled indicates whether maintenance mode is enabled for the organization. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ boolean getEnabled();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetOrganizationMaintenanceModeResponse}
+ */
+ public static final class GetOrganizationMaintenanceModeResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationMaintenanceModeResponse)
+ GetOrganizationMaintenanceModeResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ GetOrganizationMaintenanceModeResponse.class.getName());
+ }
+ // Use GetOrganizationMaintenanceModeResponse.newBuilder() to construct.
+ private GetOrganizationMaintenanceModeResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private GetOrganizationMaintenanceModeResponse() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationMaintenanceModeResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationMaintenanceModeResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse.Builder.class);
+ }
+
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_ = false;
+ /**
+ * + * enabled indicates whether maintenance mode is enabled for the organization. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ 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 (enabled_ != false) {
+ output.writeBool(1, enabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, enabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse) obj;
+
+ if (getEnabled()
+ != other.getEnabled()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnabled());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetOrganizationMaintenanceModeResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * enabled indicates whether maintenance mode is enabled for the organization. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ * + * enabled indicates whether maintenance mode is enabled for the organization. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * enabled indicates whether maintenance mode is enabled for the organization. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationMaintenanceModeResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationMaintenanceModeResponse)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationMaintenanceModeResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ java.lang.String getOrganizationId();
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ com.google.protobuf.ByteString
+ getOrganizationIdBytes();
+
+ /**
+ * + * enabled indicates whether maintenance mode should be enabled or disabled. + *+ * + *
bool enabled = 2 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ boolean getEnabled();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetOrganizationMaintenanceModeRequest}
+ */
+ public static final class SetOrganizationMaintenanceModeRequest extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.SetOrganizationMaintenanceModeRequest)
+ SetOrganizationMaintenanceModeRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ SetOrganizationMaintenanceModeRequest.class.getName());
+ }
+ // Use SetOrganizationMaintenanceModeRequest.newBuilder() to construct.
+ private SetOrganizationMaintenanceModeRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private SetOrganizationMaintenanceModeRequest() {
+ organizationId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetOrganizationMaintenanceModeRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetOrganizationMaintenanceModeRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest.Builder.class);
+ }
+
+ public static final int ORGANIZATION_ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationId_ = "";
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ 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();
+ organizationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENABLED_FIELD_NUMBER = 2;
+ private boolean enabled_ = false;
+ /**
+ * + * enabled indicates whether maintenance mode should be enabled or disabled. + *+ * + *
bool enabled = 2 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ 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.GeneratedMessage.isStringEmpty(organizationId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_);
+ }
+ if (enabled_ != false) {
+ output.writeBool(2, enabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_);
+ }
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, enabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest) obj;
+
+ if (!getOrganizationId()
+ .equals(other.getOrganizationId())) return false;
+ if (getEnabled()
+ != other.getEnabled()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ORGANIZATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationId().hashCode();
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnabled());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetOrganizationMaintenanceModeRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organizationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganizationId() {
+ organizationId_ = getDefaultInstance().getOrganizationId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the maintenance mode status for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The bytes for organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private boolean enabled_ ;
+ /**
+ * + * enabled indicates whether maintenance mode should be enabled or disabled. + *+ * + *
bool enabled = 2 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ * + * enabled indicates whether maintenance mode should be enabled or disabled. + *+ * + *
bool enabled = 2 [json_name = "enabled"];
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * enabled indicates whether maintenance mode should be enabled or disabled. + *+ * + *
bool enabled = 2 [json_name = "enabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.SetOrganizationMaintenanceModeRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.SetOrganizationMaintenanceModeRequest)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * enabled indicates the new maintenance mode status after the update. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ boolean getEnabled();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetOrganizationMaintenanceModeResponse}
+ */
+ public static final class SetOrganizationMaintenanceModeResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.SetOrganizationMaintenanceModeResponse)
+ SetOrganizationMaintenanceModeResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ SetOrganizationMaintenanceModeResponse.class.getName());
+ }
+ // Use SetOrganizationMaintenanceModeResponse.newBuilder() to construct.
+ private SetOrganizationMaintenanceModeResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private SetOrganizationMaintenanceModeResponse() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetOrganizationMaintenanceModeResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetOrganizationMaintenanceModeResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse.Builder.class);
+ }
+
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_ = false;
+ /**
+ * + * enabled indicates the new maintenance mode status after the update. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ 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 (enabled_ != false) {
+ output.writeBool(1, enabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, enabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse) obj;
+
+ if (getEnabled()
+ != other.getEnabled()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnabled());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetOrganizationMaintenanceModeResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * enabled indicates the new maintenance mode status after the update. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ * + * enabled indicates the new maintenance mode status after the update. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * enabled indicates the new maintenance mode status after the update. + *+ * + *
bool enabled = 1 [json_name = "enabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.SetOrganizationMaintenanceModeResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.SetOrganizationMaintenanceModeResponse)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetOrganizationMaintenanceModeResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ java.lang.String getOrganizationId();
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ com.google.protobuf.ByteString
+ getOrganizationIdBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetMaintenanceNotificationRequest}
+ */
+ public static final class GetMaintenanceNotificationRequest extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.GetMaintenanceNotificationRequest)
+ GetMaintenanceNotificationRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ GetMaintenanceNotificationRequest.class.getName());
+ }
+ // Use GetMaintenanceNotificationRequest.newBuilder() to construct.
+ private GetMaintenanceNotificationRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private GetMaintenanceNotificationRequest() {
+ organizationId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetMaintenanceNotificationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetMaintenanceNotificationRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest.Builder.class);
+ }
+
+ public static final int ORGANIZATION_ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationId_ = "";
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ 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();
+ organizationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = 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.GeneratedMessage.isStringEmpty(organizationId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest) obj;
+
+ if (!getOrganizationId()
+ .equals(other.getOrganizationId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ORGANIZATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetMaintenanceNotificationRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organizationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganizationId() {
+ organizationId_ = getDefaultInstance().getOrganizationId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to retrieve the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The bytes for organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.GetMaintenanceNotificationRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.GetMaintenanceNotificationRequest)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * is_enabled indicates whether the maintenance notification is enabled. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ boolean getIsEnabled();
+
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetMaintenanceNotificationResponse}
+ */
+ public static final class GetMaintenanceNotificationResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.GetMaintenanceNotificationResponse)
+ GetMaintenanceNotificationResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ GetMaintenanceNotificationResponse.class.getName());
+ }
+ // Use GetMaintenanceNotificationResponse.newBuilder() to construct.
+ private GetMaintenanceNotificationResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private GetMaintenanceNotificationResponse() {
+ message_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetMaintenanceNotificationResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetMaintenanceNotificationResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse.Builder.class);
+ }
+
+ public static final int IS_ENABLED_FIELD_NUMBER = 1;
+ private boolean isEnabled_ = false;
+ /**
+ * + * is_enabled indicates whether the maintenance notification is enabled. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = 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 (isEnabled_ != false) {
+ output.writeBool(1, isEnabled_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (isEnabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, isEnabled_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse) obj;
+
+ if (getIsEnabled()
+ != other.getIsEnabled()) return false;
+ if (!getMessage()
+ .equals(other.getMessage())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IS_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsEnabled());
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.GetMaintenanceNotificationResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * is_enabled indicates whether the maintenance notification is enabled. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+ /**
+ * + * is_enabled indicates whether the maintenance notification is enabled. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @param value The isEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsEnabled(boolean value) {
+
+ isEnabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * is_enabled indicates whether the maintenance notification is enabled. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearIsEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ isEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * message is the custom message stored, if any. Empty or not present if no custom message is set. + * The frontend will use its own default if this is empty/undefined and is_enabled is true. + *+ * + *
string message = 2 [json_name = "message"];
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.GetMaintenanceNotificationResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.GetMaintenanceNotificationResponse)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetMaintenanceNotificationResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ java.lang.String getOrganizationId();
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ com.google.protobuf.ByteString
+ getOrganizationIdBytes();
+
+ /**
+ * + * is_enabled indicates whether the maintenance notification should be enabled or disabled. + *+ * + *
bool is_enabled = 2 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ boolean getIsEnabled();
+
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return Whether the customMessage field is set.
+ */
+ boolean hasCustomMessage();
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The customMessage.
+ */
+ java.lang.String getCustomMessage();
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The bytes for customMessage.
+ */
+ com.google.protobuf.ByteString
+ getCustomMessageBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetMaintenanceNotificationRequest}
+ */
+ public static final class SetMaintenanceNotificationRequest extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.SetMaintenanceNotificationRequest)
+ SetMaintenanceNotificationRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ SetMaintenanceNotificationRequest.class.getName());
+ }
+ // Use SetMaintenanceNotificationRequest.newBuilder() to construct.
+ private SetMaintenanceNotificationRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private SetMaintenanceNotificationRequest() {
+ organizationId_ = "";
+ customMessage_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetMaintenanceNotificationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetMaintenanceNotificationRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ORGANIZATION_ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationId_ = "";
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ 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();
+ organizationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_ENABLED_FIELD_NUMBER = 2;
+ private boolean isEnabled_ = false;
+ /**
+ * + * is_enabled indicates whether the maintenance notification should be enabled or disabled. + *+ * + *
bool is_enabled = 2 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+
+ public static final int CUSTOM_MESSAGE_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object customMessage_ = "";
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return Whether the customMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasCustomMessage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The customMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getCustomMessage() {
+ java.lang.Object ref = customMessage_;
+ 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();
+ customMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The bytes for customMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCustomMessageBytes() {
+ java.lang.Object ref = customMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ customMessage_ = 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.GeneratedMessage.isStringEmpty(organizationId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_);
+ }
+ if (isEnabled_ != false) {
+ output.writeBool(2, isEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, customMessage_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_);
+ }
+ if (isEnabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, isEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, customMessage_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest) obj;
+
+ if (!getOrganizationId()
+ .equals(other.getOrganizationId())) return false;
+ if (getIsEnabled()
+ != other.getIsEnabled()) return false;
+ if (hasCustomMessage() != other.hasCustomMessage()) return false;
+ if (hasCustomMessage()) {
+ if (!getCustomMessage()
+ .equals(other.getCustomMessage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ORGANIZATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationId().hashCode();
+ hash = (37 * hash) + IS_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsEnabled());
+ if (hasCustomMessage()) {
+ hash = (37 * hash) + CUSTOM_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomMessage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetMaintenanceNotificationRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The organizationId.
+ */
+ public java.lang.String getOrganizationId() {
+ java.lang.Object ref = organizationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organizationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return The bytes for organizationId.
+ */
+ public com.google.protobuf.ByteString
+ getOrganizationIdBytes() {
+ java.lang.Object ref = organizationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organizationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganizationId() {
+ organizationId_ = getDefaultInstance().getOrganizationId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * organization_id is the ID of the organization to set the notification settings for. + *+ * + *
string organization_id = 1 [json_name = "organizationId"];
+ * @param value The bytes for organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ organizationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private boolean isEnabled_ ;
+ /**
+ * + * is_enabled indicates whether the maintenance notification should be enabled or disabled. + *+ * + *
bool is_enabled = 2 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+ /**
+ * + * is_enabled indicates whether the maintenance notification should be enabled or disabled. + *+ * + *
bool is_enabled = 2 [json_name = "isEnabled"];
+ * @param value The isEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsEnabled(boolean value) {
+
+ isEnabled_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * is_enabled indicates whether the maintenance notification should be enabled or disabled. + *+ * + *
bool is_enabled = 2 [json_name = "isEnabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearIsEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ isEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object customMessage_ = "";
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return Whether the customMessage field is set.
+ */
+ public boolean hasCustomMessage() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The customMessage.
+ */
+ public java.lang.String getCustomMessage() {
+ java.lang.Object ref = customMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return The bytes for customMessage.
+ */
+ public com.google.protobuf.ByteString
+ getCustomMessageBytes() {
+ java.lang.Object ref = customMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ customMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @param value The customMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ customMessage_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomMessage() {
+ customMessage_ = getDefaultInstance().getCustomMessage();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * custom_message is the user-provided custom message for the notification. + * If not provided or empty, the backend stores undefined/empty for the message. + *+ * + *
optional string custom_message = 3 [json_name = "customMessage"];
+ * @param value The bytes for customMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ customMessage_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.SetMaintenanceNotificationRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.SetMaintenanceNotificationRequest)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * is_enabled indicates the new notification enabled status after the update. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ boolean getIsEnabled();
+
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return Whether the message field is set.
+ */
+ boolean hasMessage();
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetMaintenanceNotificationResponse}
+ */
+ public static final class SetMaintenanceNotificationResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.SetMaintenanceNotificationResponse)
+ SetMaintenanceNotificationResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ SetMaintenanceNotificationResponse.class.getName());
+ }
+ // Use SetMaintenanceNotificationResponse.newBuilder() to construct.
+ private SetMaintenanceNotificationResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private SetMaintenanceNotificationResponse() {
+ message_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetMaintenanceNotificationResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_SetMaintenanceNotificationResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int IS_ENABLED_FIELD_NUMBER = 1;
+ private boolean isEnabled_ = false;
+ /**
+ * + * is_enabled indicates the new notification enabled status after the update. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return Whether the message field is set.
+ */
+ @java.lang.Override
+ public boolean hasMessage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = 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 (isEnabled_ != false) {
+ output.writeBool(1, isEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (isEnabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, isEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse) obj;
+
+ if (getIsEnabled()
+ != other.getIsEnabled()) return false;
+ if (hasMessage() != other.hasMessage()) return false;
+ if (hasMessage()) {
+ if (!getMessage()
+ .equals(other.getMessage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IS_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsEnabled());
+ if (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.SetMaintenanceNotificationResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * is_enabled indicates the new notification enabled status after the update. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return The isEnabled.
+ */
+ @java.lang.Override
+ public boolean getIsEnabled() {
+ return isEnabled_;
+ }
+ /**
+ * + * is_enabled indicates the new notification enabled status after the update. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @param value The isEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsEnabled(boolean value) {
+
+ isEnabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * is_enabled indicates the new notification enabled status after the update. + *+ * + *
bool is_enabled = 1 [json_name = "isEnabled"];
+ * @return This builder for chaining.
+ */
+ public Builder clearIsEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ isEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return Whether the message field is set.
+ */
+ public boolean hasMessage() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * message is the custom message that is now stored, if any. + *+ * + *
optional string message = 2 [json_name = "message"];
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.SetMaintenanceNotificationResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.SetMaintenanceNotificationResponse)
+ private static final io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse();
+ }
+
+ public static io.gitpod.publicapi.v1.OrganizationOuterClass.SetMaintenanceNotificationResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser