io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:NamespaceConfig.java.pb.meta")
public final class NamespaceConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.namespace.v1.NamespaceConfig)
NamespaceConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use NamespaceConfig.newBuilder() to construct.
private NamespaceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NamespaceConfig() {
historyArchivalState_ = 0;
historyArchivalUri_ = "";
visibilityArchivalState_ = 0;
visibilityArchivalUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NamespaceConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamespaceConfig(
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: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (workflowExecutionRetentionTtl_ != null) {
subBuilder = workflowExecutionRetentionTtl_.toBuilder();
}
workflowExecutionRetentionTtl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowExecutionRetentionTtl_);
workflowExecutionRetentionTtl_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.temporal.api.namespace.v1.BadBinaries.Builder subBuilder = null;
if (badBinaries_ != null) {
subBuilder = badBinaries_.toBuilder();
}
badBinaries_ = input.readMessage(io.temporal.api.namespace.v1.BadBinaries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(badBinaries_);
badBinaries_ = subBuilder.buildPartial();
}
break;
}
case 24: {
int rawValue = input.readEnum();
historyArchivalState_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
historyArchivalUri_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
visibilityArchivalState_ = rawValue;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
visibilityArchivalUri_ = s;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
customSearchAttributeAliases_ = com.google.protobuf.MapField.newMapField(
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
customSearchAttributeAliases__ = input.readMessage(
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
customSearchAttributeAliases_.getMutableMap().put(
customSearchAttributeAliases__.getKey(), customSearchAttributeAliases__.getValue());
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_NamespaceConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetCustomSearchAttributeAliases();
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_NamespaceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.namespace.v1.NamespaceConfig.class, io.temporal.api.namespace.v1.NamespaceConfig.Builder.class);
}
public static final int WORKFLOW_EXECUTION_RETENTION_TTL_FIELD_NUMBER = 1;
private com.google.protobuf.Duration workflowExecutionRetentionTtl_;
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
* @return Whether the workflowExecutionRetentionTtl field is set.
*/
public boolean hasWorkflowExecutionRetentionTtl() {
return workflowExecutionRetentionTtl_ != null;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
* @return The workflowExecutionRetentionTtl.
*/
public com.google.protobuf.Duration getWorkflowExecutionRetentionTtl() {
return workflowExecutionRetentionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionRetentionTtl_;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowExecutionRetentionTtlOrBuilder() {
return getWorkflowExecutionRetentionTtl();
}
public static final int BAD_BINARIES_FIELD_NUMBER = 2;
private io.temporal.api.namespace.v1.BadBinaries badBinaries_;
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
* @return Whether the badBinaries field is set.
*/
public boolean hasBadBinaries() {
return badBinaries_ != null;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
* @return The badBinaries.
*/
public io.temporal.api.namespace.v1.BadBinaries getBadBinaries() {
return badBinaries_ == null ? io.temporal.api.namespace.v1.BadBinaries.getDefaultInstance() : badBinaries_;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public io.temporal.api.namespace.v1.BadBinariesOrBuilder getBadBinariesOrBuilder() {
return getBadBinaries();
}
public static final int HISTORY_ARCHIVAL_STATE_FIELD_NUMBER = 3;
private int historyArchivalState_;
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @return The enum numeric value on the wire for historyArchivalState.
*/
public int getHistoryArchivalStateValue() {
return historyArchivalState_;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @return The historyArchivalState.
*/
public io.temporal.api.enums.v1.ArchivalState getHistoryArchivalState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ArchivalState result = io.temporal.api.enums.v1.ArchivalState.valueOf(historyArchivalState_);
return result == null ? io.temporal.api.enums.v1.ArchivalState.UNRECOGNIZED : result;
}
public static final int HISTORY_ARCHIVAL_URI_FIELD_NUMBER = 4;
private volatile java.lang.Object historyArchivalUri_;
/**
* string history_archival_uri = 4;
* @return The historyArchivalUri.
*/
public java.lang.String getHistoryArchivalUri() {
java.lang.Object ref = historyArchivalUri_;
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();
historyArchivalUri_ = s;
return s;
}
}
/**
* string history_archival_uri = 4;
* @return The bytes for historyArchivalUri.
*/
public com.google.protobuf.ByteString
getHistoryArchivalUriBytes() {
java.lang.Object ref = historyArchivalUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
historyArchivalUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VISIBILITY_ARCHIVAL_STATE_FIELD_NUMBER = 5;
private int visibilityArchivalState_;
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @return The enum numeric value on the wire for visibilityArchivalState.
*/
public int getVisibilityArchivalStateValue() {
return visibilityArchivalState_;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @return The visibilityArchivalState.
*/
public io.temporal.api.enums.v1.ArchivalState getVisibilityArchivalState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ArchivalState result = io.temporal.api.enums.v1.ArchivalState.valueOf(visibilityArchivalState_);
return result == null ? io.temporal.api.enums.v1.ArchivalState.UNRECOGNIZED : result;
}
public static final int VISIBILITY_ARCHIVAL_URI_FIELD_NUMBER = 6;
private volatile java.lang.Object visibilityArchivalUri_;
/**
* string visibility_archival_uri = 6;
* @return The visibilityArchivalUri.
*/
public java.lang.String getVisibilityArchivalUri() {
java.lang.Object ref = visibilityArchivalUri_;
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();
visibilityArchivalUri_ = s;
return s;
}
}
/**
* string visibility_archival_uri = 6;
* @return The bytes for visibilityArchivalUri.
*/
public com.google.protobuf.ByteString
getVisibilityArchivalUriBytes() {
java.lang.Object ref = visibilityArchivalUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
visibilityArchivalUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CUSTOM_SEARCH_ATTRIBUTE_ALIASES_FIELD_NUMBER = 7;
private static final class CustomSearchAttributeAliasesDefaultEntryHolder {
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_NamespaceConfig_CustomSearchAttributeAliasesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> customSearchAttributeAliases_;
private com.google.protobuf.MapField
internalGetCustomSearchAttributeAliases() {
if (customSearchAttributeAliases_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry);
}
return customSearchAttributeAliases_;
}
public int getCustomSearchAttributeAliasesCount() {
return internalGetCustomSearchAttributeAliases().getMap().size();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public boolean containsCustomSearchAttributeAliases(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCustomSearchAttributeAliases().getMap().containsKey(key);
}
/**
* Use {@link #getCustomSearchAttributeAliasesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCustomSearchAttributeAliases() {
return getCustomSearchAttributeAliasesMap();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.util.Map getCustomSearchAttributeAliasesMap() {
return internalGetCustomSearchAttributeAliases().getMap();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.lang.String getCustomSearchAttributeAliasesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCustomSearchAttributeAliases().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.lang.String getCustomSearchAttributeAliasesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCustomSearchAttributeAliases().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (workflowExecutionRetentionTtl_ != null) {
output.writeMessage(1, getWorkflowExecutionRetentionTtl());
}
if (badBinaries_ != null) {
output.writeMessage(2, getBadBinaries());
}
if (historyArchivalState_ != io.temporal.api.enums.v1.ArchivalState.ARCHIVAL_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, historyArchivalState_);
}
if (!getHistoryArchivalUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, historyArchivalUri_);
}
if (visibilityArchivalState_ != io.temporal.api.enums.v1.ArchivalState.ARCHIVAL_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, visibilityArchivalState_);
}
if (!getVisibilityArchivalUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, visibilityArchivalUri_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetCustomSearchAttributeAliases(),
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry,
7);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (workflowExecutionRetentionTtl_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getWorkflowExecutionRetentionTtl());
}
if (badBinaries_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBadBinaries());
}
if (historyArchivalState_ != io.temporal.api.enums.v1.ArchivalState.ARCHIVAL_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, historyArchivalState_);
}
if (!getHistoryArchivalUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, historyArchivalUri_);
}
if (visibilityArchivalState_ != io.temporal.api.enums.v1.ArchivalState.ARCHIVAL_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, visibilityArchivalState_);
}
if (!getVisibilityArchivalUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, visibilityArchivalUri_);
}
for (java.util.Map.Entry entry
: internalGetCustomSearchAttributeAliases().getMap().entrySet()) {
com.google.protobuf.MapEntry
customSearchAttributeAliases__ = CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, customSearchAttributeAliases__);
}
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.NamespaceConfig)) {
return super.equals(obj);
}
io.temporal.api.namespace.v1.NamespaceConfig other = (io.temporal.api.namespace.v1.NamespaceConfig) obj;
if (hasWorkflowExecutionRetentionTtl() != other.hasWorkflowExecutionRetentionTtl()) return false;
if (hasWorkflowExecutionRetentionTtl()) {
if (!getWorkflowExecutionRetentionTtl()
.equals(other.getWorkflowExecutionRetentionTtl())) return false;
}
if (hasBadBinaries() != other.hasBadBinaries()) return false;
if (hasBadBinaries()) {
if (!getBadBinaries()
.equals(other.getBadBinaries())) return false;
}
if (historyArchivalState_ != other.historyArchivalState_) return false;
if (!getHistoryArchivalUri()
.equals(other.getHistoryArchivalUri())) return false;
if (visibilityArchivalState_ != other.visibilityArchivalState_) return false;
if (!getVisibilityArchivalUri()
.equals(other.getVisibilityArchivalUri())) return false;
if (!internalGetCustomSearchAttributeAliases().equals(
other.internalGetCustomSearchAttributeAliases())) 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 (hasWorkflowExecutionRetentionTtl()) {
hash = (37 * hash) + WORKFLOW_EXECUTION_RETENTION_TTL_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowExecutionRetentionTtl().hashCode();
}
if (hasBadBinaries()) {
hash = (37 * hash) + BAD_BINARIES_FIELD_NUMBER;
hash = (53 * hash) + getBadBinaries().hashCode();
}
hash = (37 * hash) + HISTORY_ARCHIVAL_STATE_FIELD_NUMBER;
hash = (53 * hash) + historyArchivalState_;
hash = (37 * hash) + HISTORY_ARCHIVAL_URI_FIELD_NUMBER;
hash = (53 * hash) + getHistoryArchivalUri().hashCode();
hash = (37 * hash) + VISIBILITY_ARCHIVAL_STATE_FIELD_NUMBER;
hash = (53 * hash) + visibilityArchivalState_;
hash = (37 * hash) + VISIBILITY_ARCHIVAL_URI_FIELD_NUMBER;
hash = (53 * hash) + getVisibilityArchivalUri().hashCode();
if (!internalGetCustomSearchAttributeAliases().getMap().isEmpty()) {
hash = (37 * hash) + CUSTOM_SEARCH_ATTRIBUTE_ALIASES_FIELD_NUMBER;
hash = (53 * hash) + internalGetCustomSearchAttributeAliases().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.namespace.v1.NamespaceConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.namespace.v1.NamespaceConfig 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.NamespaceConfig 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.NamespaceConfig 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.NamespaceConfig 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.NamespaceConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.namespace.v1.NamespaceConfig)
io.temporal.api.namespace.v1.NamespaceConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_NamespaceConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetCustomSearchAttributeAliases();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
return internalGetMutableCustomSearchAttributeAliases();
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_NamespaceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.namespace.v1.NamespaceConfig.class, io.temporal.api.namespace.v1.NamespaceConfig.Builder.class);
}
// Construct using io.temporal.api.namespace.v1.NamespaceConfig.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();
if (workflowExecutionRetentionTtlBuilder_ == null) {
workflowExecutionRetentionTtl_ = null;
} else {
workflowExecutionRetentionTtl_ = null;
workflowExecutionRetentionTtlBuilder_ = null;
}
if (badBinariesBuilder_ == null) {
badBinaries_ = null;
} else {
badBinaries_ = null;
badBinariesBuilder_ = null;
}
historyArchivalState_ = 0;
historyArchivalUri_ = "";
visibilityArchivalState_ = 0;
visibilityArchivalUri_ = "";
internalGetMutableCustomSearchAttributeAliases().clear();
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_NamespaceConfig_descriptor;
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceConfig getDefaultInstanceForType() {
return io.temporal.api.namespace.v1.NamespaceConfig.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceConfig build() {
io.temporal.api.namespace.v1.NamespaceConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.namespace.v1.NamespaceConfig buildPartial() {
io.temporal.api.namespace.v1.NamespaceConfig result = new io.temporal.api.namespace.v1.NamespaceConfig(this);
int from_bitField0_ = bitField0_;
if (workflowExecutionRetentionTtlBuilder_ == null) {
result.workflowExecutionRetentionTtl_ = workflowExecutionRetentionTtl_;
} else {
result.workflowExecutionRetentionTtl_ = workflowExecutionRetentionTtlBuilder_.build();
}
if (badBinariesBuilder_ == null) {
result.badBinaries_ = badBinaries_;
} else {
result.badBinaries_ = badBinariesBuilder_.build();
}
result.historyArchivalState_ = historyArchivalState_;
result.historyArchivalUri_ = historyArchivalUri_;
result.visibilityArchivalState_ = visibilityArchivalState_;
result.visibilityArchivalUri_ = visibilityArchivalUri_;
result.customSearchAttributeAliases_ = internalGetCustomSearchAttributeAliases();
result.customSearchAttributeAliases_.makeImmutable();
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.NamespaceConfig) {
return mergeFrom((io.temporal.api.namespace.v1.NamespaceConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.namespace.v1.NamespaceConfig other) {
if (other == io.temporal.api.namespace.v1.NamespaceConfig.getDefaultInstance()) return this;
if (other.hasWorkflowExecutionRetentionTtl()) {
mergeWorkflowExecutionRetentionTtl(other.getWorkflowExecutionRetentionTtl());
}
if (other.hasBadBinaries()) {
mergeBadBinaries(other.getBadBinaries());
}
if (other.historyArchivalState_ != 0) {
setHistoryArchivalStateValue(other.getHistoryArchivalStateValue());
}
if (!other.getHistoryArchivalUri().isEmpty()) {
historyArchivalUri_ = other.historyArchivalUri_;
onChanged();
}
if (other.visibilityArchivalState_ != 0) {
setVisibilityArchivalStateValue(other.getVisibilityArchivalStateValue());
}
if (!other.getVisibilityArchivalUri().isEmpty()) {
visibilityArchivalUri_ = other.visibilityArchivalUri_;
onChanged();
}
internalGetMutableCustomSearchAttributeAliases().mergeFrom(
other.internalGetCustomSearchAttributeAliases());
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.NamespaceConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.namespace.v1.NamespaceConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Duration workflowExecutionRetentionTtl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowExecutionRetentionTtlBuilder_;
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
* @return Whether the workflowExecutionRetentionTtl field is set.
*/
public boolean hasWorkflowExecutionRetentionTtl() {
return workflowExecutionRetentionTtlBuilder_ != null || workflowExecutionRetentionTtl_ != null;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
* @return The workflowExecutionRetentionTtl.
*/
public com.google.protobuf.Duration getWorkflowExecutionRetentionTtl() {
if (workflowExecutionRetentionTtlBuilder_ == null) {
return workflowExecutionRetentionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionRetentionTtl_;
} else {
return workflowExecutionRetentionTtlBuilder_.getMessage();
}
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowExecutionRetentionTtl(com.google.protobuf.Duration value) {
if (workflowExecutionRetentionTtlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowExecutionRetentionTtl_ = value;
onChanged();
} else {
workflowExecutionRetentionTtlBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowExecutionRetentionTtl(
com.google.protobuf.Duration.Builder builderForValue) {
if (workflowExecutionRetentionTtlBuilder_ == null) {
workflowExecutionRetentionTtl_ = builderForValue.build();
onChanged();
} else {
workflowExecutionRetentionTtlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public Builder mergeWorkflowExecutionRetentionTtl(com.google.protobuf.Duration value) {
if (workflowExecutionRetentionTtlBuilder_ == null) {
if (workflowExecutionRetentionTtl_ != null) {
workflowExecutionRetentionTtl_ =
com.google.protobuf.Duration.newBuilder(workflowExecutionRetentionTtl_).mergeFrom(value).buildPartial();
} else {
workflowExecutionRetentionTtl_ = value;
}
onChanged();
} else {
workflowExecutionRetentionTtlBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public Builder clearWorkflowExecutionRetentionTtl() {
if (workflowExecutionRetentionTtlBuilder_ == null) {
workflowExecutionRetentionTtl_ = null;
onChanged();
} else {
workflowExecutionRetentionTtl_ = null;
workflowExecutionRetentionTtlBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getWorkflowExecutionRetentionTtlBuilder() {
onChanged();
return getWorkflowExecutionRetentionTtlFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowExecutionRetentionTtlOrBuilder() {
if (workflowExecutionRetentionTtlBuilder_ != null) {
return workflowExecutionRetentionTtlBuilder_.getMessageOrBuilder();
} else {
return workflowExecutionRetentionTtl_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionRetentionTtl_;
}
}
/**
* .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWorkflowExecutionRetentionTtlFieldBuilder() {
if (workflowExecutionRetentionTtlBuilder_ == null) {
workflowExecutionRetentionTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWorkflowExecutionRetentionTtl(),
getParentForChildren(),
isClean());
workflowExecutionRetentionTtl_ = null;
}
return workflowExecutionRetentionTtlBuilder_;
}
private io.temporal.api.namespace.v1.BadBinaries badBinaries_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.namespace.v1.BadBinaries, io.temporal.api.namespace.v1.BadBinaries.Builder, io.temporal.api.namespace.v1.BadBinariesOrBuilder> badBinariesBuilder_;
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
* @return Whether the badBinaries field is set.
*/
public boolean hasBadBinaries() {
return badBinariesBuilder_ != null || badBinaries_ != null;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
* @return The badBinaries.
*/
public io.temporal.api.namespace.v1.BadBinaries getBadBinaries() {
if (badBinariesBuilder_ == null) {
return badBinaries_ == null ? io.temporal.api.namespace.v1.BadBinaries.getDefaultInstance() : badBinaries_;
} else {
return badBinariesBuilder_.getMessage();
}
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public Builder setBadBinaries(io.temporal.api.namespace.v1.BadBinaries value) {
if (badBinariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
badBinaries_ = value;
onChanged();
} else {
badBinariesBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public Builder setBadBinaries(
io.temporal.api.namespace.v1.BadBinaries.Builder builderForValue) {
if (badBinariesBuilder_ == null) {
badBinaries_ = builderForValue.build();
onChanged();
} else {
badBinariesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public Builder mergeBadBinaries(io.temporal.api.namespace.v1.BadBinaries value) {
if (badBinariesBuilder_ == null) {
if (badBinaries_ != null) {
badBinaries_ =
io.temporal.api.namespace.v1.BadBinaries.newBuilder(badBinaries_).mergeFrom(value).buildPartial();
} else {
badBinaries_ = value;
}
onChanged();
} else {
badBinariesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public Builder clearBadBinaries() {
if (badBinariesBuilder_ == null) {
badBinaries_ = null;
onChanged();
} else {
badBinaries_ = null;
badBinariesBuilder_ = null;
}
return this;
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public io.temporal.api.namespace.v1.BadBinaries.Builder getBadBinariesBuilder() {
onChanged();
return getBadBinariesFieldBuilder().getBuilder();
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
public io.temporal.api.namespace.v1.BadBinariesOrBuilder getBadBinariesOrBuilder() {
if (badBinariesBuilder_ != null) {
return badBinariesBuilder_.getMessageOrBuilder();
} else {
return badBinaries_ == null ?
io.temporal.api.namespace.v1.BadBinaries.getDefaultInstance() : badBinaries_;
}
}
/**
* .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.namespace.v1.BadBinaries, io.temporal.api.namespace.v1.BadBinaries.Builder, io.temporal.api.namespace.v1.BadBinariesOrBuilder>
getBadBinariesFieldBuilder() {
if (badBinariesBuilder_ == null) {
badBinariesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.namespace.v1.BadBinaries, io.temporal.api.namespace.v1.BadBinaries.Builder, io.temporal.api.namespace.v1.BadBinariesOrBuilder>(
getBadBinaries(),
getParentForChildren(),
isClean());
badBinaries_ = null;
}
return badBinariesBuilder_;
}
private int historyArchivalState_ = 0;
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @return The enum numeric value on the wire for historyArchivalState.
*/
public int getHistoryArchivalStateValue() {
return historyArchivalState_;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @param value The enum numeric value on the wire for historyArchivalState to set.
* @return This builder for chaining.
*/
public Builder setHistoryArchivalStateValue(int value) {
historyArchivalState_ = value;
onChanged();
return this;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @return The historyArchivalState.
*/
public io.temporal.api.enums.v1.ArchivalState getHistoryArchivalState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ArchivalState result = io.temporal.api.enums.v1.ArchivalState.valueOf(historyArchivalState_);
return result == null ? io.temporal.api.enums.v1.ArchivalState.UNRECOGNIZED : result;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @param value The historyArchivalState to set.
* @return This builder for chaining.
*/
public Builder setHistoryArchivalState(io.temporal.api.enums.v1.ArchivalState value) {
if (value == null) {
throw new NullPointerException();
}
historyArchivalState_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
* @return This builder for chaining.
*/
public Builder clearHistoryArchivalState() {
historyArchivalState_ = 0;
onChanged();
return this;
}
private java.lang.Object historyArchivalUri_ = "";
/**
* string history_archival_uri = 4;
* @return The historyArchivalUri.
*/
public java.lang.String getHistoryArchivalUri() {
java.lang.Object ref = historyArchivalUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
historyArchivalUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string history_archival_uri = 4;
* @return The bytes for historyArchivalUri.
*/
public com.google.protobuf.ByteString
getHistoryArchivalUriBytes() {
java.lang.Object ref = historyArchivalUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
historyArchivalUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string history_archival_uri = 4;
* @param value The historyArchivalUri to set.
* @return This builder for chaining.
*/
public Builder setHistoryArchivalUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
historyArchivalUri_ = value;
onChanged();
return this;
}
/**
* string history_archival_uri = 4;
* @return This builder for chaining.
*/
public Builder clearHistoryArchivalUri() {
historyArchivalUri_ = getDefaultInstance().getHistoryArchivalUri();
onChanged();
return this;
}
/**
* string history_archival_uri = 4;
* @param value The bytes for historyArchivalUri to set.
* @return This builder for chaining.
*/
public Builder setHistoryArchivalUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
historyArchivalUri_ = value;
onChanged();
return this;
}
private int visibilityArchivalState_ = 0;
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @return The enum numeric value on the wire for visibilityArchivalState.
*/
public int getVisibilityArchivalStateValue() {
return visibilityArchivalState_;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @param value The enum numeric value on the wire for visibilityArchivalState to set.
* @return This builder for chaining.
*/
public Builder setVisibilityArchivalStateValue(int value) {
visibilityArchivalState_ = value;
onChanged();
return this;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @return The visibilityArchivalState.
*/
public io.temporal.api.enums.v1.ArchivalState getVisibilityArchivalState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ArchivalState result = io.temporal.api.enums.v1.ArchivalState.valueOf(visibilityArchivalState_);
return result == null ? io.temporal.api.enums.v1.ArchivalState.UNRECOGNIZED : result;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @param value The visibilityArchivalState to set.
* @return This builder for chaining.
*/
public Builder setVisibilityArchivalState(io.temporal.api.enums.v1.ArchivalState value) {
if (value == null) {
throw new NullPointerException();
}
visibilityArchivalState_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
*
*
* .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
* @return This builder for chaining.
*/
public Builder clearVisibilityArchivalState() {
visibilityArchivalState_ = 0;
onChanged();
return this;
}
private java.lang.Object visibilityArchivalUri_ = "";
/**
* string visibility_archival_uri = 6;
* @return The visibilityArchivalUri.
*/
public java.lang.String getVisibilityArchivalUri() {
java.lang.Object ref = visibilityArchivalUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
visibilityArchivalUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string visibility_archival_uri = 6;
* @return The bytes for visibilityArchivalUri.
*/
public com.google.protobuf.ByteString
getVisibilityArchivalUriBytes() {
java.lang.Object ref = visibilityArchivalUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
visibilityArchivalUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string visibility_archival_uri = 6;
* @param value The visibilityArchivalUri to set.
* @return This builder for chaining.
*/
public Builder setVisibilityArchivalUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
visibilityArchivalUri_ = value;
onChanged();
return this;
}
/**
* string visibility_archival_uri = 6;
* @return This builder for chaining.
*/
public Builder clearVisibilityArchivalUri() {
visibilityArchivalUri_ = getDefaultInstance().getVisibilityArchivalUri();
onChanged();
return this;
}
/**
* string visibility_archival_uri = 6;
* @param value The bytes for visibilityArchivalUri to set.
* @return This builder for chaining.
*/
public Builder setVisibilityArchivalUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
visibilityArchivalUri_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> customSearchAttributeAliases_;
private com.google.protobuf.MapField
internalGetCustomSearchAttributeAliases() {
if (customSearchAttributeAliases_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry);
}
return customSearchAttributeAliases_;
}
private com.google.protobuf.MapField
internalGetMutableCustomSearchAttributeAliases() {
onChanged();;
if (customSearchAttributeAliases_ == null) {
customSearchAttributeAliases_ = com.google.protobuf.MapField.newMapField(
CustomSearchAttributeAliasesDefaultEntryHolder.defaultEntry);
}
if (!customSearchAttributeAliases_.isMutable()) {
customSearchAttributeAliases_ = customSearchAttributeAliases_.copy();
}
return customSearchAttributeAliases_;
}
public int getCustomSearchAttributeAliasesCount() {
return internalGetCustomSearchAttributeAliases().getMap().size();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public boolean containsCustomSearchAttributeAliases(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCustomSearchAttributeAliases().getMap().containsKey(key);
}
/**
* Use {@link #getCustomSearchAttributeAliasesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCustomSearchAttributeAliases() {
return getCustomSearchAttributeAliasesMap();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.util.Map getCustomSearchAttributeAliasesMap() {
return internalGetCustomSearchAttributeAliases().getMap();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.lang.String getCustomSearchAttributeAliasesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCustomSearchAttributeAliases().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public java.lang.String getCustomSearchAttributeAliasesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCustomSearchAttributeAliases().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCustomSearchAttributeAliases() {
internalGetMutableCustomSearchAttributeAliases().getMutableMap()
.clear();
return this;
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public Builder removeCustomSearchAttributeAliases(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCustomSearchAttributeAliases().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCustomSearchAttributeAliases() {
return internalGetMutableCustomSearchAttributeAliases().getMutableMap();
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public Builder putCustomSearchAttributeAliases(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCustomSearchAttributeAliases().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Map from field name to alias.
*
*
* map<string, string> custom_search_attribute_aliases = 7;
*/
public Builder putAllCustomSearchAttributeAliases(
java.util.Map values) {
internalGetMutableCustomSearchAttributeAliases().getMutableMap()
.putAll(values);
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.NamespaceConfig)
}
// @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceConfig)
private static final io.temporal.api.namespace.v1.NamespaceConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.namespace.v1.NamespaceConfig();
}
public static io.temporal.api.namespace.v1.NamespaceConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NamespaceConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamespaceConfig(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.NamespaceConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy