com.salesforce.eventbus.protobuf.TopicInfo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pubsub_api.proto
package com.salesforce.eventbus.protobuf;
/**
*
*
* Contains information about a topic and uniquely identifies it. TopicInfo is returned by the GetTopic RPC method.
*
*
* Protobuf type {@code eventbus.v1.TopicInfo}
*/
public final class TopicInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:eventbus.v1.TopicInfo)
TopicInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicInfo.newBuilder() to construct.
private TopicInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopicInfo() {
topicName_ = "";
tenantGuid_ = "";
schemaId_ = "";
rpcId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_TopicInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_TopicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.eventbus.protobuf.TopicInfo.class, com.salesforce.eventbus.protobuf.TopicInfo.Builder.class);
}
public static final int TOPIC_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object topicName_ = "";
/**
*
* Topic name
*
*
* string topic_name = 1;
* @return The topicName.
*/
@java.lang.Override
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
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();
topicName_ = s;
return s;
}
}
/**
*
* Topic name
*
*
* string topic_name = 1;
* @return The bytes for topicName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TENANT_GUID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object tenantGuid_ = "";
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @return The tenantGuid.
*/
@java.lang.Override
public java.lang.String getTenantGuid() {
java.lang.Object ref = tenantGuid_;
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();
tenantGuid_ = s;
return s;
}
}
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @return The bytes for tenantGuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTenantGuidBytes() {
java.lang.Object ref = tenantGuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenantGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAN_PUBLISH_FIELD_NUMBER = 3;
private boolean canPublish_ = false;
/**
*
* Is publishing allowed?
*
*
* bool can_publish = 3;
* @return The canPublish.
*/
@java.lang.Override
public boolean getCanPublish() {
return canPublish_;
}
public static final int CAN_SUBSCRIBE_FIELD_NUMBER = 4;
private boolean canSubscribe_ = false;
/**
*
* Is subscription allowed?
*
*
* bool can_subscribe = 4;
* @return The canSubscribe.
*/
@java.lang.Override
public boolean getCanSubscribe() {
return canSubscribe_;
}
public static final int SCHEMA_ID_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object schemaId_ = "";
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @return The schemaId.
*/
@java.lang.Override
public java.lang.String getSchemaId() {
java.lang.Object ref = schemaId_;
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();
schemaId_ = s;
return s;
}
}
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @return The bytes for schemaId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchemaIdBytes() {
java.lang.Object ref = schemaId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RPC_ID_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object rpcId_ = "";
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @return The rpcId.
*/
@java.lang.Override
public java.lang.String getRpcId() {
java.lang.Object ref = rpcId_;
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();
rpcId_ = s;
return s;
}
}
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @return The bytes for rpcId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRpcIdBytes() {
java.lang.Object ref = rpcId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rpcId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(topicName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantGuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tenantGuid_);
}
if (canPublish_ != false) {
output.writeBool(3, canPublish_);
}
if (canSubscribe_ != false) {
output.writeBool(4, canSubscribe_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, schemaId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rpcId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, rpcId_);
}
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(topicName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantGuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tenantGuid_);
}
if (canPublish_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, canPublish_);
}
if (canSubscribe_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, canSubscribe_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, schemaId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rpcId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, rpcId_);
}
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 com.salesforce.eventbus.protobuf.TopicInfo)) {
return super.equals(obj);
}
com.salesforce.eventbus.protobuf.TopicInfo other = (com.salesforce.eventbus.protobuf.TopicInfo) obj;
if (!getTopicName()
.equals(other.getTopicName())) return false;
if (!getTenantGuid()
.equals(other.getTenantGuid())) return false;
if (getCanPublish()
!= other.getCanPublish()) return false;
if (getCanSubscribe()
!= other.getCanSubscribe()) return false;
if (!getSchemaId()
.equals(other.getSchemaId())) return false;
if (!getRpcId()
.equals(other.getRpcId())) 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) + TOPIC_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTopicName().hashCode();
hash = (37 * hash) + TENANT_GUID_FIELD_NUMBER;
hash = (53 * hash) + getTenantGuid().hashCode();
hash = (37 * hash) + CAN_PUBLISH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanPublish());
hash = (37 * hash) + CAN_SUBSCRIBE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanSubscribe());
hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER;
hash = (53 * hash) + getSchemaId().hashCode();
hash = (37 * hash) + RPC_ID_FIELD_NUMBER;
hash = (53 * hash) + getRpcId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.eventbus.protobuf.TopicInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.eventbus.protobuf.TopicInfo 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 com.salesforce.eventbus.protobuf.TopicInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.salesforce.eventbus.protobuf.TopicInfo 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 com.salesforce.eventbus.protobuf.TopicInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.eventbus.protobuf.TopicInfo 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(com.salesforce.eventbus.protobuf.TopicInfo 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;
}
/**
*
*
* Contains information about a topic and uniquely identifies it. TopicInfo is returned by the GetTopic RPC method.
*
*
* Protobuf type {@code eventbus.v1.TopicInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:eventbus.v1.TopicInfo)
com.salesforce.eventbus.protobuf.TopicInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_TopicInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_TopicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.eventbus.protobuf.TopicInfo.class, com.salesforce.eventbus.protobuf.TopicInfo.Builder.class);
}
// Construct using com.salesforce.eventbus.protobuf.TopicInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
topicName_ = "";
tenantGuid_ = "";
canPublish_ = false;
canSubscribe_ = false;
schemaId_ = "";
rpcId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_TopicInfo_descriptor;
}
@java.lang.Override
public com.salesforce.eventbus.protobuf.TopicInfo getDefaultInstanceForType() {
return com.salesforce.eventbus.protobuf.TopicInfo.getDefaultInstance();
}
@java.lang.Override
public com.salesforce.eventbus.protobuf.TopicInfo build() {
com.salesforce.eventbus.protobuf.TopicInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.salesforce.eventbus.protobuf.TopicInfo buildPartial() {
com.salesforce.eventbus.protobuf.TopicInfo result = new com.salesforce.eventbus.protobuf.TopicInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.salesforce.eventbus.protobuf.TopicInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.topicName_ = topicName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tenantGuid_ = tenantGuid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.canPublish_ = canPublish_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.canSubscribe_ = canSubscribe_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.schemaId_ = schemaId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.rpcId_ = rpcId_;
}
}
@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 com.salesforce.eventbus.protobuf.TopicInfo) {
return mergeFrom((com.salesforce.eventbus.protobuf.TopicInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.salesforce.eventbus.protobuf.TopicInfo other) {
if (other == com.salesforce.eventbus.protobuf.TopicInfo.getDefaultInstance()) return this;
if (!other.getTopicName().isEmpty()) {
topicName_ = other.topicName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getTenantGuid().isEmpty()) {
tenantGuid_ = other.tenantGuid_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getCanPublish() != false) {
setCanPublish(other.getCanPublish());
}
if (other.getCanSubscribe() != false) {
setCanSubscribe(other.getCanSubscribe());
}
if (!other.getSchemaId().isEmpty()) {
schemaId_ = other.schemaId_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getRpcId().isEmpty()) {
rpcId_ = other.rpcId_;
bitField0_ |= 0x00000020;
onChanged();
}
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: {
topicName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
tenantGuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
canPublish_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
canSubscribe_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
schemaId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
rpcId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
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 topicName_ = "";
/**
*
* Topic name
*
*
* string topic_name = 1;
* @return The topicName.
*/
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
topicName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Topic name
*
*
* string topic_name = 1;
* @return The bytes for topicName.
*/
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Topic name
*
*
* string topic_name = 1;
* @param value The topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
topicName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Topic name
*
*
* string topic_name = 1;
* @return This builder for chaining.
*/
public Builder clearTopicName() {
topicName_ = getDefaultInstance().getTopicName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Topic name
*
*
* string topic_name = 1;
* @param value The bytes for topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
topicName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object tenantGuid_ = "";
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @return The tenantGuid.
*/
public java.lang.String getTenantGuid() {
java.lang.Object ref = tenantGuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tenantGuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @return The bytes for tenantGuid.
*/
public com.google.protobuf.ByteString
getTenantGuidBytes() {
java.lang.Object ref = tenantGuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenantGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @param value The tenantGuid to set.
* @return This builder for chaining.
*/
public Builder setTenantGuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
tenantGuid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @return This builder for chaining.
*/
public Builder clearTenantGuid() {
tenantGuid_ = getDefaultInstance().getTenantGuid();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Tenant/org GUID
*
*
* string tenant_guid = 2;
* @param value The bytes for tenantGuid to set.
* @return This builder for chaining.
*/
public Builder setTenantGuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
tenantGuid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean canPublish_ ;
/**
*
* Is publishing allowed?
*
*
* bool can_publish = 3;
* @return The canPublish.
*/
@java.lang.Override
public boolean getCanPublish() {
return canPublish_;
}
/**
*
* Is publishing allowed?
*
*
* bool can_publish = 3;
* @param value The canPublish to set.
* @return This builder for chaining.
*/
public Builder setCanPublish(boolean value) {
canPublish_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Is publishing allowed?
*
*
* bool can_publish = 3;
* @return This builder for chaining.
*/
public Builder clearCanPublish() {
bitField0_ = (bitField0_ & ~0x00000004);
canPublish_ = false;
onChanged();
return this;
}
private boolean canSubscribe_ ;
/**
*
* Is subscription allowed?
*
*
* bool can_subscribe = 4;
* @return The canSubscribe.
*/
@java.lang.Override
public boolean getCanSubscribe() {
return canSubscribe_;
}
/**
*
* Is subscription allowed?
*
*
* bool can_subscribe = 4;
* @param value The canSubscribe to set.
* @return This builder for chaining.
*/
public Builder setCanSubscribe(boolean value) {
canSubscribe_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Is subscription allowed?
*
*
* bool can_subscribe = 4;
* @return This builder for chaining.
*/
public Builder clearCanSubscribe() {
bitField0_ = (bitField0_ & ~0x00000008);
canSubscribe_ = false;
onChanged();
return this;
}
private java.lang.Object schemaId_ = "";
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @return The schemaId.
*/
public java.lang.String getSchemaId() {
java.lang.Object ref = schemaId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schemaId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @return The bytes for schemaId.
*/
public com.google.protobuf.ByteString
getSchemaIdBytes() {
java.lang.Object ref = schemaId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @param value The schemaId to set.
* @return This builder for chaining.
*/
public Builder setSchemaId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
schemaId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @return This builder for chaining.
*/
public Builder clearSchemaId() {
schemaId_ = getDefaultInstance().getSchemaId();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* ID of the current topic schema, which can be used for
* publishing of generically serialized events.
*
*
* string schema_id = 5;
* @param value The bytes for schemaId to set.
* @return This builder for chaining.
*/
public Builder setSchemaIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
schemaId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object rpcId_ = "";
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @return The rpcId.
*/
public java.lang.String getRpcId() {
java.lang.Object ref = rpcId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rpcId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @return The bytes for rpcId.
*/
public com.google.protobuf.ByteString
getRpcIdBytes() {
java.lang.Object ref = rpcId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rpcId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @param value The rpcId to set.
* @return This builder for chaining.
*/
public Builder setRpcId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rpcId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @return This builder for chaining.
*/
public Builder clearRpcId() {
rpcId_ = getDefaultInstance().getRpcId();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* RPC ID used to trace errors.
*
*
* string rpc_id = 6;
* @param value The bytes for rpcId to set.
* @return This builder for chaining.
*/
public Builder setRpcIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rpcId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:eventbus.v1.TopicInfo)
}
// @@protoc_insertion_point(class_scope:eventbus.v1.TopicInfo)
private static final com.salesforce.eventbus.protobuf.TopicInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.salesforce.eventbus.protobuf.TopicInfo();
}
public static com.salesforce.eventbus.protobuf.TopicInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicInfo 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 com.salesforce.eventbus.protobuf.TopicInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy