grpc.cache_client.pubsub._TopicItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cachepubsub.proto
package grpc.cache_client.pubsub;
/**
*
* Your subscription has yielded an item you previously published. Here it is!
*
*
* Protobuf type {@code cache_client.pubsub._TopicItem}
*/
public final class _TopicItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cache_client.pubsub._TopicItem)
_TopicItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use _TopicItem.newBuilder() to construct.
private _TopicItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _TopicItem() {
publisherId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _TopicItem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__TopicItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__TopicItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client.pubsub._TopicItem.class, grpc.cache_client.pubsub._TopicItem.Builder.class);
}
private int bitField0_;
public static final int TOPIC_SEQUENCE_NUMBER_FIELD_NUMBER = 1;
private long topicSequenceNumber_ = 0L;
/**
*
* Topic sequence numbers are **best-effort** and **informational**.
* They are not transactional.
* They exist:
* * to help reconnect to an existing topic while trying to avoid missing items.
* * to facilitate richer monitoring and logging.
* * to provide a best-effort awareness of stream contiguity, or lack thereof,
* in case you need to know.
* You can safely ignore them if none of that matters to you!
*
*
* uint64 topic_sequence_number = 1;
* @return The topicSequenceNumber.
*/
@java.lang.Override
public long getTopicSequenceNumber() {
return topicSequenceNumber_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private grpc.cache_client.pubsub._TopicValue value_;
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
* @return The value.
*/
@java.lang.Override
public grpc.cache_client.pubsub._TopicValue getValue() {
return value_ == null ? grpc.cache_client.pubsub._TopicValue.getDefaultInstance() : value_;
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
@java.lang.Override
public grpc.cache_client.pubsub._TopicValueOrBuilder getValueOrBuilder() {
return value_ == null ? grpc.cache_client.pubsub._TopicValue.getDefaultInstance() : value_;
}
public static final int PUBLISHER_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object publisherId_ = "";
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @return The publisherId.
*/
@java.lang.Override
public java.lang.String getPublisherId() {
java.lang.Object ref = publisherId_;
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();
publisherId_ = s;
return s;
}
}
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @return The bytes for publisherId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPublisherIdBytes() {
java.lang.Object ref = publisherId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
publisherId_ = 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 (topicSequenceNumber_ != 0L) {
output.writeUInt64(1, topicSequenceNumber_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getValue());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisherId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publisherId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (topicSequenceNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, topicSequenceNumber_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisherId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publisherId_);
}
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 grpc.cache_client.pubsub._TopicItem)) {
return super.equals(obj);
}
grpc.cache_client.pubsub._TopicItem other = (grpc.cache_client.pubsub._TopicItem) obj;
if (getTopicSequenceNumber()
!= other.getTopicSequenceNumber()) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getPublisherId()
.equals(other.getPublisherId())) 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_SEQUENCE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTopicSequenceNumber());
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (37 * hash) + PUBLISHER_ID_FIELD_NUMBER;
hash = (53 * hash) + getPublisherId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.cache_client.pubsub._TopicItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client.pubsub._TopicItem 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 grpc.cache_client.pubsub._TopicItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.cache_client.pubsub._TopicItem 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 grpc.cache_client.pubsub._TopicItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.cache_client.pubsub._TopicItem 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(grpc.cache_client.pubsub._TopicItem 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;
}
/**
*
* Your subscription has yielded an item you previously published. Here it is!
*
*
* Protobuf type {@code cache_client.pubsub._TopicItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cache_client.pubsub._TopicItem)
grpc.cache_client.pubsub._TopicItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__TopicItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__TopicItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.cache_client.pubsub._TopicItem.class, grpc.cache_client.pubsub._TopicItem.Builder.class);
}
// Construct using grpc.cache_client.pubsub._TopicItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
topicSequenceNumber_ = 0L;
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
publisherId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__TopicItem_descriptor;
}
@java.lang.Override
public grpc.cache_client.pubsub._TopicItem getDefaultInstanceForType() {
return grpc.cache_client.pubsub._TopicItem.getDefaultInstance();
}
@java.lang.Override
public grpc.cache_client.pubsub._TopicItem build() {
grpc.cache_client.pubsub._TopicItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.cache_client.pubsub._TopicItem buildPartial() {
grpc.cache_client.pubsub._TopicItem result = new grpc.cache_client.pubsub._TopicItem(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.cache_client.pubsub._TopicItem result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.topicSequenceNumber_ = topicSequenceNumber_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.publisherId_ = publisherId_;
}
result.bitField0_ |= to_bitField0_;
}
@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 grpc.cache_client.pubsub._TopicItem) {
return mergeFrom((grpc.cache_client.pubsub._TopicItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.cache_client.pubsub._TopicItem other) {
if (other == grpc.cache_client.pubsub._TopicItem.getDefaultInstance()) return this;
if (other.getTopicSequenceNumber() != 0L) {
setTopicSequenceNumber(other.getTopicSequenceNumber());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (!other.getPublisherId().isEmpty()) {
publisherId_ = other.publisherId_;
bitField0_ |= 0x00000004;
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 8: {
topicSequenceNumber_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
publisherId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 long topicSequenceNumber_ ;
/**
*
* Topic sequence numbers are **best-effort** and **informational**.
* They are not transactional.
* They exist:
* * to help reconnect to an existing topic while trying to avoid missing items.
* * to facilitate richer monitoring and logging.
* * to provide a best-effort awareness of stream contiguity, or lack thereof,
* in case you need to know.
* You can safely ignore them if none of that matters to you!
*
*
* uint64 topic_sequence_number = 1;
* @return The topicSequenceNumber.
*/
@java.lang.Override
public long getTopicSequenceNumber() {
return topicSequenceNumber_;
}
/**
*
* Topic sequence numbers are **best-effort** and **informational**.
* They are not transactional.
* They exist:
* * to help reconnect to an existing topic while trying to avoid missing items.
* * to facilitate richer monitoring and logging.
* * to provide a best-effort awareness of stream contiguity, or lack thereof,
* in case you need to know.
* You can safely ignore them if none of that matters to you!
*
*
* uint64 topic_sequence_number = 1;
* @param value The topicSequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setTopicSequenceNumber(long value) {
topicSequenceNumber_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Topic sequence numbers are **best-effort** and **informational**.
* They are not transactional.
* They exist:
* * to help reconnect to an existing topic while trying to avoid missing items.
* * to facilitate richer monitoring and logging.
* * to provide a best-effort awareness of stream contiguity, or lack thereof,
* in case you need to know.
* You can safely ignore them if none of that matters to you!
*
*
* uint64 topic_sequence_number = 1;
* @return This builder for chaining.
*/
public Builder clearTopicSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000001);
topicSequenceNumber_ = 0L;
onChanged();
return this;
}
private grpc.cache_client.pubsub._TopicValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client.pubsub._TopicValue, grpc.cache_client.pubsub._TopicValue.Builder, grpc.cache_client.pubsub._TopicValueOrBuilder> valueBuilder_;
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
* @return The value.
*/
public grpc.cache_client.pubsub._TopicValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? grpc.cache_client.pubsub._TopicValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public Builder setValue(grpc.cache_client.pubsub._TopicValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public Builder setValue(
grpc.cache_client.pubsub._TopicValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public Builder mergeValue(grpc.cache_client.pubsub._TopicValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != grpc.cache_client.pubsub._TopicValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public grpc.cache_client.pubsub._TopicValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
public grpc.cache_client.pubsub._TopicValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
grpc.cache_client.pubsub._TopicValue.getDefaultInstance() : value_;
}
}
/**
*
* The value you previously published to this topic.
*
*
* .cache_client.pubsub._TopicValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client.pubsub._TopicValue, grpc.cache_client.pubsub._TopicValue.Builder, grpc.cache_client.pubsub._TopicValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.cache_client.pubsub._TopicValue, grpc.cache_client.pubsub._TopicValue.Builder, grpc.cache_client.pubsub._TopicValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
private java.lang.Object publisherId_ = "";
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @return The publisherId.
*/
public java.lang.String getPublisherId() {
java.lang.Object ref = publisherId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
publisherId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @return The bytes for publisherId.
*/
public com.google.protobuf.ByteString
getPublisherIdBytes() {
java.lang.Object ref = publisherId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
publisherId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @param value The publisherId to set.
* @return This builder for chaining.
*/
public Builder setPublisherId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
publisherId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @return This builder for chaining.
*/
public Builder clearPublisherId() {
publisherId_ = getDefaultInstance().getPublisherId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Authenticated id from Publisher's disposable token
*
*
* string publisher_id = 3;
* @param value The bytes for publisherId to set.
* @return This builder for chaining.
*/
public Builder setPublisherIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
publisherId_ = value;
bitField0_ |= 0x00000004;
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:cache_client.pubsub._TopicItem)
}
// @@protoc_insertion_point(class_scope:cache_client.pubsub._TopicItem)
private static final grpc.cache_client.pubsub._TopicItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.cache_client.pubsub._TopicItem();
}
public static grpc.cache_client.pubsub._TopicItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_TopicItem>
PARSER = new com.google.protobuf.AbstractParser<_TopicItem>() {
@java.lang.Override
public _TopicItem 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<_TopicItem> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_TopicItem> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.cache_client.pubsub._TopicItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}