org.finos.tracdap.api.PlatformInfoResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracdap-api-services Show documentation
Show all versions of tracdap-api-services Show documentation
TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tracdap/api/metadata.proto
// Protobuf Java Version: 3.25.3
package org.finos.tracdap.api;
/**
*
**
* Response object for the platformInfo() API call.
*
* Contains some general information about the TRAC platform.
*
*
* Protobuf type {@code tracdap.api.PlatformInfoResponse}
*/
public final class PlatformInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tracdap.api.PlatformInfoResponse)
PlatformInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PlatformInfoResponse.newBuilder() to construct.
private PlatformInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PlatformInfoResponse() {
tracVersion_ = "";
environment_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PlatformInfoResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetDeploymentInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.PlatformInfoResponse.class, org.finos.tracdap.api.PlatformInfoResponse.Builder.class);
}
public static final int TRACVERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object tracVersion_ = "";
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @return The tracVersion.
*/
@java.lang.Override
public java.lang.String getTracVersion() {
java.lang.Object ref = tracVersion_;
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();
tracVersion_ = s;
return s;
}
}
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @return The bytes for tracVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTracVersionBytes() {
java.lang.Object ref = tracVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tracVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENVIRONMENT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object environment_ = "";
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @return The environment.
*/
@java.lang.Override
public java.lang.String getEnvironment() {
java.lang.Object ref = environment_;
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();
environment_ = s;
return s;
}
}
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @return The bytes for environment.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnvironmentBytes() {
java.lang.Object ref = environment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCTION_FIELD_NUMBER = 3;
private boolean production_ = false;
/**
*
** Flag indicating whether the current environment is a production environment or not. *
*
*
* bool production = 3;
* @return The production.
*/
@java.lang.Override
public boolean getProduction() {
return production_;
}
public static final int DEPLOYMENTINFO_FIELD_NUMBER = 4;
private static final class DeploymentInfoDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_DeploymentInfoEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> deploymentInfo_;
private com.google.protobuf.MapField
internalGetDeploymentInfo() {
if (deploymentInfo_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DeploymentInfoDefaultEntryHolder.defaultEntry);
}
return deploymentInfo_;
}
public int getDeploymentInfoCount() {
return internalGetDeploymentInfo().getMap().size();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public boolean containsDeploymentInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetDeploymentInfo().getMap().containsKey(key);
}
/**
* Use {@link #getDeploymentInfoMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDeploymentInfo() {
return getDeploymentInfoMap();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public java.util.Map getDeploymentInfoMap() {
return internalGetDeploymentInfo().getMap();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public /* nullable */
java.lang.String getDeploymentInfoOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetDeploymentInfo().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public java.lang.String getDeploymentInfoOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetDeploymentInfo().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tracVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tracVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_);
}
if (production_ != false) {
output.writeBool(3, production_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetDeploymentInfo(),
DeploymentInfoDefaultEntryHolder.defaultEntry,
4);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tracVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tracVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_);
}
if (production_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, production_);
}
for (java.util.Map.Entry entry
: internalGetDeploymentInfo().getMap().entrySet()) {
com.google.protobuf.MapEntry
deploymentInfo__ = DeploymentInfoDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, deploymentInfo__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.finos.tracdap.api.PlatformInfoResponse)) {
return super.equals(obj);
}
org.finos.tracdap.api.PlatformInfoResponse other = (org.finos.tracdap.api.PlatformInfoResponse) obj;
if (!getTracVersion()
.equals(other.getTracVersion())) return false;
if (!getEnvironment()
.equals(other.getEnvironment())) return false;
if (getProduction()
!= other.getProduction()) return false;
if (!internalGetDeploymentInfo().equals(
other.internalGetDeploymentInfo())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TRACVERSION_FIELD_NUMBER;
hash = (53 * hash) + getTracVersion().hashCode();
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + getEnvironment().hashCode();
hash = (37 * hash) + PRODUCTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getProduction());
if (!internalGetDeploymentInfo().getMap().isEmpty()) {
hash = (37 * hash) + DEPLOYMENTINFO_FIELD_NUMBER;
hash = (53 * hash) + internalGetDeploymentInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.PlatformInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.PlatformInfoResponse 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 org.finos.tracdap.api.PlatformInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.PlatformInfoResponse 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 org.finos.tracdap.api.PlatformInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.PlatformInfoResponse 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(org.finos.tracdap.api.PlatformInfoResponse 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;
}
/**
*
**
* Response object for the platformInfo() API call.
*
* Contains some general information about the TRAC platform.
*
*
* Protobuf type {@code tracdap.api.PlatformInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.api.PlatformInfoResponse)
org.finos.tracdap.api.PlatformInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetDeploymentInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableDeploymentInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.PlatformInfoResponse.class, org.finos.tracdap.api.PlatformInfoResponse.Builder.class);
}
// Construct using org.finos.tracdap.api.PlatformInfoResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tracVersion_ = "";
environment_ = "";
production_ = false;
internalGetMutableDeploymentInfo().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_PlatformInfoResponse_descriptor;
}
@java.lang.Override
public org.finos.tracdap.api.PlatformInfoResponse getDefaultInstanceForType() {
return org.finos.tracdap.api.PlatformInfoResponse.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.api.PlatformInfoResponse build() {
org.finos.tracdap.api.PlatformInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.api.PlatformInfoResponse buildPartial() {
org.finos.tracdap.api.PlatformInfoResponse result = new org.finos.tracdap.api.PlatformInfoResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.finos.tracdap.api.PlatformInfoResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tracVersion_ = tracVersion_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.environment_ = environment_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.production_ = production_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.deploymentInfo_ = internalGetDeploymentInfo();
result.deploymentInfo_.makeImmutable();
}
}
@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 org.finos.tracdap.api.PlatformInfoResponse) {
return mergeFrom((org.finos.tracdap.api.PlatformInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.api.PlatformInfoResponse other) {
if (other == org.finos.tracdap.api.PlatformInfoResponse.getDefaultInstance()) return this;
if (!other.getTracVersion().isEmpty()) {
tracVersion_ = other.tracVersion_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getProduction() != false) {
setProduction(other.getProduction());
}
internalGetMutableDeploymentInfo().mergeFrom(
other.internalGetDeploymentInfo());
bitField0_ |= 0x00000008;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tracVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
environment_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
production_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
com.google.protobuf.MapEntry
deploymentInfo__ = input.readMessage(
DeploymentInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableDeploymentInfo().getMutableMap().put(
deploymentInfo__.getKey(), deploymentInfo__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object tracVersion_ = "";
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @return The tracVersion.
*/
public java.lang.String getTracVersion() {
java.lang.Object ref = tracVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tracVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @return The bytes for tracVersion.
*/
public com.google.protobuf.ByteString
getTracVersionBytes() {
java.lang.Object ref = tracVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tracVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @param value The tracVersion to set.
* @return This builder for chaining.
*/
public Builder setTracVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
tracVersion_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @return This builder for chaining.
*/
public Builder clearTracVersion() {
tracVersion_ = getDefaultInstance().getTracVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** Version string for the version of TRAC currently deployed in the platform. *
*
*
* string tracVersion = 1;
* @param value The bytes for tracVersion to set.
* @return This builder for chaining.
*/
public Builder setTracVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
tracVersion_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object environment_ = "";
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @return The environment.
*/
public java.lang.String getEnvironment() {
java.lang.Object ref = environment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
environment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @return The bytes for environment.
*/
public com.google.protobuf.ByteString
getEnvironmentBytes() {
java.lang.Object ref = environment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
environment_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
environment_ = getDefaultInstance().getEnvironment();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** Name of the current TRAC environment.
*
*
* string environment = 2;
* @param value The bytes for environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
environment_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean production_ ;
/**
*
** Flag indicating whether the current environment is a production environment or not. *
*
*
* bool production = 3;
* @return The production.
*/
@java.lang.Override
public boolean getProduction() {
return production_;
}
/**
*
** Flag indicating whether the current environment is a production environment or not. *
*
*
* bool production = 3;
* @param value The production to set.
* @return This builder for chaining.
*/
public Builder setProduction(boolean value) {
production_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** Flag indicating whether the current environment is a production environment or not. *
*
*
* bool production = 3;
* @return This builder for chaining.
*/
public Builder clearProduction() {
bitField0_ = (bitField0_ & ~0x00000004);
production_ = false;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> deploymentInfo_;
private com.google.protobuf.MapField
internalGetDeploymentInfo() {
if (deploymentInfo_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DeploymentInfoDefaultEntryHolder.defaultEntry);
}
return deploymentInfo_;
}
private com.google.protobuf.MapField
internalGetMutableDeploymentInfo() {
if (deploymentInfo_ == null) {
deploymentInfo_ = com.google.protobuf.MapField.newMapField(
DeploymentInfoDefaultEntryHolder.defaultEntry);
}
if (!deploymentInfo_.isMutable()) {
deploymentInfo_ = deploymentInfo_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return deploymentInfo_;
}
public int getDeploymentInfoCount() {
return internalGetDeploymentInfo().getMap().size();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public boolean containsDeploymentInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetDeploymentInfo().getMap().containsKey(key);
}
/**
* Use {@link #getDeploymentInfoMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDeploymentInfo() {
return getDeploymentInfoMap();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public java.util.Map getDeploymentInfoMap() {
return internalGetDeploymentInfo().getMap();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public /* nullable */
java.lang.String getDeploymentInfoOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetDeploymentInfo().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
@java.lang.Override
public java.lang.String getDeploymentInfoOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetDeploymentInfo().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDeploymentInfo() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableDeploymentInfo().getMutableMap()
.clear();
return this;
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
public Builder removeDeploymentInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableDeploymentInfo().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableDeploymentInfo() {
bitField0_ |= 0x00000008;
return internalGetMutableDeploymentInfo().getMutableMap();
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
public Builder putDeploymentInfo(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableDeploymentInfo().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
**
* Additional information about the current TRAC environment.
*
* The particular information relevant to a deployment of TRAC can vary between organizations.
* Useful information might include: region, business division, brand etc.
* This information is optional and may not be present for smaller deployments.
*
*
* map<string, string> deploymentInfo = 4;
*/
public Builder putAllDeploymentInfo(
java.util.Map values) {
internalGetMutableDeploymentInfo().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000008;
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:tracdap.api.PlatformInfoResponse)
}
// @@protoc_insertion_point(class_scope:tracdap.api.PlatformInfoResponse)
private static final org.finos.tracdap.api.PlatformInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.api.PlatformInfoResponse();
}
public static org.finos.tracdap.api.PlatformInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PlatformInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.finos.tracdap.api.PlatformInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}