io.temporal.api.namespace.v1.NamespaceInfo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/namespace/v1/message.proto
package io.temporal.api.namespace.v1;
/**
* Protobuf type {@code temporal.api.namespace.v1.NamespaceInfo}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:NamespaceInfo.java.pb.meta")
public final class NamespaceInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.namespace.v1.NamespaceInfo)
NamespaceInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NamespaceInfo.newBuilder() to construct.
private NamespaceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NamespaceInfo() {
name_ = "";
state_ = 0;
description_ = "";
ownerEmail_ = "";
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NamespaceInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamespaceInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ownerEmail_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
data_ = com.google.protobuf.MapField.newMapField(
DataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
data__ = input.readMessage(
DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
data_.getMutableMap().put(
data__.getKey(), data__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 800: {
supportsSchedules_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.namespace.v1.NamespaceInfo.class, io.temporal.api.namespace.v1.NamespaceInfo.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 2;
private int state_;
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @return The enum numeric value on the wire for state.
*/
public int getStateValue() {
return state_;
}
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @return The state.
*/
public io.temporal.api.enums.v1.NamespaceState getState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.NamespaceState result = io.temporal.api.enums.v1.NamespaceState.valueOf(state_);
return result == null ? io.temporal.api.enums.v1.NamespaceState.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OWNER_EMAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object ownerEmail_;
/**
* string owner_email = 4;
* @return The ownerEmail.
*/
public java.lang.String getOwnerEmail() {
java.lang.Object ref = ownerEmail_;
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();
ownerEmail_ = s;
return s;
}
}
/**
* string owner_email = 4;
* @return The bytes for ownerEmail.
*/
public com.google.protobuf.ByteString
getOwnerEmailBytes() {
java.lang.Object ref = ownerEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 5;
private static final class DataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_DataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> data_;
private com.google.protobuf.MapField
internalGetData() {
if (data_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DataDefaultEntryHolder.defaultEntry);
}
return data_;
}
public int getDataCount() {
return internalGetData().getMap().size();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public boolean containsData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetData().getMap().containsKey(key);
}
/**
* Use {@link #getDataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getData() {
return getDataMap();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.util.Map getDataMap() {
return internalGetData().getMap();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.lang.String getDataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.lang.String getDataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ID_FIELD_NUMBER = 6;
private volatile java.lang.Object id_;
/**
* string id = 6;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 6;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUPPORTS_SCHEDULES_FIELD_NUMBER = 100;
private boolean supportsSchedules_;
/**
*
* Whether scheduled workflows are supported on this namespace. This is only needed
* temporarily while the feature is experimental, so we can give it a high tag.
*
*
* bool supports_schedules = 100;
* @return The supportsSchedules.
*/
public boolean getSupportsSchedules() {
return supportsSchedules_;
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (state_ != io.temporal.api.enums.v1.NamespaceState.NAMESPACE_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, state_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!getOwnerEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ownerEmail_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetData(),
DataDefaultEntryHolder.defaultEntry,
5);
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, id_);
}
if (supportsSchedules_ != false) {
output.writeBool(100, supportsSchedules_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (state_ != io.temporal.api.enums.v1.NamespaceState.NAMESPACE_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, state_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!getOwnerEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ownerEmail_);
}
for (java.util.Map.Entry entry
: internalGetData().getMap().entrySet()) {
com.google.protobuf.MapEntry
data__ = DataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, data__);
}
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, id_);
}
if (supportsSchedules_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(100, supportsSchedules_);
}
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.namespace.v1.NamespaceInfo)) {
return super.equals(obj);
}
io.temporal.api.namespace.v1.NamespaceInfo other = (io.temporal.api.namespace.v1.NamespaceInfo) obj;
if (!getName()
.equals(other.getName())) return false;
if (state_ != other.state_) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getOwnerEmail()
.equals(other.getOwnerEmail())) return false;
if (!internalGetData().equals(
other.internalGetData())) return false;
if (!getId()
.equals(other.getId())) return false;
if (getSupportsSchedules()
!= other.getSupportsSchedules()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + OWNER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getOwnerEmail().hashCode();
if (!internalGetData().getMap().isEmpty()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetData().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + SUPPORTS_SCHEDULES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSupportsSchedules());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.namespace.v1.NamespaceInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceInfo 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.namespace.v1.NamespaceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceInfo 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.namespace.v1.NamespaceInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.namespace.v1.NamespaceInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.namespace.v1.NamespaceInfo 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.namespace.v1.NamespaceInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.namespace.v1.NamespaceInfo 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.namespace.v1.NamespaceInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.namespace.v1.NamespaceInfo 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.namespace.v1.NamespaceInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code temporal.api.namespace.v1.NamespaceInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.namespace.v1.NamespaceInfo)
io.temporal.api.namespace.v1.NamespaceInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.namespace.v1.NamespaceInfo.class, io.temporal.api.namespace.v1.NamespaceInfo.Builder.class);
}
// Construct using io.temporal.api.namespace.v1.NamespaceInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
state_ = 0;
description_ = "";
ownerEmail_ = "";
internalGetMutableData().clear();
id_ = "";
supportsSchedules_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceInfo_descriptor;
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceInfo getDefaultInstanceForType() {
return io.temporal.api.namespace.v1.NamespaceInfo.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceInfo build() {
io.temporal.api.namespace.v1.NamespaceInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceInfo buildPartial() {
io.temporal.api.namespace.v1.NamespaceInfo result = new io.temporal.api.namespace.v1.NamespaceInfo(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.state_ = state_;
result.description_ = description_;
result.ownerEmail_ = ownerEmail_;
result.data_ = internalGetData();
result.data_.makeImmutable();
result.id_ = id_;
result.supportsSchedules_ = supportsSchedules_;
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.namespace.v1.NamespaceInfo) {
return mergeFrom((io.temporal.api.namespace.v1.NamespaceInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.namespace.v1.NamespaceInfo other) {
if (other == io.temporal.api.namespace.v1.NamespaceInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getOwnerEmail().isEmpty()) {
ownerEmail_ = other.ownerEmail_;
onChanged();
}
internalGetMutableData().mergeFrom(
other.internalGetData());
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.getSupportsSchedules() != false) {
setSupportsSchedules(other.getSupportsSchedules());
}
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.namespace.v1.NamespaceInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.namespace.v1.NamespaceInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int state_ = 0;
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @return The enum numeric value on the wire for state.
*/
public int getStateValue() {
return state_;
}
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @return The state.
*/
public io.temporal.api.enums.v1.NamespaceState getState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.NamespaceState result = io.temporal.api.enums.v1.NamespaceState.valueOf(state_);
return result == null ? io.temporal.api.enums.v1.NamespaceState.UNRECOGNIZED : result;
}
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.temporal.api.enums.v1.NamespaceState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.NamespaceState state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object ownerEmail_ = "";
/**
* string owner_email = 4;
* @return The ownerEmail.
*/
public java.lang.String getOwnerEmail() {
java.lang.Object ref = ownerEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string owner_email = 4;
* @return The bytes for ownerEmail.
*/
public com.google.protobuf.ByteString
getOwnerEmailBytes() {
java.lang.Object ref = ownerEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string owner_email = 4;
* @param value The ownerEmail to set.
* @return This builder for chaining.
*/
public Builder setOwnerEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ownerEmail_ = value;
onChanged();
return this;
}
/**
* string owner_email = 4;
* @return This builder for chaining.
*/
public Builder clearOwnerEmail() {
ownerEmail_ = getDefaultInstance().getOwnerEmail();
onChanged();
return this;
}
/**
* string owner_email = 4;
* @param value The bytes for ownerEmail to set.
* @return This builder for chaining.
*/
public Builder setOwnerEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ownerEmail_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> data_;
private com.google.protobuf.MapField
internalGetData() {
if (data_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DataDefaultEntryHolder.defaultEntry);
}
return data_;
}
private com.google.protobuf.MapField
internalGetMutableData() {
onChanged();;
if (data_ == null) {
data_ = com.google.protobuf.MapField.newMapField(
DataDefaultEntryHolder.defaultEntry);
}
if (!data_.isMutable()) {
data_ = data_.copy();
}
return data_;
}
public int getDataCount() {
return internalGetData().getMap().size();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public boolean containsData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetData().getMap().containsKey(key);
}
/**
* Use {@link #getDataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getData() {
return getDataMap();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.util.Map getDataMap() {
return internalGetData().getMap();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.lang.String getDataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public java.lang.String getDataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearData() {
internalGetMutableData().getMutableMap()
.clear();
return this;
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public Builder removeData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableData().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableData() {
return internalGetMutableData().getMutableMap();
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public Builder putData(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableData().getMutableMap()
.put(key, value);
return this;
}
/**
*
* A key-value map for any customized purpose.
*
*
* map<string, string> data = 5;
*/
public Builder putAllData(
java.util.Map values) {
internalGetMutableData().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object id_ = "";
/**
* string id = 6;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 6;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 6;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 6;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 6;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private boolean supportsSchedules_ ;
/**
*
* Whether scheduled workflows are supported on this namespace. This is only needed
* temporarily while the feature is experimental, so we can give it a high tag.
*
*
* bool supports_schedules = 100;
* @return The supportsSchedules.
*/
public boolean getSupportsSchedules() {
return supportsSchedules_;
}
/**
*
* Whether scheduled workflows are supported on this namespace. This is only needed
* temporarily while the feature is experimental, so we can give it a high tag.
*
*
* bool supports_schedules = 100;
* @param value The supportsSchedules to set.
* @return This builder for chaining.
*/
public Builder setSupportsSchedules(boolean value) {
supportsSchedules_ = value;
onChanged();
return this;
}
/**
*
* Whether scheduled workflows are supported on this namespace. This is only needed
* temporarily while the feature is experimental, so we can give it a high tag.
*
*
* bool supports_schedules = 100;
* @return This builder for chaining.
*/
public Builder clearSupportsSchedules() {
supportsSchedules_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:temporal.api.namespace.v1.NamespaceInfo)
}
// @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo)
private static final io.temporal.api.namespace.v1.NamespaceInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.namespace.v1.NamespaceInfo();
}
public static io.temporal.api.namespace.v1.NamespaceInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NamespaceInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamespaceInfo(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.namespace.v1.NamespaceInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy