Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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();
}
/**
*
* 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();
}
/**
*