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

io.temporal.api.version.v1.VersionInfo Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/version/v1/message.proto

package io.temporal.api.version.v1;

/**
 * 
 * VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions.
 * 
* * Protobuf type {@code temporal.api.version.v1.VersionInfo} */ @javax.annotation.Generated(value="protoc", comments="annotations:VersionInfo.java.pb.meta") public final class VersionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.version.v1.VersionInfo) VersionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use VersionInfo.newBuilder() to construct. private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VersionInfo() { instructions_ = ""; alerts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VersionInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VersionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.temporal.api.version.v1.ReleaseInfo.Builder subBuilder = null; if (current_ != null) { subBuilder = current_.toBuilder(); } current_ = input.readMessage(io.temporal.api.version.v1.ReleaseInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(current_); current_ = subBuilder.buildPartial(); } break; } case 18: { io.temporal.api.version.v1.ReleaseInfo.Builder subBuilder = null; if (recommended_ != null) { subBuilder = recommended_.toBuilder(); } recommended_ = input.readMessage(io.temporal.api.version.v1.ReleaseInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recommended_); recommended_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); instructions_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { alerts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } alerts_.add( input.readMessage(io.temporal.api.version.v1.Alert.parser(), extensionRegistry)); break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastUpdateTime_ != null) { subBuilder = lastUpdateTime_.toBuilder(); } lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastUpdateTime_); lastUpdateTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alerts_ = java.util.Collections.unmodifiableList(alerts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.version.v1.MessageProto.internal_static_temporal_api_version_v1_VersionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.version.v1.MessageProto.internal_static_temporal_api_version_v1_VersionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.version.v1.VersionInfo.class, io.temporal.api.version.v1.VersionInfo.Builder.class); } public static final int CURRENT_FIELD_NUMBER = 1; private io.temporal.api.version.v1.ReleaseInfo current_; /** * .temporal.api.version.v1.ReleaseInfo current = 1; * @return Whether the current field is set. */ public boolean hasCurrent() { return current_ != null; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; * @return The current. */ public io.temporal.api.version.v1.ReleaseInfo getCurrent() { return current_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : current_; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public io.temporal.api.version.v1.ReleaseInfoOrBuilder getCurrentOrBuilder() { return getCurrent(); } public static final int RECOMMENDED_FIELD_NUMBER = 2; private io.temporal.api.version.v1.ReleaseInfo recommended_; /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; * @return Whether the recommended field is set. */ public boolean hasRecommended() { return recommended_ != null; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; * @return The recommended. */ public io.temporal.api.version.v1.ReleaseInfo getRecommended() { return recommended_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : recommended_; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public io.temporal.api.version.v1.ReleaseInfoOrBuilder getRecommendedOrBuilder() { return getRecommended(); } public static final int INSTRUCTIONS_FIELD_NUMBER = 3; private volatile java.lang.Object instructions_; /** * string instructions = 3; * @return The instructions. */ public java.lang.String getInstructions() { java.lang.Object ref = instructions_; 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(); instructions_ = s; return s; } } /** * string instructions = 3; * @return The bytes for instructions. */ public com.google.protobuf.ByteString getInstructionsBytes() { java.lang.Object ref = instructions_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALERTS_FIELD_NUMBER = 4; private java.util.List alerts_; /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public java.util.List getAlertsList() { return alerts_; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public java.util.List getAlertsOrBuilderList() { return alerts_; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public int getAlertsCount() { return alerts_.size(); } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.Alert getAlerts(int index) { return alerts_.get(index); } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.AlertOrBuilder getAlertsOrBuilder( int index) { return alerts_.get(index); } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastUpdateTime_; /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return getLastUpdateTime(); } 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 (current_ != null) { output.writeMessage(1, getCurrent()); } if (recommended_ != null) { output.writeMessage(2, getRecommended()); } if (!getInstructionsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instructions_); } for (int i = 0; i < alerts_.size(); i++) { output.writeMessage(4, alerts_.get(i)); } if (lastUpdateTime_ != null) { output.writeMessage(5, getLastUpdateTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (current_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCurrent()); } if (recommended_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecommended()); } if (!getInstructionsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instructions_); } for (int i = 0; i < alerts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, alerts_.get(i)); } if (lastUpdateTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.version.v1.VersionInfo)) { return super.equals(obj); } io.temporal.api.version.v1.VersionInfo other = (io.temporal.api.version.v1.VersionInfo) obj; if (hasCurrent() != other.hasCurrent()) return false; if (hasCurrent()) { if (!getCurrent() .equals(other.getCurrent())) return false; } if (hasRecommended() != other.hasRecommended()) return false; if (hasRecommended()) { if (!getRecommended() .equals(other.getRecommended())) return false; } if (!getInstructions() .equals(other.getInstructions())) return false; if (!getAlertsList() .equals(other.getAlertsList())) return false; if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { if (!getLastUpdateTime() .equals(other.getLastUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCurrent()) { hash = (37 * hash) + CURRENT_FIELD_NUMBER; hash = (53 * hash) + getCurrent().hashCode(); } if (hasRecommended()) { hash = (37 * hash) + RECOMMENDED_FIELD_NUMBER; hash = (53 * hash) + getRecommended().hashCode(); } hash = (37 * hash) + INSTRUCTIONS_FIELD_NUMBER; hash = (53 * hash) + getInstructions().hashCode(); if (getAlertsCount() > 0) { hash = (37 * hash) + ALERTS_FIELD_NUMBER; hash = (53 * hash) + getAlertsList().hashCode(); } if (hasLastUpdateTime()) { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.version.v1.VersionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.version.v1.VersionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.version.v1.VersionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.version.v1.VersionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.version.v1.VersionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.version.v1.VersionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.version.v1.VersionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.version.v1.VersionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.version.v1.VersionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.version.v1.VersionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.version.v1.VersionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.version.v1.VersionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.version.v1.VersionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions.
   * 
* * Protobuf type {@code temporal.api.version.v1.VersionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.version.v1.VersionInfo) io.temporal.api.version.v1.VersionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.version.v1.MessageProto.internal_static_temporal_api_version_v1_VersionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.version.v1.MessageProto.internal_static_temporal_api_version_v1_VersionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.version.v1.VersionInfo.class, io.temporal.api.version.v1.VersionInfo.Builder.class); } // Construct using io.temporal.api.version.v1.VersionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAlertsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (currentBuilder_ == null) { current_ = null; } else { current_ = null; currentBuilder_ = null; } if (recommendedBuilder_ == null) { recommended_ = null; } else { recommended_ = null; recommendedBuilder_ = null; } instructions_ = ""; if (alertsBuilder_ == null) { alerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { alertsBuilder_.clear(); } if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = null; } else { lastUpdateTime_ = null; lastUpdateTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.version.v1.MessageProto.internal_static_temporal_api_version_v1_VersionInfo_descriptor; } @java.lang.Override public io.temporal.api.version.v1.VersionInfo getDefaultInstanceForType() { return io.temporal.api.version.v1.VersionInfo.getDefaultInstance(); } @java.lang.Override public io.temporal.api.version.v1.VersionInfo build() { io.temporal.api.version.v1.VersionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.version.v1.VersionInfo buildPartial() { io.temporal.api.version.v1.VersionInfo result = new io.temporal.api.version.v1.VersionInfo(this); int from_bitField0_ = bitField0_; if (currentBuilder_ == null) { result.current_ = current_; } else { result.current_ = currentBuilder_.build(); } if (recommendedBuilder_ == null) { result.recommended_ = recommended_; } else { result.recommended_ = recommendedBuilder_.build(); } result.instructions_ = instructions_; if (alertsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alerts_ = java.util.Collections.unmodifiableList(alerts_); bitField0_ = (bitField0_ & ~0x00000001); } result.alerts_ = alerts_; } else { result.alerts_ = alertsBuilder_.build(); } if (lastUpdateTimeBuilder_ == null) { result.lastUpdateTime_ = lastUpdateTime_; } else { result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.version.v1.VersionInfo) { return mergeFrom((io.temporal.api.version.v1.VersionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.version.v1.VersionInfo other) { if (other == io.temporal.api.version.v1.VersionInfo.getDefaultInstance()) return this; if (other.hasCurrent()) { mergeCurrent(other.getCurrent()); } if (other.hasRecommended()) { mergeRecommended(other.getRecommended()); } if (!other.getInstructions().isEmpty()) { instructions_ = other.instructions_; onChanged(); } if (alertsBuilder_ == null) { if (!other.alerts_.isEmpty()) { if (alerts_.isEmpty()) { alerts_ = other.alerts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAlertsIsMutable(); alerts_.addAll(other.alerts_); } onChanged(); } } else { if (!other.alerts_.isEmpty()) { if (alertsBuilder_.isEmpty()) { alertsBuilder_.dispose(); alertsBuilder_ = null; alerts_ = other.alerts_; bitField0_ = (bitField0_ & ~0x00000001); alertsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAlertsFieldBuilder() : null; } else { alertsBuilder_.addAllMessages(other.alerts_); } } } if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.version.v1.VersionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.version.v1.VersionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.temporal.api.version.v1.ReleaseInfo current_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder> currentBuilder_; /** * .temporal.api.version.v1.ReleaseInfo current = 1; * @return Whether the current field is set. */ public boolean hasCurrent() { return currentBuilder_ != null || current_ != null; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; * @return The current. */ public io.temporal.api.version.v1.ReleaseInfo getCurrent() { if (currentBuilder_ == null) { return current_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : current_; } else { return currentBuilder_.getMessage(); } } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public Builder setCurrent(io.temporal.api.version.v1.ReleaseInfo value) { if (currentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } current_ = value; onChanged(); } else { currentBuilder_.setMessage(value); } return this; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public Builder setCurrent( io.temporal.api.version.v1.ReleaseInfo.Builder builderForValue) { if (currentBuilder_ == null) { current_ = builderForValue.build(); onChanged(); } else { currentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public Builder mergeCurrent(io.temporal.api.version.v1.ReleaseInfo value) { if (currentBuilder_ == null) { if (current_ != null) { current_ = io.temporal.api.version.v1.ReleaseInfo.newBuilder(current_).mergeFrom(value).buildPartial(); } else { current_ = value; } onChanged(); } else { currentBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public Builder clearCurrent() { if (currentBuilder_ == null) { current_ = null; onChanged(); } else { current_ = null; currentBuilder_ = null; } return this; } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public io.temporal.api.version.v1.ReleaseInfo.Builder getCurrentBuilder() { onChanged(); return getCurrentFieldBuilder().getBuilder(); } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ public io.temporal.api.version.v1.ReleaseInfoOrBuilder getCurrentOrBuilder() { if (currentBuilder_ != null) { return currentBuilder_.getMessageOrBuilder(); } else { return current_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : current_; } } /** * .temporal.api.version.v1.ReleaseInfo current = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder> getCurrentFieldBuilder() { if (currentBuilder_ == null) { currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder>( getCurrent(), getParentForChildren(), isClean()); current_ = null; } return currentBuilder_; } private io.temporal.api.version.v1.ReleaseInfo recommended_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder> recommendedBuilder_; /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; * @return Whether the recommended field is set. */ public boolean hasRecommended() { return recommendedBuilder_ != null || recommended_ != null; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; * @return The recommended. */ public io.temporal.api.version.v1.ReleaseInfo getRecommended() { if (recommendedBuilder_ == null) { return recommended_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : recommended_; } else { return recommendedBuilder_.getMessage(); } } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public Builder setRecommended(io.temporal.api.version.v1.ReleaseInfo value) { if (recommendedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommended_ = value; onChanged(); } else { recommendedBuilder_.setMessage(value); } return this; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public Builder setRecommended( io.temporal.api.version.v1.ReleaseInfo.Builder builderForValue) { if (recommendedBuilder_ == null) { recommended_ = builderForValue.build(); onChanged(); } else { recommendedBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public Builder mergeRecommended(io.temporal.api.version.v1.ReleaseInfo value) { if (recommendedBuilder_ == null) { if (recommended_ != null) { recommended_ = io.temporal.api.version.v1.ReleaseInfo.newBuilder(recommended_).mergeFrom(value).buildPartial(); } else { recommended_ = value; } onChanged(); } else { recommendedBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public Builder clearRecommended() { if (recommendedBuilder_ == null) { recommended_ = null; onChanged(); } else { recommended_ = null; recommendedBuilder_ = null; } return this; } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public io.temporal.api.version.v1.ReleaseInfo.Builder getRecommendedBuilder() { onChanged(); return getRecommendedFieldBuilder().getBuilder(); } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ public io.temporal.api.version.v1.ReleaseInfoOrBuilder getRecommendedOrBuilder() { if (recommendedBuilder_ != null) { return recommendedBuilder_.getMessageOrBuilder(); } else { return recommended_ == null ? io.temporal.api.version.v1.ReleaseInfo.getDefaultInstance() : recommended_; } } /** * .temporal.api.version.v1.ReleaseInfo recommended = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder> getRecommendedFieldBuilder() { if (recommendedBuilder_ == null) { recommendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.version.v1.ReleaseInfo, io.temporal.api.version.v1.ReleaseInfo.Builder, io.temporal.api.version.v1.ReleaseInfoOrBuilder>( getRecommended(), getParentForChildren(), isClean()); recommended_ = null; } return recommendedBuilder_; } private java.lang.Object instructions_ = ""; /** * string instructions = 3; * @return The instructions. */ public java.lang.String getInstructions() { java.lang.Object ref = instructions_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructions_ = s; return s; } else { return (java.lang.String) ref; } } /** * string instructions = 3; * @return The bytes for instructions. */ public com.google.protobuf.ByteString getInstructionsBytes() { java.lang.Object ref = instructions_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string instructions = 3; * @param value The instructions to set. * @return This builder for chaining. */ public Builder setInstructions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instructions_ = value; onChanged(); return this; } /** * string instructions = 3; * @return This builder for chaining. */ public Builder clearInstructions() { instructions_ = getDefaultInstance().getInstructions(); onChanged(); return this; } /** * string instructions = 3; * @param value The bytes for instructions to set. * @return This builder for chaining. */ public Builder setInstructionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instructions_ = value; onChanged(); return this; } private java.util.List alerts_ = java.util.Collections.emptyList(); private void ensureAlertsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { alerts_ = new java.util.ArrayList(alerts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.version.v1.Alert, io.temporal.api.version.v1.Alert.Builder, io.temporal.api.version.v1.AlertOrBuilder> alertsBuilder_; /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public java.util.List getAlertsList() { if (alertsBuilder_ == null) { return java.util.Collections.unmodifiableList(alerts_); } else { return alertsBuilder_.getMessageList(); } } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public int getAlertsCount() { if (alertsBuilder_ == null) { return alerts_.size(); } else { return alertsBuilder_.getCount(); } } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.Alert getAlerts(int index) { if (alertsBuilder_ == null) { return alerts_.get(index); } else { return alertsBuilder_.getMessage(index); } } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder setAlerts( int index, io.temporal.api.version.v1.Alert value) { if (alertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlertsIsMutable(); alerts_.set(index, value); onChanged(); } else { alertsBuilder_.setMessage(index, value); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder setAlerts( int index, io.temporal.api.version.v1.Alert.Builder builderForValue) { if (alertsBuilder_ == null) { ensureAlertsIsMutable(); alerts_.set(index, builderForValue.build()); onChanged(); } else { alertsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder addAlerts(io.temporal.api.version.v1.Alert value) { if (alertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlertsIsMutable(); alerts_.add(value); onChanged(); } else { alertsBuilder_.addMessage(value); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder addAlerts( int index, io.temporal.api.version.v1.Alert value) { if (alertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlertsIsMutable(); alerts_.add(index, value); onChanged(); } else { alertsBuilder_.addMessage(index, value); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder addAlerts( io.temporal.api.version.v1.Alert.Builder builderForValue) { if (alertsBuilder_ == null) { ensureAlertsIsMutable(); alerts_.add(builderForValue.build()); onChanged(); } else { alertsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder addAlerts( int index, io.temporal.api.version.v1.Alert.Builder builderForValue) { if (alertsBuilder_ == null) { ensureAlertsIsMutable(); alerts_.add(index, builderForValue.build()); onChanged(); } else { alertsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder addAllAlerts( java.lang.Iterable values) { if (alertsBuilder_ == null) { ensureAlertsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alerts_); onChanged(); } else { alertsBuilder_.addAllMessages(values); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder clearAlerts() { if (alertsBuilder_ == null) { alerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { alertsBuilder_.clear(); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public Builder removeAlerts(int index) { if (alertsBuilder_ == null) { ensureAlertsIsMutable(); alerts_.remove(index); onChanged(); } else { alertsBuilder_.remove(index); } return this; } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.Alert.Builder getAlertsBuilder( int index) { return getAlertsFieldBuilder().getBuilder(index); } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.AlertOrBuilder getAlertsOrBuilder( int index) { if (alertsBuilder_ == null) { return alerts_.get(index); } else { return alertsBuilder_.getMessageOrBuilder(index); } } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public java.util.List getAlertsOrBuilderList() { if (alertsBuilder_ != null) { return alertsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alerts_); } } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.Alert.Builder addAlertsBuilder() { return getAlertsFieldBuilder().addBuilder( io.temporal.api.version.v1.Alert.getDefaultInstance()); } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public io.temporal.api.version.v1.Alert.Builder addAlertsBuilder( int index) { return getAlertsFieldBuilder().addBuilder( index, io.temporal.api.version.v1.Alert.getDefaultInstance()); } /** * repeated .temporal.api.version.v1.Alert alerts = 4; */ public java.util.List getAlertsBuilderList() { return getAlertsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.version.v1.Alert, io.temporal.api.version.v1.Alert.Builder, io.temporal.api.version.v1.AlertOrBuilder> getAlertsFieldBuilder() { if (alertsBuilder_ == null) { alertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.version.v1.Alert, io.temporal.api.version.v1.Alert.Builder, io.temporal.api.version.v1.AlertOrBuilder>( alerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); alerts_ = null; } return alertsBuilder_; } private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdateTime_ = value; onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder setLastUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder clearLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = null; onChanged(); } else { lastUpdateTime_ = null; lastUpdateTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** * .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.version.v1.VersionInfo) } // @@protoc_insertion_point(class_scope:temporal.api.version.v1.VersionInfo) private static final io.temporal.api.version.v1.VersionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.version.v1.VersionInfo(); } public static io.temporal.api.version.v1.VersionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VersionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VersionInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.version.v1.VersionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy