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/workflowservice/v1/request_response.proto
package io.temporal.api.workflowservice.v1;
/**
* Protobuf type {@code temporal.api.workflowservice.v1.DescribeNamespaceResponse}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:DescribeNamespaceResponse.java.pb.meta")
public final class DescribeNamespaceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.DescribeNamespaceResponse)
DescribeNamespaceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DescribeNamespaceResponse.newBuilder() to construct.
private DescribeNamespaceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DescribeNamespaceResponse() {
failoverHistory_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribeNamespaceResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribeNamespaceResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.temporal.api.namespace.v1.NamespaceInfo.Builder subBuilder = null;
if (namespaceInfo_ != null) {
subBuilder = namespaceInfo_.toBuilder();
}
namespaceInfo_ = input.readMessage(io.temporal.api.namespace.v1.NamespaceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(namespaceInfo_);
namespaceInfo_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.temporal.api.namespace.v1.NamespaceConfig.Builder subBuilder = null;
if (config_ != null) {
subBuilder = config_.toBuilder();
}
config_ = input.readMessage(io.temporal.api.namespace.v1.NamespaceConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(config_);
config_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.temporal.api.replication.v1.NamespaceReplicationConfig.Builder subBuilder = null;
if (replicationConfig_ != null) {
subBuilder = replicationConfig_.toBuilder();
}
replicationConfig_ = input.readMessage(io.temporal.api.replication.v1.NamespaceReplicationConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(replicationConfig_);
replicationConfig_ = subBuilder.buildPartial();
}
break;
}
case 32: {
failoverVersion_ = input.readInt64();
break;
}
case 40: {
isGlobalNamespace_ = input.readBool();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
failoverHistory_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
failoverHistory_.add(
input.readMessage(io.temporal.api.replication.v1.FailoverStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
failoverHistory_ = java.util.Collections.unmodifiableList(failoverHistory_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeNamespaceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeNamespaceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.DescribeNamespaceResponse.class, io.temporal.api.workflowservice.v1.DescribeNamespaceResponse.Builder.class);
}
public static final int NAMESPACE_INFO_FIELD_NUMBER = 1;
private io.temporal.api.namespace.v1.NamespaceInfo namespaceInfo_;
/**
* .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
* @return Whether the namespaceInfo field is set.
*/
public boolean hasNamespaceInfo() {
return namespaceInfo_ != null;
}
/**
* .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
* @return The namespaceInfo.
*/
public io.temporal.api.namespace.v1.NamespaceInfo getNamespaceInfo() {
return namespaceInfo_ == null ? io.temporal.api.namespace.v1.NamespaceInfo.getDefaultInstance() : namespaceInfo_;
}
/**
* .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
*/
public io.temporal.api.namespace.v1.NamespaceInfoOrBuilder getNamespaceInfoOrBuilder() {
return getNamespaceInfo();
}
public static final int CONFIG_FIELD_NUMBER = 2;
private io.temporal.api.namespace.v1.NamespaceConfig config_;
/**
* .temporal.api.namespace.v1.NamespaceConfig config = 2;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return config_ != null;
}
/**
* .temporal.api.namespace.v1.NamespaceConfig config = 2;
* @return The config.
*/
public io.temporal.api.namespace.v1.NamespaceConfig getConfig() {
return config_ == null ? io.temporal.api.namespace.v1.NamespaceConfig.getDefaultInstance() : config_;
}
/**
* .temporal.api.namespace.v1.NamespaceConfig config = 2;
*/
public io.temporal.api.namespace.v1.NamespaceConfigOrBuilder getConfigOrBuilder() {
return getConfig();
}
public static final int REPLICATION_CONFIG_FIELD_NUMBER = 3;
private io.temporal.api.replication.v1.NamespaceReplicationConfig replicationConfig_;
/**
* .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
* @return Whether the replicationConfig field is set.
*/
public boolean hasReplicationConfig() {
return replicationConfig_ != null;
}
/**
* .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
* @return The replicationConfig.
*/
public io.temporal.api.replication.v1.NamespaceReplicationConfig getReplicationConfig() {
return replicationConfig_ == null ? io.temporal.api.replication.v1.NamespaceReplicationConfig.getDefaultInstance() : replicationConfig_;
}
/**
* .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
*/
public io.temporal.api.replication.v1.NamespaceReplicationConfigOrBuilder getReplicationConfigOrBuilder() {
return getReplicationConfig();
}
public static final int FAILOVER_VERSION_FIELD_NUMBER = 4;
private long failoverVersion_;
/**
* int64 failover_version = 4;
* @return The failoverVersion.
*/
public long getFailoverVersion() {
return failoverVersion_;
}
public static final int IS_GLOBAL_NAMESPACE_FIELD_NUMBER = 5;
private boolean isGlobalNamespace_;
/**
* bool is_global_namespace = 5;
* @return The isGlobalNamespace.
*/
public boolean getIsGlobalNamespace() {
return isGlobalNamespace_;
}
public static final int FAILOVER_HISTORY_FIELD_NUMBER = 6;
private java.util.List failoverHistory_;
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public int getFailoverHistoryCount() {
return failoverHistory_.size();
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public int getFailoverHistoryCount() {
if (failoverHistoryBuilder_ == null) {
return failoverHistory_.size();
} else {
return failoverHistoryBuilder_.getCount();
}
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public Builder setFailoverHistory(
int index, io.temporal.api.replication.v1.FailoverStatus value) {
if (failoverHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailoverHistoryIsMutable();
failoverHistory_.set(index, value);
onChanged();
} else {
failoverHistoryBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public Builder addFailoverHistory(io.temporal.api.replication.v1.FailoverStatus value) {
if (failoverHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailoverHistoryIsMutable();
failoverHistory_.add(value);
onChanged();
} else {
failoverHistoryBuilder_.addMessage(value);
}
return this;
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public Builder addFailoverHistory(
int index, io.temporal.api.replication.v1.FailoverStatus value) {
if (failoverHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailoverHistoryIsMutable();
failoverHistory_.add(index, value);
onChanged();
} else {
failoverHistoryBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public io.temporal.api.replication.v1.FailoverStatus.Builder getFailoverHistoryBuilder(
int index) {
return getFailoverHistoryFieldBuilder().getBuilder(index);
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public io.temporal.api.replication.v1.FailoverStatusOrBuilder getFailoverHistoryOrBuilder(
int index) {
if (failoverHistoryBuilder_ == null) {
return failoverHistory_.get(index); } else {
return failoverHistoryBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
* Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
* states to ensure that the list does not grow unbounded.
*
*
* repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
*/
public java.util.List
getFailoverHistoryBuilderList() {
return getFailoverHistoryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.replication.v1.FailoverStatus, io.temporal.api.replication.v1.FailoverStatus.Builder, io.temporal.api.replication.v1.FailoverStatusOrBuilder>
getFailoverHistoryFieldBuilder() {
if (failoverHistoryBuilder_ == null) {
failoverHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.replication.v1.FailoverStatus, io.temporal.api.replication.v1.FailoverStatus.Builder, io.temporal.api.replication.v1.FailoverStatusOrBuilder>(
failoverHistory_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
failoverHistory_ = null;
}
return failoverHistoryBuilder_;
}
@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.workflowservice.v1.DescribeNamespaceResponse)
}
// @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNamespaceResponse)
private static final io.temporal.api.workflowservice.v1.DescribeNamespaceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.DescribeNamespaceResponse();
}
public static io.temporal.api.workflowservice.v1.DescribeNamespaceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DescribeNamespaceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DescribeNamespaceResponse(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.workflowservice.v1.DescribeNamespaceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}