org.aiflow.notification.proto.NotificationServiceOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notification-client Show documentation
Show all versions of notification-client Show documentation
A java client for AIFlow notification service.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: notification_service.proto
package org.aiflow.notification.proto;
public final class NotificationServiceOuterClass {
private NotificationServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code notification_service.ReturnStatus}
*/
public enum ReturnStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* ERROR = 1;
*/
ERROR(1),
UNRECOGNIZED(-1),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* ERROR = 1;
*/
public static final int ERROR_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ReturnStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ReturnStatus forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ReturnStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ReturnStatus findValueByNumber(int number) {
return ReturnStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return NotificationServiceOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final ReturnStatus[] VALUES = values();
public static ReturnStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ReturnStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:notification_service.ReturnStatus)
}
public interface EventProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.EventProto)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
* string value = 2;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* string event_type = 3;
* @return The eventType.
*/
java.lang.String getEventType();
/**
* string event_type = 3;
* @return The bytes for eventType.
*/
com.google.protobuf.ByteString
getEventTypeBytes();
/**
* string context = 4;
* @return The context.
*/
java.lang.String getContext();
/**
* string context = 4;
* @return The bytes for context.
*/
com.google.protobuf.ByteString
getContextBytes();
/**
* string namespace = 5;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 5;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* int64 version = 6;
* @return The version.
*/
long getVersion();
/**
* int64 create_time = 7;
* @return The createTime.
*/
long getCreateTime();
/**
* string sender = 8;
* @return The sender.
*/
java.lang.String getSender();
/**
* string sender = 8;
* @return The bytes for sender.
*/
com.google.protobuf.ByteString
getSenderBytes();
}
/**
* Protobuf type {@code notification_service.EventProto}
*/
public static final class EventProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.EventProto)
EventProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventProto.newBuilder() to construct.
private EventProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventProto() {
key_ = "";
value_ = "";
eventType_ = "";
context_ = "";
namespace_ = "";
sender_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
eventType_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
context_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
break;
}
case 48: {
version_ = input.readInt64();
break;
}
case 56: {
createTime_ = input.readInt64();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
sender_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_EventProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_EventProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.EventProto.class, NotificationServiceOuterClass.EventProto.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object eventType_;
/**
* string event_type = 3;
* @return The eventType.
*/
@java.lang.Override
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
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();
eventType_ = s;
return s;
}
}
/**
* string event_type = 3;
* @return The bytes for eventType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTEXT_FIELD_NUMBER = 4;
private volatile java.lang.Object context_;
/**
* string context = 4;
* @return The context.
*/
@java.lang.Override
public java.lang.String getContext() {
java.lang.Object ref = context_;
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();
context_ = s;
return s;
}
}
/**
* string context = 4;
* @return The bytes for context.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 5;
private volatile java.lang.Object namespace_;
/**
* string namespace = 5;
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* string namespace = 5;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 6;
private long version_;
/**
* int64 version = 6;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
public static final int CREATE_TIME_FIELD_NUMBER = 7;
private long createTime_;
/**
* int64 create_time = 7;
* @return The createTime.
*/
@java.lang.Override
public long getCreateTime() {
return createTime_;
}
public static final int SENDER_FIELD_NUMBER = 8;
private volatile java.lang.Object sender_;
/**
* string sender = 8;
* @return The sender.
*/
@java.lang.Override
public java.lang.String getSender() {
java.lang.Object ref = sender_;
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();
sender_ = s;
return s;
}
}
/**
* string sender = 8;
* @return The bytes for sender.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = 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 (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
if (!getEventTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventType_);
}
if (!getContextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, context_);
}
if (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_);
}
if (version_ != 0L) {
output.writeInt64(6, version_);
}
if (createTime_ != 0L) {
output.writeInt64(7, createTime_);
}
if (!getSenderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sender_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
if (!getEventTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_);
}
if (!getContextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, context_);
}
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_);
}
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, version_);
}
if (createTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, createTime_);
}
if (!getSenderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sender_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.EventProto)) {
return super.equals(obj);
}
NotificationServiceOuterClass.EventProto other = (NotificationServiceOuterClass.EventProto) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getEventType()
.equals(other.getEventType())) return false;
if (!getContext()
.equals(other.getContext())) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (getVersion()
!= other.getVersion()) return false;
if (getCreateTime()
!= other.getCreateTime()) return false;
if (!getSender()
.equals(other.getSender())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventType().hashCode();
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreateTime());
hash = (37 * hash) + SENDER_FIELD_NUMBER;
hash = (53 * hash) + getSender().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.EventProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.EventProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.EventProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.EventProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.EventProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.EventProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.EventProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.EventProto 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 NotificationServiceOuterClass.EventProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.EventProto 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 NotificationServiceOuterClass.EventProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.EventProto 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(NotificationServiceOuterClass.EventProto 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;
}
/**
* Protobuf type {@code notification_service.EventProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.EventProto)
NotificationServiceOuterClass.EventProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_EventProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_EventProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.EventProto.class, NotificationServiceOuterClass.EventProto.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.EventProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
value_ = "";
eventType_ = "";
context_ = "";
namespace_ = "";
version_ = 0L;
createTime_ = 0L;
sender_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_EventProto_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.EventProto getDefaultInstanceForType() {
return NotificationServiceOuterClass.EventProto.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.EventProto build() {
NotificationServiceOuterClass.EventProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.EventProto buildPartial() {
NotificationServiceOuterClass.EventProto result = new NotificationServiceOuterClass.EventProto(this);
result.key_ = key_;
result.value_ = value_;
result.eventType_ = eventType_;
result.context_ = context_;
result.namespace_ = namespace_;
result.version_ = version_;
result.createTime_ = createTime_;
result.sender_ = sender_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.EventProto) {
return mergeFrom((NotificationServiceOuterClass.EventProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.EventProto other) {
if (other == NotificationServiceOuterClass.EventProto.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
if (!other.getEventType().isEmpty()) {
eventType_ = other.eventType_;
onChanged();
}
if (!other.getContext().isEmpty()) {
context_ = other.context_;
onChanged();
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.getCreateTime() != 0L) {
setCreateTime(other.getCreateTime());
}
if (!other.getSender().isEmpty()) {
sender_ = other.sender_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.EventProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.EventProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
private java.lang.Object eventType_ = "";
/**
* string event_type = 3;
* @return The eventType.
*/
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string event_type = 3;
* @return The bytes for eventType.
*/
public com.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string event_type = 3;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value;
onChanged();
return this;
}
/**
* string event_type = 3;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = getDefaultInstance().getEventType();
onChanged();
return this;
}
/**
* string event_type = 3;
* @param value The bytes for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventType_ = value;
onChanged();
return this;
}
private java.lang.Object context_ = "";
/**
* string context = 4;
* @return The context.
*/
public java.lang.String getContext() {
java.lang.Object ref = context_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
context_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string context = 4;
* @return The bytes for context.
*/
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string context = 4;
* @param value The context to set.
* @return This builder for chaining.
*/
public Builder setContext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
return this;
}
/**
* string context = 4;
* @return This builder for chaining.
*/
public Builder clearContext() {
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
/**
* string context = 4;
* @param value The bytes for context to set.
* @return This builder for chaining.
*/
public Builder setContextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
context_ = value;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 5;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 5;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 5;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 5;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 5;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private long version_ ;
/**
* int64 version = 6;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
* int64 version = 6;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* int64 version = 6;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private long createTime_ ;
/**
* int64 create_time = 7;
* @return The createTime.
*/
@java.lang.Override
public long getCreateTime() {
return createTime_;
}
/**
* int64 create_time = 7;
* @param value The createTime to set.
* @return This builder for chaining.
*/
public Builder setCreateTime(long value) {
createTime_ = value;
onChanged();
return this;
}
/**
* int64 create_time = 7;
* @return This builder for chaining.
*/
public Builder clearCreateTime() {
createTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object sender_ = "";
/**
* string sender = 8;
* @return The sender.
*/
public java.lang.String getSender() {
java.lang.Object ref = sender_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sender_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sender = 8;
* @return The bytes for sender.
*/
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sender = 8;
* @param value The sender to set.
* @return This builder for chaining.
*/
public Builder setSender(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sender_ = value;
onChanged();
return this;
}
/**
* string sender = 8;
* @return This builder for chaining.
*/
public Builder clearSender() {
sender_ = getDefaultInstance().getSender();
onChanged();
return this;
}
/**
* string sender = 8;
* @param value The bytes for sender to set.
* @return This builder for chaining.
*/
public Builder setSenderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sender_ = value;
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:notification_service.EventProto)
}
// @@protoc_insertion_point(class_scope:notification_service.EventProto)
private static final NotificationServiceOuterClass.EventProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.EventProto();
}
public static NotificationServiceOuterClass.EventProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventProto(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 NotificationServiceOuterClass.EventProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendEventRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.SendEventRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
boolean hasEvent();
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
NotificationServiceOuterClass.EventProto getEvent();
/**
* .notification_service.EventProto event = 1;
*/
NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder();
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
}
/**
* Protobuf type {@code notification_service.SendEventRequest}
*/
public static final class SendEventRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.SendEventRequest)
SendEventRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendEventRequest.newBuilder() to construct.
private SendEventRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendEventRequest() {
uuid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendEventRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendEventRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
NotificationServiceOuterClass.EventProto.Builder subBuilder = null;
if (event_ != null) {
subBuilder = event_.toBuilder();
}
event_ = input.readMessage(NotificationServiceOuterClass.EventProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(event_);
event_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
uuid_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.SendEventRequest.class, NotificationServiceOuterClass.SendEventRequest.Builder.class);
}
public static final int EVENT_FIELD_NUMBER = 1;
private NotificationServiceOuterClass.EventProto event_;
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
@java.lang.Override
public boolean hasEvent() {
return event_ != null;
}
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProto getEvent() {
return event_ == null ? NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
}
/**
* .notification_service.EventProto event = 1;
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder() {
return getEvent();
}
public static final int UUID_FIELD_NUMBER = 2;
private volatile java.lang.Object uuid_;
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = 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 (event_ != null) {
output.writeMessage(1, getEvent());
}
if (!getUuidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (event_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (!getUuidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.SendEventRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.SendEventRequest other = (NotificationServiceOuterClass.SendEventRequest) obj;
if (hasEvent() != other.hasEvent()) return false;
if (hasEvent()) {
if (!getEvent()
.equals(other.getEvent())) return false;
}
if (!getUuid()
.equals(other.getUuid())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEvent()) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
}
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventRequest 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 NotificationServiceOuterClass.SendEventRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventRequest 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 NotificationServiceOuterClass.SendEventRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventRequest 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(NotificationServiceOuterClass.SendEventRequest 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;
}
/**
* Protobuf type {@code notification_service.SendEventRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.SendEventRequest)
NotificationServiceOuterClass.SendEventRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.SendEventRequest.class, NotificationServiceOuterClass.SendEventRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.SendEventRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventBuilder_ == null) {
event_ = null;
} else {
event_ = null;
eventBuilder_ = null;
}
uuid_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.SendEventRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventRequest build() {
NotificationServiceOuterClass.SendEventRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventRequest buildPartial() {
NotificationServiceOuterClass.SendEventRequest result = new NotificationServiceOuterClass.SendEventRequest(this);
if (eventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
result.uuid_ = uuid_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.SendEventRequest) {
return mergeFrom((NotificationServiceOuterClass.SendEventRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.SendEventRequest other) {
if (other == NotificationServiceOuterClass.SendEventRequest.getDefaultInstance()) return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.SendEventRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.SendEventRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private NotificationServiceOuterClass.EventProto event_;
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder> eventBuilder_;
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
public boolean hasEvent() {
return eventBuilder_ != null || event_ != null;
}
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
public NotificationServiceOuterClass.EventProto getEvent() {
if (eventBuilder_ == null) {
return event_ == null ? NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
} else {
return eventBuilder_.getMessage();
}
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder setEvent(NotificationServiceOuterClass.EventProto value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
eventBuilder_.setMessage(value);
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder setEvent(
NotificationServiceOuterClass.EventProto.Builder builderForValue) {
if (eventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
eventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder mergeEvent(NotificationServiceOuterClass.EventProto value) {
if (eventBuilder_ == null) {
if (event_ != null) {
event_ =
NotificationServiceOuterClass.EventProto.newBuilder(event_).mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
eventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = null;
onChanged();
} else {
event_ = null;
eventBuilder_ = null;
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public NotificationServiceOuterClass.EventProto.Builder getEventBuilder() {
onChanged();
return getEventFieldBuilder().getBuilder();
}
/**
* .notification_service.EventProto event = 1;
*/
public NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilder();
} else {
return event_ == null ?
NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
}
}
/**
* .notification_service.EventProto event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>(
getEvent(),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private java.lang.Object uuid_ = "";
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
/**
*
* use uuid to identify retry
*
*
* string uuid = 2;
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uuid_ = value;
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:notification_service.SendEventRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.SendEventRequest)
private static final NotificationServiceOuterClass.SendEventRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.SendEventRequest();
}
public static NotificationServiceOuterClass.SendEventRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendEventRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendEventRequest(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 NotificationServiceOuterClass.SendEventRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendEventsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.SendEventsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
boolean hasEvent();
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
NotificationServiceOuterClass.EventProto getEvent();
/**
* .notification_service.EventProto event = 1;
*/
NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder();
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The enum numeric value on the wire for returnCode.
*/
int getReturnCodeValue();
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The returnCode.
*/
NotificationServiceOuterClass.ReturnStatus getReturnCode();
/**
* string return_msg = 3;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 3;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
}
/**
* Protobuf type {@code notification_service.SendEventsResponse}
*/
public static final class SendEventsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.SendEventsResponse)
SendEventsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendEventsResponse.newBuilder() to construct.
private SendEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendEventsResponse() {
returnCode_ = 0;
returnMsg_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendEventsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendEventsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
NotificationServiceOuterClass.EventProto.Builder subBuilder = null;
if (event_ != null) {
subBuilder = event_.toBuilder();
}
event_ = input.readMessage(NotificationServiceOuterClass.EventProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(event_);
event_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
returnCode_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.SendEventsResponse.class, NotificationServiceOuterClass.SendEventsResponse.Builder.class);
}
public static final int EVENT_FIELD_NUMBER = 1;
private NotificationServiceOuterClass.EventProto event_;
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
@java.lang.Override
public boolean hasEvent() {
return event_ != null;
}
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProto getEvent() {
return event_ == null ? NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
}
/**
* .notification_service.EventProto event = 1;
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder() {
return getEvent();
}
public static final int RETURN_CODE_FIELD_NUMBER = 2;
private int returnCode_;
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The returnCode.
*/
@java.lang.Override public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
public static final int RETURN_MSG_FIELD_NUMBER = 3;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 3;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 3;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = 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 (event_ != null) {
output.writeMessage(1, getEvent());
}
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
output.writeEnum(2, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, returnMsg_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (event_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, returnMsg_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.SendEventsResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.SendEventsResponse other = (NotificationServiceOuterClass.SendEventsResponse) obj;
if (hasEvent() != other.hasEvent()) return false;
if (hasEvent()) {
if (!getEvent()
.equals(other.getEvent())) return false;
}
if (returnCode_ != other.returnCode_) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEvent()) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
}
hash = (37 * hash) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + returnCode_;
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.SendEventsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventsResponse 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 NotificationServiceOuterClass.SendEventsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventsResponse 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 NotificationServiceOuterClass.SendEventsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.SendEventsResponse 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(NotificationServiceOuterClass.SendEventsResponse 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;
}
/**
* Protobuf type {@code notification_service.SendEventsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.SendEventsResponse)
NotificationServiceOuterClass.SendEventsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.SendEventsResponse.class, NotificationServiceOuterClass.SendEventsResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.SendEventsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventBuilder_ == null) {
event_ = null;
} else {
event_ = null;
eventBuilder_ = null;
}
returnCode_ = 0;
returnMsg_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_SendEventsResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventsResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventsResponse build() {
NotificationServiceOuterClass.SendEventsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.SendEventsResponse buildPartial() {
NotificationServiceOuterClass.SendEventsResponse result = new NotificationServiceOuterClass.SendEventsResponse(this);
if (eventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.SendEventsResponse) {
return mergeFrom((NotificationServiceOuterClass.SendEventsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.SendEventsResponse other) {
if (other == NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance()) return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (other.returnCode_ != 0) {
setReturnCodeValue(other.getReturnCodeValue());
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.SendEventsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.SendEventsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private NotificationServiceOuterClass.EventProto event_;
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder> eventBuilder_;
/**
* .notification_service.EventProto event = 1;
* @return Whether the event field is set.
*/
public boolean hasEvent() {
return eventBuilder_ != null || event_ != null;
}
/**
* .notification_service.EventProto event = 1;
* @return The event.
*/
public NotificationServiceOuterClass.EventProto getEvent() {
if (eventBuilder_ == null) {
return event_ == null ? NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
} else {
return eventBuilder_.getMessage();
}
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder setEvent(NotificationServiceOuterClass.EventProto value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
eventBuilder_.setMessage(value);
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder setEvent(
NotificationServiceOuterClass.EventProto.Builder builderForValue) {
if (eventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
eventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder mergeEvent(NotificationServiceOuterClass.EventProto value) {
if (eventBuilder_ == null) {
if (event_ != null) {
event_ =
NotificationServiceOuterClass.EventProto.newBuilder(event_).mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
eventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = null;
onChanged();
} else {
event_ = null;
eventBuilder_ = null;
}
return this;
}
/**
* .notification_service.EventProto event = 1;
*/
public NotificationServiceOuterClass.EventProto.Builder getEventBuilder() {
onChanged();
return getEventFieldBuilder().getBuilder();
}
/**
* .notification_service.EventProto event = 1;
*/
public NotificationServiceOuterClass.EventProtoOrBuilder getEventOrBuilder() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilder();
} else {
return event_ == null ?
NotificationServiceOuterClass.EventProto.getDefaultInstance() : event_;
}
}
/**
* .notification_service.EventProto event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>(
getEvent(),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private int returnCode_ = 0;
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 2;
* @param value The enum numeric value on the wire for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeValue(int value) {
returnCode_ = value;
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 2;
* @return The returnCode.
*/
@java.lang.Override
public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
/**
* .notification_service.ReturnStatus return_code = 2;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(NotificationServiceOuterClass.ReturnStatus value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 2;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = 0;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 3;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 3;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 3;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 3;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 3;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
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:notification_service.SendEventsResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.SendEventsResponse)
private static final NotificationServiceOuterClass.SendEventsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.SendEventsResponse();
}
public static NotificationServiceOuterClass.SendEventsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendEventsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendEventsResponse(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 NotificationServiceOuterClass.SendEventsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListEventsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.ListEventsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string keys = 1;
* @return A list containing the keys.
*/
java.util.List
getKeysList();
/**
* repeated string keys = 1;
* @return The count of keys.
*/
int getKeysCount();
/**
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
java.lang.String getKeys(int index);
/**
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
com.google.protobuf.ByteString
getKeysBytes(int index);
/**
* string event_type = 2;
* @return The eventType.
*/
java.lang.String getEventType();
/**
* string event_type = 2;
* @return The bytes for eventType.
*/
com.google.protobuf.ByteString
getEventTypeBytes();
/**
* int64 start_time = 3;
* @return The startTime.
*/
long getStartTime();
/**
* int64 start_version = 4;
* @return The startVersion.
*/
long getStartVersion();
/**
* int32 timeout_seconds = 5;
* @return The timeoutSeconds.
*/
int getTimeoutSeconds();
/**
* string namespace = 6;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 6;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* string sender = 7;
* @return The sender.
*/
java.lang.String getSender();
/**
* string sender = 7;
* @return The bytes for sender.
*/
com.google.protobuf.ByteString
getSenderBytes();
}
/**
* Protobuf type {@code notification_service.ListEventsRequest}
*/
public static final class ListEventsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.ListEventsRequest)
ListEventsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListEventsRequest.newBuilder() to construct.
private ListEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListEventsRequest() {
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
eventType_ = "";
namespace_ = "";
sender_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListEventsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListEventsRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
keys_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
keys_.add(s);
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
eventType_ = s;
break;
}
case 24: {
startTime_ = input.readInt64();
break;
}
case 32: {
startVersion_ = input.readInt64();
break;
}
case 40: {
timeoutSeconds_ = input.readInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
sender_ = s;
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)) {
keys_ = keys_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListEventsRequest.class, NotificationServiceOuterClass.ListEventsRequest.Builder.class);
}
public static final int KEYS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList keys_;
/**
* repeated string keys = 1;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_;
}
/**
* repeated string keys = 1;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
public static final int EVENT_TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object eventType_;
/**
* string event_type = 2;
* @return The eventType.
*/
@java.lang.Override
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
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();
eventType_ = s;
return s;
}
}
/**
* string event_type = 2;
* @return The bytes for eventType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_TIME_FIELD_NUMBER = 3;
private long startTime_;
/**
* int64 start_time = 3;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int START_VERSION_FIELD_NUMBER = 4;
private long startVersion_;
/**
* int64 start_version = 4;
* @return The startVersion.
*/
@java.lang.Override
public long getStartVersion() {
return startVersion_;
}
public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 5;
private int timeoutSeconds_;
/**
* int32 timeout_seconds = 5;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
public static final int NAMESPACE_FIELD_NUMBER = 6;
private volatile java.lang.Object namespace_;
/**
* string namespace = 6;
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* string namespace = 6;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SENDER_FIELD_NUMBER = 7;
private volatile java.lang.Object sender_;
/**
* string sender = 7;
* @return The sender.
*/
@java.lang.Override
public java.lang.String getSender() {
java.lang.Object ref = sender_;
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();
sender_ = s;
return s;
}
}
/**
* string sender = 7;
* @return The bytes for sender.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = 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 {
for (int i = 0; i < keys_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i));
}
if (!getEventTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventType_);
}
if (startTime_ != 0L) {
output.writeInt64(3, startTime_);
}
if (startVersion_ != 0L) {
output.writeInt64(4, startVersion_);
}
if (timeoutSeconds_ != 0) {
output.writeInt32(5, timeoutSeconds_);
}
if (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, namespace_);
}
if (!getSenderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sender_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < keys_.size(); i++) {
dataSize += computeStringSizeNoTag(keys_.getRaw(i));
}
size += dataSize;
size += 1 * getKeysList().size();
}
if (!getEventTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventType_);
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, startTime_);
}
if (startVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, startVersion_);
}
if (timeoutSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, timeoutSeconds_);
}
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, namespace_);
}
if (!getSenderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sender_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.ListEventsRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.ListEventsRequest other = (NotificationServiceOuterClass.ListEventsRequest) obj;
if (!getKeysList()
.equals(other.getKeysList())) return false;
if (!getEventType()
.equals(other.getEventType())) return false;
if (getStartTime()
!= other.getStartTime()) return false;
if (getStartVersion()
!= other.getStartVersion()) return false;
if (getTimeoutSeconds()
!= other.getTimeoutSeconds()) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getSender()
.equals(other.getSender())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getKeysCount() > 0) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeysList().hashCode();
}
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventType().hashCode();
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + START_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartVersion());
hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutSeconds();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + SENDER_FIELD_NUMBER;
hash = (53 * hash) + getSender().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsRequest 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 NotificationServiceOuterClass.ListEventsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsRequest 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 NotificationServiceOuterClass.ListEventsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsRequest 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(NotificationServiceOuterClass.ListEventsRequest 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;
}
/**
* Protobuf type {@code notification_service.ListEventsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.ListEventsRequest)
NotificationServiceOuterClass.ListEventsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListEventsRequest.class, NotificationServiceOuterClass.ListEventsRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.ListEventsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
eventType_ = "";
startTime_ = 0L;
startVersion_ = 0L;
timeoutSeconds_ = 0;
namespace_ = "";
sender_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.ListEventsRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsRequest build() {
NotificationServiceOuterClass.ListEventsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsRequest buildPartial() {
NotificationServiceOuterClass.ListEventsRequest result = new NotificationServiceOuterClass.ListEventsRequest(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
keys_ = keys_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keys_ = keys_;
result.eventType_ = eventType_;
result.startTime_ = startTime_;
result.startVersion_ = startVersion_;
result.timeoutSeconds_ = timeoutSeconds_;
result.namespace_ = namespace_;
result.sender_ = sender_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.ListEventsRequest) {
return mergeFrom((NotificationServiceOuterClass.ListEventsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.ListEventsRequest other) {
if (other == NotificationServiceOuterClass.ListEventsRequest.getDefaultInstance()) return this;
if (!other.keys_.isEmpty()) {
if (keys_.isEmpty()) {
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
onChanged();
}
if (!other.getEventType().isEmpty()) {
eventType_ = other.eventType_;
onChanged();
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getStartVersion() != 0L) {
setStartVersion(other.getStartVersion());
}
if (other.getTimeoutSeconds() != 0) {
setTimeoutSeconds(other.getTimeoutSeconds());
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getSender().isEmpty()) {
sender_ = other.sender_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.ListEventsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.ListEventsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string keys = 1;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_.getUnmodifiableView();
}
/**
* repeated string keys = 1;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
/**
* repeated string keys = 1;
* @param index The index to set the value at.
* @param value The keys to set.
* @return This builder for chaining.
*/
public Builder setKeys(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.set(index, value);
onChanged();
return this;
}
/**
* repeated string keys = 1;
* @param value The keys to add.
* @return This builder for chaining.
*/
public Builder addKeys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
/**
* repeated string keys = 1;
* @param values The keys to add.
* @return This builder for chaining.
*/
public Builder addAllKeys(
java.lang.Iterable values) {
ensureKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keys_);
onChanged();
return this;
}
/**
* repeated string keys = 1;
* @return This builder for chaining.
*/
public Builder clearKeys() {
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string keys = 1;
* @param value The bytes of the keys to add.
* @return This builder for chaining.
*/
public Builder addKeysBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
private java.lang.Object eventType_ = "";
/**
* string event_type = 2;
* @return The eventType.
*/
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string event_type = 2;
* @return The bytes for eventType.
*/
public com.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string event_type = 2;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value;
onChanged();
return this;
}
/**
* string event_type = 2;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = getDefaultInstance().getEventType();
onChanged();
return this;
}
/**
* string event_type = 2;
* @param value The bytes for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventType_ = value;
onChanged();
return this;
}
private long startTime_ ;
/**
* int64 start_time = 3;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* int64 start_time = 3;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
* int64 start_time = 3;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private long startVersion_ ;
/**
* int64 start_version = 4;
* @return The startVersion.
*/
@java.lang.Override
public long getStartVersion() {
return startVersion_;
}
/**
* int64 start_version = 4;
* @param value The startVersion to set.
* @return This builder for chaining.
*/
public Builder setStartVersion(long value) {
startVersion_ = value;
onChanged();
return this;
}
/**
* int64 start_version = 4;
* @return This builder for chaining.
*/
public Builder clearStartVersion() {
startVersion_ = 0L;
onChanged();
return this;
}
private int timeoutSeconds_ ;
/**
* int32 timeout_seconds = 5;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
/**
* int32 timeout_seconds = 5;
* @param value The timeoutSeconds to set.
* @return This builder for chaining.
*/
public Builder setTimeoutSeconds(int value) {
timeoutSeconds_ = value;
onChanged();
return this;
}
/**
* int32 timeout_seconds = 5;
* @return This builder for chaining.
*/
public Builder clearTimeoutSeconds() {
timeoutSeconds_ = 0;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 6;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 6;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 6;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 6;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 6;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private java.lang.Object sender_ = "";
/**
* string sender = 7;
* @return The sender.
*/
public java.lang.String getSender() {
java.lang.Object ref = sender_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sender_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sender = 7;
* @return The bytes for sender.
*/
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sender = 7;
* @param value The sender to set.
* @return This builder for chaining.
*/
public Builder setSender(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sender_ = value;
onChanged();
return this;
}
/**
* string sender = 7;
* @return This builder for chaining.
*/
public Builder clearSender() {
sender_ = getDefaultInstance().getSender();
onChanged();
return this;
}
/**
* string sender = 7;
* @param value The bytes for sender to set.
* @return This builder for chaining.
*/
public Builder setSenderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sender_ = value;
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:notification_service.ListEventsRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.ListEventsRequest)
private static final NotificationServiceOuterClass.ListEventsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.ListEventsRequest();
}
public static NotificationServiceOuterClass.ListEventsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListEventsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListEventsRequest(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 NotificationServiceOuterClass.ListEventsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListAllEventsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.ListAllEventsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
int getTimeoutSeconds();
/**
* int64 start_time = 2;
* @return The startTime.
*/
long getStartTime();
/**
* int64 start_version = 3;
* @return The startVersion.
*/
long getStartVersion();
/**
* int64 end_version = 4;
* @return The endVersion.
*/
long getEndVersion();
}
/**
* Protobuf type {@code notification_service.ListAllEventsRequest}
*/
public static final class ListAllEventsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.ListAllEventsRequest)
ListAllEventsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListAllEventsRequest.newBuilder() to construct.
private ListAllEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListAllEventsRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListAllEventsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAllEventsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
timeoutSeconds_ = input.readInt32();
break;
}
case 16: {
startTime_ = input.readInt64();
break;
}
case 24: {
startVersion_ = input.readInt64();
break;
}
case 32: {
endVersion_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListAllEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListAllEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListAllEventsRequest.class, NotificationServiceOuterClass.ListAllEventsRequest.Builder.class);
}
public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 1;
private int timeoutSeconds_;
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
public static final int START_TIME_FIELD_NUMBER = 2;
private long startTime_;
/**
* int64 start_time = 2;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int START_VERSION_FIELD_NUMBER = 3;
private long startVersion_;
/**
* int64 start_version = 3;
* @return The startVersion.
*/
@java.lang.Override
public long getStartVersion() {
return startVersion_;
}
public static final int END_VERSION_FIELD_NUMBER = 4;
private long endVersion_;
/**
* int64 end_version = 4;
* @return The endVersion.
*/
@java.lang.Override
public long getEndVersion() {
return endVersion_;
}
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 (timeoutSeconds_ != 0) {
output.writeInt32(1, timeoutSeconds_);
}
if (startTime_ != 0L) {
output.writeInt64(2, startTime_);
}
if (startVersion_ != 0L) {
output.writeInt64(3, startVersion_);
}
if (endVersion_ != 0L) {
output.writeInt64(4, endVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timeoutSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, timeoutSeconds_);
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, startTime_);
}
if (startVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, startVersion_);
}
if (endVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, endVersion_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.ListAllEventsRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.ListAllEventsRequest other = (NotificationServiceOuterClass.ListAllEventsRequest) obj;
if (getTimeoutSeconds()
!= other.getTimeoutSeconds()) return false;
if (getStartTime()
!= other.getStartTime()) return false;
if (getStartVersion()
!= other.getStartVersion()) return false;
if (getEndVersion()
!= other.getEndVersion()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + TIMEOUT_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutSeconds();
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + START_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartVersion());
hash = (37 * hash) + END_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndVersion());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListAllEventsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListAllEventsRequest 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 NotificationServiceOuterClass.ListAllEventsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListAllEventsRequest 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 NotificationServiceOuterClass.ListAllEventsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListAllEventsRequest 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(NotificationServiceOuterClass.ListAllEventsRequest 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;
}
/**
* Protobuf type {@code notification_service.ListAllEventsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.ListAllEventsRequest)
NotificationServiceOuterClass.ListAllEventsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListAllEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListAllEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListAllEventsRequest.class, NotificationServiceOuterClass.ListAllEventsRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.ListAllEventsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timeoutSeconds_ = 0;
startTime_ = 0L;
startVersion_ = 0L;
endVersion_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_ListAllEventsRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.ListAllEventsRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.ListAllEventsRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.ListAllEventsRequest build() {
NotificationServiceOuterClass.ListAllEventsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.ListAllEventsRequest buildPartial() {
NotificationServiceOuterClass.ListAllEventsRequest result = new NotificationServiceOuterClass.ListAllEventsRequest(this);
result.timeoutSeconds_ = timeoutSeconds_;
result.startTime_ = startTime_;
result.startVersion_ = startVersion_;
result.endVersion_ = endVersion_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.ListAllEventsRequest) {
return mergeFrom((NotificationServiceOuterClass.ListAllEventsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.ListAllEventsRequest other) {
if (other == NotificationServiceOuterClass.ListAllEventsRequest.getDefaultInstance()) return this;
if (other.getTimeoutSeconds() != 0) {
setTimeoutSeconds(other.getTimeoutSeconds());
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getStartVersion() != 0L) {
setStartVersion(other.getStartVersion());
}
if (other.getEndVersion() != 0L) {
setEndVersion(other.getEndVersion());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.ListAllEventsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.ListAllEventsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int timeoutSeconds_ ;
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
/**
* int32 timeout_seconds = 1;
* @param value The timeoutSeconds to set.
* @return This builder for chaining.
*/
public Builder setTimeoutSeconds(int value) {
timeoutSeconds_ = value;
onChanged();
return this;
}
/**
* int32 timeout_seconds = 1;
* @return This builder for chaining.
*/
public Builder clearTimeoutSeconds() {
timeoutSeconds_ = 0;
onChanged();
return this;
}
private long startTime_ ;
/**
* int64 start_time = 2;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* int64 start_time = 2;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
* int64 start_time = 2;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private long startVersion_ ;
/**
* int64 start_version = 3;
* @return The startVersion.
*/
@java.lang.Override
public long getStartVersion() {
return startVersion_;
}
/**
* int64 start_version = 3;
* @param value The startVersion to set.
* @return This builder for chaining.
*/
public Builder setStartVersion(long value) {
startVersion_ = value;
onChanged();
return this;
}
/**
* int64 start_version = 3;
* @return This builder for chaining.
*/
public Builder clearStartVersion() {
startVersion_ = 0L;
onChanged();
return this;
}
private long endVersion_ ;
/**
* int64 end_version = 4;
* @return The endVersion.
*/
@java.lang.Override
public long getEndVersion() {
return endVersion_;
}
/**
* int64 end_version = 4;
* @param value The endVersion to set.
* @return This builder for chaining.
*/
public Builder setEndVersion(long value) {
endVersion_ = value;
onChanged();
return this;
}
/**
* int64 end_version = 4;
* @return This builder for chaining.
*/
public Builder clearEndVersion() {
endVersion_ = 0L;
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:notification_service.ListAllEventsRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.ListAllEventsRequest)
private static final NotificationServiceOuterClass.ListAllEventsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.ListAllEventsRequest();
}
public static NotificationServiceOuterClass.ListAllEventsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListAllEventsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAllEventsRequest(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 NotificationServiceOuterClass.ListAllEventsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListEventsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.ListEventsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
int getReturnCodeValue();
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
NotificationServiceOuterClass.ReturnStatus getReturnCode();
/**
* string return_msg = 2;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
/**
* repeated .notification_service.EventProto events = 3;
*/
java.util.List
getEventsList();
/**
* repeated .notification_service.EventProto events = 3;
*/
NotificationServiceOuterClass.EventProto getEvents(int index);
/**
* repeated .notification_service.EventProto events = 3;
*/
int getEventsCount();
/**
* repeated .notification_service.EventProto events = 3;
*/
java.util.List extends NotificationServiceOuterClass.EventProtoOrBuilder>
getEventsOrBuilderList();
/**
* repeated .notification_service.EventProto events = 3;
*/
NotificationServiceOuterClass.EventProtoOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code notification_service.ListEventsResponse}
*/
public static final class ListEventsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.ListEventsResponse)
ListEventsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListEventsResponse.newBuilder() to construct.
private ListEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListEventsResponse() {
returnCode_ = 0;
returnMsg_ = "";
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListEventsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListEventsResponse(
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 8: {
int rawValue = input.readEnum();
returnCode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(NotificationServiceOuterClass.EventProto.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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListEventsResponse.class, NotificationServiceOuterClass.ListEventsResponse.Builder.class);
}
public static final int RETURN_CODE_FIELD_NUMBER = 1;
private int returnCode_;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
public static final int RETURN_MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 2;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENTS_FIELD_NUMBER = 3;
private java.util.List events_;
/**
* repeated .notification_service.EventProto events = 3;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
@java.lang.Override
public java.util.List extends NotificationServiceOuterClass.EventProtoOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .notification_service.EventProto events = 3;
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProto getEvents(int index) {
return events_.get(index);
}
/**
* repeated .notification_service.EventProto events = 3;
*/
@java.lang.Override
public NotificationServiceOuterClass.EventProtoOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
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 (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
output.writeEnum(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnMsg_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(3, events_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnMsg_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, events_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.ListEventsResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.ListEventsResponse other = (NotificationServiceOuterClass.ListEventsResponse) obj;
if (returnCode_ != other.returnCode_) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + returnCode_;
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListEventsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsResponse 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 NotificationServiceOuterClass.ListEventsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsResponse 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 NotificationServiceOuterClass.ListEventsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListEventsResponse 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(NotificationServiceOuterClass.ListEventsResponse 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;
}
/**
* Protobuf type {@code notification_service.ListEventsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.ListEventsResponse)
NotificationServiceOuterClass.ListEventsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListEventsResponse.class, NotificationServiceOuterClass.ListEventsResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.ListEventsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
returnCode_ = 0;
returnMsg_ = "";
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_ListEventsResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsResponse build() {
NotificationServiceOuterClass.ListEventsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.ListEventsResponse buildPartial() {
NotificationServiceOuterClass.ListEventsResponse result = new NotificationServiceOuterClass.ListEventsResponse(this);
int from_bitField0_ = bitField0_;
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.ListEventsResponse) {
return mergeFrom((NotificationServiceOuterClass.ListEventsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.ListEventsResponse other) {
if (other == NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance()) return this;
if (other.returnCode_ != 0) {
setReturnCodeValue(other.getReturnCodeValue());
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.ListEventsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.ListEventsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int returnCode_ = 0;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The enum numeric value on the wire for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeValue(int value) {
returnCode_ = value;
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override
public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(NotificationServiceOuterClass.ReturnStatus value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = 0;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 2;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 2;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 2;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 2;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
onChanged();
return this;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder> eventsBuilder_;
/**
* repeated .notification_service.EventProto events = 3;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public NotificationServiceOuterClass.EventProto getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder setEvents(
int index, NotificationServiceOuterClass.EventProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder setEvents(
int index, NotificationServiceOuterClass.EventProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder addEvents(NotificationServiceOuterClass.EventProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder addEvents(
int index, NotificationServiceOuterClass.EventProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder addEvents(
NotificationServiceOuterClass.EventProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder addEvents(
int index, NotificationServiceOuterClass.EventProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder addAllEvents(
java.lang.Iterable extends NotificationServiceOuterClass.EventProto> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public NotificationServiceOuterClass.EventProto.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public NotificationServiceOuterClass.EventProtoOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public java.util.List extends NotificationServiceOuterClass.EventProtoOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public NotificationServiceOuterClass.EventProto.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
NotificationServiceOuterClass.EventProto.getDefaultInstance());
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public NotificationServiceOuterClass.EventProto.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, NotificationServiceOuterClass.EventProto.getDefaultInstance());
}
/**
* repeated .notification_service.EventProto events = 3;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.EventProto, NotificationServiceOuterClass.EventProto.Builder, NotificationServiceOuterClass.EventProtoOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@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:notification_service.ListEventsResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.ListEventsResponse)
private static final NotificationServiceOuterClass.ListEventsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.ListEventsResponse();
}
public static NotificationServiceOuterClass.ListEventsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListEventsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListEventsResponse(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 NotificationServiceOuterClass.ListEventsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestVersionByKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.GetLatestVersionByKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string namespace = 2;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* int32 timeout_seconds = 3;
* @return The timeoutSeconds.
*/
int getTimeoutSeconds();
}
/**
* Protobuf type {@code notification_service.GetLatestVersionByKeyRequest}
*/
public static final class GetLatestVersionByKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.GetLatestVersionByKeyRequest)
GetLatestVersionByKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLatestVersionByKeyRequest.newBuilder() to construct.
private GetLatestVersionByKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLatestVersionByKeyRequest() {
key_ = "";
namespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLatestVersionByKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLatestVersionByKeyRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
break;
}
case 24: {
timeoutSeconds_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionByKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.GetLatestVersionByKeyRequest.class, NotificationServiceOuterClass.GetLatestVersionByKeyRequest.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 2;
private volatile java.lang.Object namespace_;
/**
* string namespace = 2;
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 3;
private int timeoutSeconds_;
/**
* int32 timeout_seconds = 3;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
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 (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_);
}
if (timeoutSeconds_ != 0) {
output.writeInt32(3, timeoutSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_);
}
if (timeoutSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, timeoutSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.GetLatestVersionByKeyRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.GetLatestVersionByKeyRequest other = (NotificationServiceOuterClass.GetLatestVersionByKeyRequest) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (getTimeoutSeconds()
!= other.getTimeoutSeconds()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutSeconds();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest 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 NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest 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 NotificationServiceOuterClass.GetLatestVersionByKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest 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(NotificationServiceOuterClass.GetLatestVersionByKeyRequest 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;
}
/**
* Protobuf type {@code notification_service.GetLatestVersionByKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.GetLatestVersionByKeyRequest)
NotificationServiceOuterClass.GetLatestVersionByKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionByKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.GetLatestVersionByKeyRequest.class, NotificationServiceOuterClass.GetLatestVersionByKeyRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.GetLatestVersionByKeyRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
namespace_ = "";
timeoutSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionByKeyRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.GetLatestVersionByKeyRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionByKeyRequest build() {
NotificationServiceOuterClass.GetLatestVersionByKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionByKeyRequest buildPartial() {
NotificationServiceOuterClass.GetLatestVersionByKeyRequest result = new NotificationServiceOuterClass.GetLatestVersionByKeyRequest(this);
result.key_ = key_;
result.namespace_ = namespace_;
result.timeoutSeconds_ = timeoutSeconds_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.GetLatestVersionByKeyRequest) {
return mergeFrom((NotificationServiceOuterClass.GetLatestVersionByKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.GetLatestVersionByKeyRequest other) {
if (other == NotificationServiceOuterClass.GetLatestVersionByKeyRequest.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (other.getTimeoutSeconds() != 0) {
setTimeoutSeconds(other.getTimeoutSeconds());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.GetLatestVersionByKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.GetLatestVersionByKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 2;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 2;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 2;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 2;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private int timeoutSeconds_ ;
/**
* int32 timeout_seconds = 3;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
/**
* int32 timeout_seconds = 3;
* @param value The timeoutSeconds to set.
* @return This builder for chaining.
*/
public Builder setTimeoutSeconds(int value) {
timeoutSeconds_ = value;
onChanged();
return this;
}
/**
* int32 timeout_seconds = 3;
* @return This builder for chaining.
*/
public Builder clearTimeoutSeconds() {
timeoutSeconds_ = 0;
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:notification_service.GetLatestVersionByKeyRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.GetLatestVersionByKeyRequest)
private static final NotificationServiceOuterClass.GetLatestVersionByKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.GetLatestVersionByKeyRequest();
}
public static NotificationServiceOuterClass.GetLatestVersionByKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLatestVersionByKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLatestVersionByKeyRequest(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 NotificationServiceOuterClass.GetLatestVersionByKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestVersionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.GetLatestVersionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string return_code = 1;
* @return The returnCode.
*/
java.lang.String getReturnCode();
/**
* string return_code = 1;
* @return The bytes for returnCode.
*/
com.google.protobuf.ByteString
getReturnCodeBytes();
/**
* string return_msg = 2;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
/**
* int64 version = 3;
* @return The version.
*/
long getVersion();
}
/**
* Protobuf type {@code notification_service.GetLatestVersionResponse}
*/
public static final class GetLatestVersionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.GetLatestVersionResponse)
GetLatestVersionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLatestVersionResponse.newBuilder() to construct.
private GetLatestVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLatestVersionResponse() {
returnCode_ = "";
returnMsg_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLatestVersionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLatestVersionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
returnCode_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
case 24: {
version_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.GetLatestVersionResponse.class, NotificationServiceOuterClass.GetLatestVersionResponse.Builder.class);
}
public static final int RETURN_CODE_FIELD_NUMBER = 1;
private volatile java.lang.Object returnCode_;
/**
* string return_code = 1;
* @return The returnCode.
*/
@java.lang.Override
public java.lang.String getReturnCode() {
java.lang.Object ref = returnCode_;
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();
returnCode_ = s;
return s;
}
}
/**
* string return_code = 1;
* @return The bytes for returnCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnCodeBytes() {
java.lang.Object ref = returnCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RETURN_MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 2;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 3;
private long version_;
/**
* int64 version = 3;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
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 (!getReturnCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnMsg_);
}
if (version_ != 0L) {
output.writeInt64(3, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getReturnCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnMsg_);
}
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, version_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.GetLatestVersionResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.GetLatestVersionResponse other = (NotificationServiceOuterClass.GetLatestVersionResponse) obj;
if (!getReturnCode()
.equals(other.getReturnCode())) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (getVersion()
!= other.getVersion()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + getReturnCode().hashCode();
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse 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 NotificationServiceOuterClass.GetLatestVersionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse 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 NotificationServiceOuterClass.GetLatestVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.GetLatestVersionResponse 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(NotificationServiceOuterClass.GetLatestVersionResponse 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;
}
/**
* Protobuf type {@code notification_service.GetLatestVersionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.GetLatestVersionResponse)
NotificationServiceOuterClass.GetLatestVersionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.GetLatestVersionResponse.class, NotificationServiceOuterClass.GetLatestVersionResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.GetLatestVersionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
returnCode_ = "";
returnMsg_ = "";
version_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_GetLatestVersionResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionResponse build() {
NotificationServiceOuterClass.GetLatestVersionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.GetLatestVersionResponse buildPartial() {
NotificationServiceOuterClass.GetLatestVersionResponse result = new NotificationServiceOuterClass.GetLatestVersionResponse(this);
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
result.version_ = version_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.GetLatestVersionResponse) {
return mergeFrom((NotificationServiceOuterClass.GetLatestVersionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.GetLatestVersionResponse other) {
if (other == NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance()) return this;
if (!other.getReturnCode().isEmpty()) {
returnCode_ = other.returnCode_;
onChanged();
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.GetLatestVersionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.GetLatestVersionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object returnCode_ = "";
/**
* string return_code = 1;
* @return The returnCode.
*/
public java.lang.String getReturnCode() {
java.lang.Object ref = returnCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_code = 1;
* @return The bytes for returnCode.
*/
public com.google.protobuf.ByteString
getReturnCodeBytes() {
java.lang.Object ref = returnCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_code = 1;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value;
onChanged();
return this;
}
/**
* string return_code = 1;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = getDefaultInstance().getReturnCode();
onChanged();
return this;
}
/**
* string return_code = 1;
* @param value The bytes for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnCode_ = value;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 2;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 2;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 2;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 2;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
onChanged();
return this;
}
private long version_ ;
/**
* int64 version = 3;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
* int64 version = 3;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* int64 version = 3;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0L;
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:notification_service.GetLatestVersionResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.GetLatestVersionResponse)
private static final NotificationServiceOuterClass.GetLatestVersionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.GetLatestVersionResponse();
}
public static NotificationServiceOuterClass.GetLatestVersionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLatestVersionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLatestVersionResponse(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 NotificationServiceOuterClass.GetLatestVersionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MemberProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.MemberProto)
com.google.protobuf.MessageOrBuilder {
/**
* int64 version = 1;
* @return The version.
*/
long getVersion();
/**
* string server_uri = 2;
* @return The serverUri.
*/
java.lang.String getServerUri();
/**
* string server_uri = 2;
* @return The bytes for serverUri.
*/
com.google.protobuf.ByteString
getServerUriBytes();
/**
* int64 update_time = 3;
* @return The updateTime.
*/
long getUpdateTime();
}
/**
* Protobuf type {@code notification_service.MemberProto}
*/
public static final class MemberProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.MemberProto)
MemberProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MemberProto.newBuilder() to construct.
private MemberProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MemberProto() {
serverUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MemberProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MemberProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
version_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
serverUri_ = s;
break;
}
case 24: {
updateTime_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_MemberProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_MemberProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.MemberProto.class, NotificationServiceOuterClass.MemberProto.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* int64 version = 1;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
public static final int SERVER_URI_FIELD_NUMBER = 2;
private volatile java.lang.Object serverUri_;
/**
* string server_uri = 2;
* @return The serverUri.
*/
@java.lang.Override
public java.lang.String getServerUri() {
java.lang.Object ref = serverUri_;
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();
serverUri_ = s;
return s;
}
}
/**
* string server_uri = 2;
* @return The bytes for serverUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServerUriBytes() {
java.lang.Object ref = serverUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private long updateTime_;
/**
* int64 update_time = 3;
* @return The updateTime.
*/
@java.lang.Override
public long getUpdateTime() {
return updateTime_;
}
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 (version_ != 0L) {
output.writeInt64(1, version_);
}
if (!getServerUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serverUri_);
}
if (updateTime_ != 0L) {
output.writeInt64(3, updateTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, version_);
}
if (!getServerUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serverUri_);
}
if (updateTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, updateTime_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.MemberProto)) {
return super.equals(obj);
}
NotificationServiceOuterClass.MemberProto other = (NotificationServiceOuterClass.MemberProto) obj;
if (getVersion()
!= other.getVersion()) return false;
if (!getServerUri()
.equals(other.getServerUri())) return false;
if (getUpdateTime()
!= other.getUpdateTime()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
hash = (37 * hash) + SERVER_URI_FIELD_NUMBER;
hash = (53 * hash) + getServerUri().hashCode();
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUpdateTime());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.MemberProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.MemberProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.MemberProto 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 NotificationServiceOuterClass.MemberProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.MemberProto 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 NotificationServiceOuterClass.MemberProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.MemberProto 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(NotificationServiceOuterClass.MemberProto 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;
}
/**
* Protobuf type {@code notification_service.MemberProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.MemberProto)
NotificationServiceOuterClass.MemberProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_MemberProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_MemberProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.MemberProto.class, NotificationServiceOuterClass.MemberProto.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.MemberProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = 0L;
serverUri_ = "";
updateTime_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_MemberProto_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.MemberProto getDefaultInstanceForType() {
return NotificationServiceOuterClass.MemberProto.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.MemberProto build() {
NotificationServiceOuterClass.MemberProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.MemberProto buildPartial() {
NotificationServiceOuterClass.MemberProto result = new NotificationServiceOuterClass.MemberProto(this);
result.version_ = version_;
result.serverUri_ = serverUri_;
result.updateTime_ = updateTime_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.MemberProto) {
return mergeFrom((NotificationServiceOuterClass.MemberProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.MemberProto other) {
if (other == NotificationServiceOuterClass.MemberProto.getDefaultInstance()) return this;
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (!other.getServerUri().isEmpty()) {
serverUri_ = other.serverUri_;
onChanged();
}
if (other.getUpdateTime() != 0L) {
setUpdateTime(other.getUpdateTime());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.MemberProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.MemberProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long version_ ;
/**
* int64 version = 1;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
* int64 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
onChanged();
return this;
}
/**
* int64 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0L;
onChanged();
return this;
}
private java.lang.Object serverUri_ = "";
/**
* string server_uri = 2;
* @return The serverUri.
*/
public java.lang.String getServerUri() {
java.lang.Object ref = serverUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string server_uri = 2;
* @return The bytes for serverUri.
*/
public com.google.protobuf.ByteString
getServerUriBytes() {
java.lang.Object ref = serverUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string server_uri = 2;
* @param value The serverUri to set.
* @return This builder for chaining.
*/
public Builder setServerUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serverUri_ = value;
onChanged();
return this;
}
/**
* string server_uri = 2;
* @return This builder for chaining.
*/
public Builder clearServerUri() {
serverUri_ = getDefaultInstance().getServerUri();
onChanged();
return this;
}
/**
* string server_uri = 2;
* @param value The bytes for serverUri to set.
* @return This builder for chaining.
*/
public Builder setServerUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serverUri_ = value;
onChanged();
return this;
}
private long updateTime_ ;
/**
* int64 update_time = 3;
* @return The updateTime.
*/
@java.lang.Override
public long getUpdateTime() {
return updateTime_;
}
/**
* int64 update_time = 3;
* @param value The updateTime to set.
* @return This builder for chaining.
*/
public Builder setUpdateTime(long value) {
updateTime_ = value;
onChanged();
return this;
}
/**
* int64 update_time = 3;
* @return This builder for chaining.
*/
public Builder clearUpdateTime() {
updateTime_ = 0L;
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:notification_service.MemberProto)
}
// @@protoc_insertion_point(class_scope:notification_service.MemberProto)
private static final NotificationServiceOuterClass.MemberProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.MemberProto();
}
public static NotificationServiceOuterClass.MemberProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MemberProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MemberProto(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 NotificationServiceOuterClass.MemberProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.Notify)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string namespace = 2;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
}
/**
* Protobuf type {@code notification_service.Notify}
*/
public static final class Notify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.Notify)
NotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Notify.newBuilder() to construct.
private Notify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Notify() {
key_ = "";
namespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Notify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Notify(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_Notify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_Notify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.Notify.class, NotificationServiceOuterClass.Notify.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 2;
private volatile java.lang.Object namespace_;
/**
* string namespace = 2;
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = 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 (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.Notify)) {
return super.equals(obj);
}
NotificationServiceOuterClass.Notify other = (NotificationServiceOuterClass.Notify) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.Notify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.Notify parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.Notify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.Notify parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.Notify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.Notify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.Notify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.Notify 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 NotificationServiceOuterClass.Notify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.Notify 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 NotificationServiceOuterClass.Notify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.Notify 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(NotificationServiceOuterClass.Notify 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;
}
/**
* Protobuf type {@code notification_service.Notify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.Notify)
NotificationServiceOuterClass.NotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_Notify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_Notify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.Notify.class, NotificationServiceOuterClass.Notify.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.Notify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
namespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_Notify_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.Notify getDefaultInstanceForType() {
return NotificationServiceOuterClass.Notify.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.Notify build() {
NotificationServiceOuterClass.Notify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.Notify buildPartial() {
NotificationServiceOuterClass.Notify result = new NotificationServiceOuterClass.Notify(this);
result.key_ = key_;
result.namespace_ = namespace_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.Notify) {
return mergeFrom((NotificationServiceOuterClass.Notify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.Notify other) {
if (other == NotificationServiceOuterClass.Notify.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.Notify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.Notify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 2;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 2;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 2;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 2;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 2;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
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:notification_service.Notify)
}
// @@protoc_insertion_point(class_scope:notification_service.Notify)
private static final NotificationServiceOuterClass.Notify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.Notify();
}
public static NotificationServiceOuterClass.Notify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Notify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Notify(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 NotificationServiceOuterClass.Notify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotifyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.NotifyRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .notification_service.Notify notifies = 1;
*/
java.util.List
getNotifiesList();
/**
* repeated .notification_service.Notify notifies = 1;
*/
NotificationServiceOuterClass.Notify getNotifies(int index);
/**
* repeated .notification_service.Notify notifies = 1;
*/
int getNotifiesCount();
/**
* repeated .notification_service.Notify notifies = 1;
*/
java.util.List extends NotificationServiceOuterClass.NotifyOrBuilder>
getNotifiesOrBuilderList();
/**
* repeated .notification_service.Notify notifies = 1;
*/
NotificationServiceOuterClass.NotifyOrBuilder getNotifiesOrBuilder(
int index);
}
/**
* Protobuf type {@code notification_service.NotifyRequest}
*/
public static final class NotifyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.NotifyRequest)
NotifyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NotifyRequest.newBuilder() to construct.
private NotifyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NotifyRequest() {
notifies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NotifyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NotifyRequest(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
notifies_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
notifies_.add(
input.readMessage(NotificationServiceOuterClass.Notify.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)) {
notifies_ = java.util.Collections.unmodifiableList(notifies_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyRequest.class, NotificationServiceOuterClass.NotifyRequest.Builder.class);
}
public static final int NOTIFIES_FIELD_NUMBER = 1;
private java.util.List notifies_;
/**
* repeated .notification_service.Notify notifies = 1;
*/
@java.lang.Override
public java.util.List getNotifiesList() {
return notifies_;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
@java.lang.Override
public java.util.List extends NotificationServiceOuterClass.NotifyOrBuilder>
getNotifiesOrBuilderList() {
return notifies_;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
@java.lang.Override
public int getNotifiesCount() {
return notifies_.size();
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
@java.lang.Override
public NotificationServiceOuterClass.Notify getNotifies(int index) {
return notifies_.get(index);
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
@java.lang.Override
public NotificationServiceOuterClass.NotifyOrBuilder getNotifiesOrBuilder(
int index) {
return notifies_.get(index);
}
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 {
for (int i = 0; i < notifies_.size(); i++) {
output.writeMessage(1, notifies_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < notifies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, notifies_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.NotifyRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.NotifyRequest other = (NotificationServiceOuterClass.NotifyRequest) obj;
if (!getNotifiesList()
.equals(other.getNotifiesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNotifiesCount() > 0) {
hash = (37 * hash) + NOTIFIES_FIELD_NUMBER;
hash = (53 * hash) + getNotifiesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyRequest 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 NotificationServiceOuterClass.NotifyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyRequest 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 NotificationServiceOuterClass.NotifyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyRequest 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(NotificationServiceOuterClass.NotifyRequest 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;
}
/**
* Protobuf type {@code notification_service.NotifyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.NotifyRequest)
NotificationServiceOuterClass.NotifyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyRequest.class, NotificationServiceOuterClass.NotifyRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.NotifyRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNotifiesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (notifiesBuilder_ == null) {
notifies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
notifiesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.NotifyRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyRequest build() {
NotificationServiceOuterClass.NotifyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyRequest buildPartial() {
NotificationServiceOuterClass.NotifyRequest result = new NotificationServiceOuterClass.NotifyRequest(this);
int from_bitField0_ = bitField0_;
if (notifiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
notifies_ = java.util.Collections.unmodifiableList(notifies_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.notifies_ = notifies_;
} else {
result.notifies_ = notifiesBuilder_.build();
}
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.NotifyRequest) {
return mergeFrom((NotificationServiceOuterClass.NotifyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.NotifyRequest other) {
if (other == NotificationServiceOuterClass.NotifyRequest.getDefaultInstance()) return this;
if (notifiesBuilder_ == null) {
if (!other.notifies_.isEmpty()) {
if (notifies_.isEmpty()) {
notifies_ = other.notifies_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNotifiesIsMutable();
notifies_.addAll(other.notifies_);
}
onChanged();
}
} else {
if (!other.notifies_.isEmpty()) {
if (notifiesBuilder_.isEmpty()) {
notifiesBuilder_.dispose();
notifiesBuilder_ = null;
notifies_ = other.notifies_;
bitField0_ = (bitField0_ & ~0x00000001);
notifiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNotifiesFieldBuilder() : null;
} else {
notifiesBuilder_.addAllMessages(other.notifies_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.NotifyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.NotifyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List notifies_ =
java.util.Collections.emptyList();
private void ensureNotifiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
notifies_ = new java.util.ArrayList(notifies_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.Notify, NotificationServiceOuterClass.Notify.Builder, NotificationServiceOuterClass.NotifyOrBuilder> notifiesBuilder_;
/**
* repeated .notification_service.Notify notifies = 1;
*/
public java.util.List getNotifiesList() {
if (notifiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(notifies_);
} else {
return notifiesBuilder_.getMessageList();
}
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public int getNotifiesCount() {
if (notifiesBuilder_ == null) {
return notifies_.size();
} else {
return notifiesBuilder_.getCount();
}
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public NotificationServiceOuterClass.Notify getNotifies(int index) {
if (notifiesBuilder_ == null) {
return notifies_.get(index);
} else {
return notifiesBuilder_.getMessage(index);
}
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder setNotifies(
int index, NotificationServiceOuterClass.Notify value) {
if (notifiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotifiesIsMutable();
notifies_.set(index, value);
onChanged();
} else {
notifiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder setNotifies(
int index, NotificationServiceOuterClass.Notify.Builder builderForValue) {
if (notifiesBuilder_ == null) {
ensureNotifiesIsMutable();
notifies_.set(index, builderForValue.build());
onChanged();
} else {
notifiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder addNotifies(NotificationServiceOuterClass.Notify value) {
if (notifiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotifiesIsMutable();
notifies_.add(value);
onChanged();
} else {
notifiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder addNotifies(
int index, NotificationServiceOuterClass.Notify value) {
if (notifiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotifiesIsMutable();
notifies_.add(index, value);
onChanged();
} else {
notifiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder addNotifies(
NotificationServiceOuterClass.Notify.Builder builderForValue) {
if (notifiesBuilder_ == null) {
ensureNotifiesIsMutable();
notifies_.add(builderForValue.build());
onChanged();
} else {
notifiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder addNotifies(
int index, NotificationServiceOuterClass.Notify.Builder builderForValue) {
if (notifiesBuilder_ == null) {
ensureNotifiesIsMutable();
notifies_.add(index, builderForValue.build());
onChanged();
} else {
notifiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder addAllNotifies(
java.lang.Iterable extends NotificationServiceOuterClass.Notify> values) {
if (notifiesBuilder_ == null) {
ensureNotifiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notifies_);
onChanged();
} else {
notifiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder clearNotifies() {
if (notifiesBuilder_ == null) {
notifies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
notifiesBuilder_.clear();
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public Builder removeNotifies(int index) {
if (notifiesBuilder_ == null) {
ensureNotifiesIsMutable();
notifies_.remove(index);
onChanged();
} else {
notifiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public NotificationServiceOuterClass.Notify.Builder getNotifiesBuilder(
int index) {
return getNotifiesFieldBuilder().getBuilder(index);
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public NotificationServiceOuterClass.NotifyOrBuilder getNotifiesOrBuilder(
int index) {
if (notifiesBuilder_ == null) {
return notifies_.get(index); } else {
return notifiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public java.util.List extends NotificationServiceOuterClass.NotifyOrBuilder>
getNotifiesOrBuilderList() {
if (notifiesBuilder_ != null) {
return notifiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(notifies_);
}
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public NotificationServiceOuterClass.Notify.Builder addNotifiesBuilder() {
return getNotifiesFieldBuilder().addBuilder(
NotificationServiceOuterClass.Notify.getDefaultInstance());
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public NotificationServiceOuterClass.Notify.Builder addNotifiesBuilder(
int index) {
return getNotifiesFieldBuilder().addBuilder(
index, NotificationServiceOuterClass.Notify.getDefaultInstance());
}
/**
* repeated .notification_service.Notify notifies = 1;
*/
public java.util.List
getNotifiesBuilderList() {
return getNotifiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.Notify, NotificationServiceOuterClass.Notify.Builder, NotificationServiceOuterClass.NotifyOrBuilder>
getNotifiesFieldBuilder() {
if (notifiesBuilder_ == null) {
notifiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.Notify, NotificationServiceOuterClass.Notify.Builder, NotificationServiceOuterClass.NotifyOrBuilder>(
notifies_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
notifies_ = null;
}
return notifiesBuilder_;
}
@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:notification_service.NotifyRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.NotifyRequest)
private static final NotificationServiceOuterClass.NotifyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.NotifyRequest();
}
public static NotificationServiceOuterClass.NotifyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NotifyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NotifyRequest(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 NotificationServiceOuterClass.NotifyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotifyResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.NotifyResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
int getReturnCodeValue();
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
NotificationServiceOuterClass.ReturnStatus getReturnCode();
/**
* string return_msg = 2;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
}
/**
* Protobuf type {@code notification_service.NotifyResponse}
*/
public static final class NotifyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.NotifyResponse)
NotifyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use NotifyResponse.newBuilder() to construct.
private NotifyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NotifyResponse() {
returnCode_ = 0;
returnMsg_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NotifyResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NotifyResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
int rawValue = input.readEnum();
returnCode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyResponse.class, NotificationServiceOuterClass.NotifyResponse.Builder.class);
}
public static final int RETURN_CODE_FIELD_NUMBER = 1;
private int returnCode_;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
public static final int RETURN_MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 2;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = 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 (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
output.writeEnum(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnMsg_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnMsg_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.NotifyResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.NotifyResponse other = (NotificationServiceOuterClass.NotifyResponse) obj;
if (returnCode_ != other.returnCode_) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + returnCode_;
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyResponse 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 NotificationServiceOuterClass.NotifyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyResponse 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 NotificationServiceOuterClass.NotifyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyResponse 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(NotificationServiceOuterClass.NotifyResponse 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;
}
/**
* Protobuf type {@code notification_service.NotifyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.NotifyResponse)
NotificationServiceOuterClass.NotifyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyResponse.class, NotificationServiceOuterClass.NotifyResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.NotifyResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
returnCode_ = 0;
returnMsg_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.NotifyResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyResponse build() {
NotificationServiceOuterClass.NotifyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyResponse buildPartial() {
NotificationServiceOuterClass.NotifyResponse result = new NotificationServiceOuterClass.NotifyResponse(this);
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.NotifyResponse) {
return mergeFrom((NotificationServiceOuterClass.NotifyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.NotifyResponse other) {
if (other == NotificationServiceOuterClass.NotifyResponse.getDefaultInstance()) return this;
if (other.returnCode_ != 0) {
setReturnCodeValue(other.getReturnCodeValue());
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.NotifyResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.NotifyResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int returnCode_ = 0;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The enum numeric value on the wire for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeValue(int value) {
returnCode_ = value;
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override
public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(NotificationServiceOuterClass.ReturnStatus value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = 0;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 2;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 2;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 2;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 2;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
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:notification_service.NotifyResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.NotifyResponse)
private static final NotificationServiceOuterClass.NotifyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.NotifyResponse();
}
public static NotificationServiceOuterClass.NotifyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NotifyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NotifyResponse(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 NotificationServiceOuterClass.NotifyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListMembersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.ListMembersRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
int getTimeoutSeconds();
}
/**
* Protobuf type {@code notification_service.ListMembersRequest}
*/
public static final class ListMembersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.ListMembersRequest)
ListMembersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListMembersRequest.newBuilder() to construct.
private ListMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListMembersRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListMembersRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListMembersRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
timeoutSeconds_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListMembersRequest.class, NotificationServiceOuterClass.ListMembersRequest.Builder.class);
}
public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 1;
private int timeoutSeconds_;
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
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 (timeoutSeconds_ != 0) {
output.writeInt32(1, timeoutSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timeoutSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, timeoutSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.ListMembersRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.ListMembersRequest other = (NotificationServiceOuterClass.ListMembersRequest) obj;
if (getTimeoutSeconds()
!= other.getTimeoutSeconds()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + TIMEOUT_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutSeconds();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersRequest 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 NotificationServiceOuterClass.ListMembersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersRequest 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 NotificationServiceOuterClass.ListMembersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersRequest 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(NotificationServiceOuterClass.ListMembersRequest 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;
}
/**
* Protobuf type {@code notification_service.ListMembersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.ListMembersRequest)
NotificationServiceOuterClass.ListMembersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListMembersRequest.class, NotificationServiceOuterClass.ListMembersRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.ListMembersRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timeoutSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.ListMembersRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersRequest build() {
NotificationServiceOuterClass.ListMembersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersRequest buildPartial() {
NotificationServiceOuterClass.ListMembersRequest result = new NotificationServiceOuterClass.ListMembersRequest(this);
result.timeoutSeconds_ = timeoutSeconds_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.ListMembersRequest) {
return mergeFrom((NotificationServiceOuterClass.ListMembersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.ListMembersRequest other) {
if (other == NotificationServiceOuterClass.ListMembersRequest.getDefaultInstance()) return this;
if (other.getTimeoutSeconds() != 0) {
setTimeoutSeconds(other.getTimeoutSeconds());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.ListMembersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.ListMembersRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int timeoutSeconds_ ;
/**
* int32 timeout_seconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
/**
* int32 timeout_seconds = 1;
* @param value The timeoutSeconds to set.
* @return This builder for chaining.
*/
public Builder setTimeoutSeconds(int value) {
timeoutSeconds_ = value;
onChanged();
return this;
}
/**
* int32 timeout_seconds = 1;
* @return This builder for chaining.
*/
public Builder clearTimeoutSeconds() {
timeoutSeconds_ = 0;
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:notification_service.ListMembersRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.ListMembersRequest)
private static final NotificationServiceOuterClass.ListMembersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.ListMembersRequest();
}
public static NotificationServiceOuterClass.ListMembersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListMembersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListMembersRequest(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 NotificationServiceOuterClass.ListMembersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListMembersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.ListMembersResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
int getReturnCodeValue();
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
NotificationServiceOuterClass.ReturnStatus getReturnCode();
/**
* string return_msg = 2;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
/**
* repeated .notification_service.MemberProto members = 3;
*/
java.util.List
getMembersList();
/**
* repeated .notification_service.MemberProto members = 3;
*/
NotificationServiceOuterClass.MemberProto getMembers(int index);
/**
* repeated .notification_service.MemberProto members = 3;
*/
int getMembersCount();
/**
* repeated .notification_service.MemberProto members = 3;
*/
java.util.List extends NotificationServiceOuterClass.MemberProtoOrBuilder>
getMembersOrBuilderList();
/**
* repeated .notification_service.MemberProto members = 3;
*/
NotificationServiceOuterClass.MemberProtoOrBuilder getMembersOrBuilder(
int index);
}
/**
* Protobuf type {@code notification_service.ListMembersResponse}
*/
public static final class ListMembersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.ListMembersResponse)
ListMembersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListMembersResponse.newBuilder() to construct.
private ListMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListMembersResponse() {
returnCode_ = 0;
returnMsg_ = "";
members_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListMembersResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListMembersResponse(
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 8: {
int rawValue = input.readEnum();
returnCode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
members_.add(
input.readMessage(NotificationServiceOuterClass.MemberProto.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)) {
members_ = java.util.Collections.unmodifiableList(members_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListMembersResponse.class, NotificationServiceOuterClass.ListMembersResponse.Builder.class);
}
public static final int RETURN_CODE_FIELD_NUMBER = 1;
private int returnCode_;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
public static final int RETURN_MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 2;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBERS_FIELD_NUMBER = 3;
private java.util.List members_;
/**
* repeated .notification_service.MemberProto members = 3;
*/
@java.lang.Override
public java.util.List getMembersList() {
return members_;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
@java.lang.Override
public java.util.List extends NotificationServiceOuterClass.MemberProtoOrBuilder>
getMembersOrBuilderList() {
return members_;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
@java.lang.Override
public int getMembersCount() {
return members_.size();
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
@java.lang.Override
public NotificationServiceOuterClass.MemberProto getMembers(int index) {
return members_.get(index);
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
@java.lang.Override
public NotificationServiceOuterClass.MemberProtoOrBuilder getMembersOrBuilder(
int index) {
return members_.get(index);
}
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 (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
output.writeEnum(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnMsg_);
}
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(3, members_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnMsg_);
}
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, members_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.ListMembersResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.ListMembersResponse other = (NotificationServiceOuterClass.ListMembersResponse) obj;
if (returnCode_ != other.returnCode_) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (!getMembersList()
.equals(other.getMembersList())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + returnCode_;
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
if (getMembersCount() > 0) {
hash = (37 * hash) + MEMBERS_FIELD_NUMBER;
hash = (53 * hash) + getMembersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.ListMembersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersResponse 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 NotificationServiceOuterClass.ListMembersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersResponse 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 NotificationServiceOuterClass.ListMembersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.ListMembersResponse 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(NotificationServiceOuterClass.ListMembersResponse 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;
}
/**
* Protobuf type {@code notification_service.ListMembersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.ListMembersResponse)
NotificationServiceOuterClass.ListMembersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.ListMembersResponse.class, NotificationServiceOuterClass.ListMembersResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.ListMembersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMembersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
returnCode_ = 0;
returnMsg_ = "";
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
membersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_ListMembersResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersResponse build() {
NotificationServiceOuterClass.ListMembersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.ListMembersResponse buildPartial() {
NotificationServiceOuterClass.ListMembersResponse result = new NotificationServiceOuterClass.ListMembersResponse(this);
int from_bitField0_ = bitField0_;
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
if (membersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
members_ = java.util.Collections.unmodifiableList(members_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.members_ = members_;
} else {
result.members_ = membersBuilder_.build();
}
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.ListMembersResponse) {
return mergeFrom((NotificationServiceOuterClass.ListMembersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.ListMembersResponse other) {
if (other == NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance()) return this;
if (other.returnCode_ != 0) {
setReturnCodeValue(other.getReturnCodeValue());
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
if (membersBuilder_ == null) {
if (!other.members_.isEmpty()) {
if (members_.isEmpty()) {
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMembersIsMutable();
members_.addAll(other.members_);
}
onChanged();
}
} else {
if (!other.members_.isEmpty()) {
if (membersBuilder_.isEmpty()) {
membersBuilder_.dispose();
membersBuilder_ = null;
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
membersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMembersFieldBuilder() : null;
} else {
membersBuilder_.addAllMessages(other.members_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.ListMembersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.ListMembersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int returnCode_ = 0;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The enum numeric value on the wire for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeValue(int value) {
returnCode_ = value;
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override
public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(NotificationServiceOuterClass.ReturnStatus value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = 0;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 2;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 2;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 2;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 2;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
onChanged();
return this;
}
private java.util.List members_ =
java.util.Collections.emptyList();
private void ensureMembersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList(members_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder> membersBuilder_;
/**
* repeated .notification_service.MemberProto members = 3;
*/
public java.util.List getMembersList() {
if (membersBuilder_ == null) {
return java.util.Collections.unmodifiableList(members_);
} else {
return membersBuilder_.getMessageList();
}
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public int getMembersCount() {
if (membersBuilder_ == null) {
return members_.size();
} else {
return membersBuilder_.getCount();
}
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public NotificationServiceOuterClass.MemberProto getMembers(int index) {
if (membersBuilder_ == null) {
return members_.get(index);
} else {
return membersBuilder_.getMessage(index);
}
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder setMembers(
int index, NotificationServiceOuterClass.MemberProto value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.set(index, value);
onChanged();
} else {
membersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder setMembers(
int index, NotificationServiceOuterClass.MemberProto.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.set(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder addMembers(NotificationServiceOuterClass.MemberProto value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(value);
onChanged();
} else {
membersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder addMembers(
int index, NotificationServiceOuterClass.MemberProto value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(index, value);
onChanged();
} else {
membersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder addMembers(
NotificationServiceOuterClass.MemberProto.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder addMembers(
int index, NotificationServiceOuterClass.MemberProto.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder addAllMembers(
java.lang.Iterable extends NotificationServiceOuterClass.MemberProto> values) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, members_);
onChanged();
} else {
membersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder clearMembers() {
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
membersBuilder_.clear();
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public Builder removeMembers(int index) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.remove(index);
onChanged();
} else {
membersBuilder_.remove(index);
}
return this;
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public NotificationServiceOuterClass.MemberProto.Builder getMembersBuilder(
int index) {
return getMembersFieldBuilder().getBuilder(index);
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public NotificationServiceOuterClass.MemberProtoOrBuilder getMembersOrBuilder(
int index) {
if (membersBuilder_ == null) {
return members_.get(index); } else {
return membersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public java.util.List extends NotificationServiceOuterClass.MemberProtoOrBuilder>
getMembersOrBuilderList() {
if (membersBuilder_ != null) {
return membersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(members_);
}
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public NotificationServiceOuterClass.MemberProto.Builder addMembersBuilder() {
return getMembersFieldBuilder().addBuilder(
NotificationServiceOuterClass.MemberProto.getDefaultInstance());
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public NotificationServiceOuterClass.MemberProto.Builder addMembersBuilder(
int index) {
return getMembersFieldBuilder().addBuilder(
index, NotificationServiceOuterClass.MemberProto.getDefaultInstance());
}
/**
* repeated .notification_service.MemberProto members = 3;
*/
public java.util.List
getMembersBuilderList() {
return getMembersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder>
getMembersFieldBuilder() {
if (membersBuilder_ == null) {
membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder>(
members_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
members_ = null;
}
return membersBuilder_;
}
@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:notification_service.ListMembersResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.ListMembersResponse)
private static final NotificationServiceOuterClass.ListMembersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.ListMembersResponse();
}
public static NotificationServiceOuterClass.ListMembersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListMembersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListMembersResponse(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 NotificationServiceOuterClass.ListMembersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotifyNewMemberRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.NotifyNewMemberRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.MemberProto member = 1;
* @return Whether the member field is set.
*/
boolean hasMember();
/**
* .notification_service.MemberProto member = 1;
* @return The member.
*/
NotificationServiceOuterClass.MemberProto getMember();
/**
* .notification_service.MemberProto member = 1;
*/
NotificationServiceOuterClass.MemberProtoOrBuilder getMemberOrBuilder();
}
/**
* Protobuf type {@code notification_service.NotifyNewMemberRequest}
*/
public static final class NotifyNewMemberRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.NotifyNewMemberRequest)
NotifyNewMemberRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NotifyNewMemberRequest.newBuilder() to construct.
private NotifyNewMemberRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NotifyNewMemberRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NotifyNewMemberRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NotifyNewMemberRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
NotificationServiceOuterClass.MemberProto.Builder subBuilder = null;
if (member_ != null) {
subBuilder = member_.toBuilder();
}
member_ = input.readMessage(NotificationServiceOuterClass.MemberProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(member_);
member_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyNewMemberRequest.class, NotificationServiceOuterClass.NotifyNewMemberRequest.Builder.class);
}
public static final int MEMBER_FIELD_NUMBER = 1;
private NotificationServiceOuterClass.MemberProto member_;
/**
* .notification_service.MemberProto member = 1;
* @return Whether the member field is set.
*/
@java.lang.Override
public boolean hasMember() {
return member_ != null;
}
/**
* .notification_service.MemberProto member = 1;
* @return The member.
*/
@java.lang.Override
public NotificationServiceOuterClass.MemberProto getMember() {
return member_ == null ? NotificationServiceOuterClass.MemberProto.getDefaultInstance() : member_;
}
/**
* .notification_service.MemberProto member = 1;
*/
@java.lang.Override
public NotificationServiceOuterClass.MemberProtoOrBuilder getMemberOrBuilder() {
return getMember();
}
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 (member_ != null) {
output.writeMessage(1, getMember());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (member_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMember());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.NotifyNewMemberRequest)) {
return super.equals(obj);
}
NotificationServiceOuterClass.NotifyNewMemberRequest other = (NotificationServiceOuterClass.NotifyNewMemberRequest) obj;
if (hasMember() != other.hasMember()) return false;
if (hasMember()) {
if (!getMember()
.equals(other.getMember())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMember()) {
hash = (37 * hash) + MEMBER_FIELD_NUMBER;
hash = (53 * hash) + getMember().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest 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 NotificationServiceOuterClass.NotifyNewMemberRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest 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 NotificationServiceOuterClass.NotifyNewMemberRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest 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(NotificationServiceOuterClass.NotifyNewMemberRequest 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;
}
/**
* Protobuf type {@code notification_service.NotifyNewMemberRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.NotifyNewMemberRequest)
NotificationServiceOuterClass.NotifyNewMemberRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyNewMemberRequest.class, NotificationServiceOuterClass.NotifyNewMemberRequest.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.NotifyNewMemberRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (memberBuilder_ == null) {
member_ = null;
} else {
member_ = null;
memberBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberRequest_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberRequest getDefaultInstanceForType() {
return NotificationServiceOuterClass.NotifyNewMemberRequest.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberRequest build() {
NotificationServiceOuterClass.NotifyNewMemberRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberRequest buildPartial() {
NotificationServiceOuterClass.NotifyNewMemberRequest result = new NotificationServiceOuterClass.NotifyNewMemberRequest(this);
if (memberBuilder_ == null) {
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.NotifyNewMemberRequest) {
return mergeFrom((NotificationServiceOuterClass.NotifyNewMemberRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.NotifyNewMemberRequest other) {
if (other == NotificationServiceOuterClass.NotifyNewMemberRequest.getDefaultInstance()) return this;
if (other.hasMember()) {
mergeMember(other.getMember());
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.NotifyNewMemberRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.NotifyNewMemberRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private NotificationServiceOuterClass.MemberProto member_;
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder> memberBuilder_;
/**
* .notification_service.MemberProto member = 1;
* @return Whether the member field is set.
*/
public boolean hasMember() {
return memberBuilder_ != null || member_ != null;
}
/**
* .notification_service.MemberProto member = 1;
* @return The member.
*/
public NotificationServiceOuterClass.MemberProto getMember() {
if (memberBuilder_ == null) {
return member_ == null ? NotificationServiceOuterClass.MemberProto.getDefaultInstance() : member_;
} else {
return memberBuilder_.getMessage();
}
}
/**
* .notification_service.MemberProto member = 1;
*/
public Builder setMember(NotificationServiceOuterClass.MemberProto value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
member_ = value;
onChanged();
} else {
memberBuilder_.setMessage(value);
}
return this;
}
/**
* .notification_service.MemberProto member = 1;
*/
public Builder setMember(
NotificationServiceOuterClass.MemberProto.Builder builderForValue) {
if (memberBuilder_ == null) {
member_ = builderForValue.build();
onChanged();
} else {
memberBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .notification_service.MemberProto member = 1;
*/
public Builder mergeMember(NotificationServiceOuterClass.MemberProto value) {
if (memberBuilder_ == null) {
if (member_ != null) {
member_ =
NotificationServiceOuterClass.MemberProto.newBuilder(member_).mergeFrom(value).buildPartial();
} else {
member_ = value;
}
onChanged();
} else {
memberBuilder_.mergeFrom(value);
}
return this;
}
/**
* .notification_service.MemberProto member = 1;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = null;
onChanged();
} else {
member_ = null;
memberBuilder_ = null;
}
return this;
}
/**
* .notification_service.MemberProto member = 1;
*/
public NotificationServiceOuterClass.MemberProto.Builder getMemberBuilder() {
onChanged();
return getMemberFieldBuilder().getBuilder();
}
/**
* .notification_service.MemberProto member = 1;
*/
public NotificationServiceOuterClass.MemberProtoOrBuilder getMemberOrBuilder() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilder();
} else {
return member_ == null ?
NotificationServiceOuterClass.MemberProto.getDefaultInstance() : member_;
}
}
/**
* .notification_service.MemberProto member = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
NotificationServiceOuterClass.MemberProto, NotificationServiceOuterClass.MemberProto.Builder, NotificationServiceOuterClass.MemberProtoOrBuilder>(
getMember(),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
@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:notification_service.NotifyNewMemberRequest)
}
// @@protoc_insertion_point(class_scope:notification_service.NotifyNewMemberRequest)
private static final NotificationServiceOuterClass.NotifyNewMemberRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.NotifyNewMemberRequest();
}
public static NotificationServiceOuterClass.NotifyNewMemberRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NotifyNewMemberRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NotifyNewMemberRequest(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 NotificationServiceOuterClass.NotifyNewMemberRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotifyNewMemberResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:notification_service.NotifyNewMemberResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
int getReturnCodeValue();
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
NotificationServiceOuterClass.ReturnStatus getReturnCode();
/**
* string return_msg = 2;
* @return The returnMsg.
*/
java.lang.String getReturnMsg();
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
com.google.protobuf.ByteString
getReturnMsgBytes();
}
/**
* Protobuf type {@code notification_service.NotifyNewMemberResponse}
*/
public static final class NotifyNewMemberResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:notification_service.NotifyNewMemberResponse)
NotifyNewMemberResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use NotifyNewMemberResponse.newBuilder() to construct.
private NotifyNewMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NotifyNewMemberResponse() {
returnCode_ = 0;
returnMsg_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NotifyNewMemberResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NotifyNewMemberResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
int rawValue = input.readEnum();
returnCode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
returnMsg_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyNewMemberResponse.class, NotificationServiceOuterClass.NotifyNewMemberResponse.Builder.class);
}
public static final int RETURN_CODE_FIELD_NUMBER = 1;
private int returnCode_;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
public static final int RETURN_MSG_FIELD_NUMBER = 2;
private volatile java.lang.Object returnMsg_;
/**
* string return_msg = 2;
* @return The returnMsg.
*/
@java.lang.Override
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
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();
returnMsg_ = s;
return s;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = 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 (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
output.writeEnum(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnMsg_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (returnCode_ != NotificationServiceOuterClass.ReturnStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, returnCode_);
}
if (!getReturnMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnMsg_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof NotificationServiceOuterClass.NotifyNewMemberResponse)) {
return super.equals(obj);
}
NotificationServiceOuterClass.NotifyNewMemberResponse other = (NotificationServiceOuterClass.NotifyNewMemberResponse) obj;
if (returnCode_ != other.returnCode_) return false;
if (!getReturnMsg()
.equals(other.getReturnMsg())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + RETURN_CODE_FIELD_NUMBER;
hash = (53 * hash) + returnCode_;
hash = (37 * hash) + RETURN_MSG_FIELD_NUMBER;
hash = (53 * hash) + getReturnMsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse 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 NotificationServiceOuterClass.NotifyNewMemberResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse 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 NotificationServiceOuterClass.NotifyNewMemberResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse 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(NotificationServiceOuterClass.NotifyNewMemberResponse 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;
}
/**
* Protobuf type {@code notification_service.NotifyNewMemberResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:notification_service.NotifyNewMemberResponse)
NotificationServiceOuterClass.NotifyNewMemberResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NotificationServiceOuterClass.NotifyNewMemberResponse.class, NotificationServiceOuterClass.NotifyNewMemberResponse.Builder.class);
}
// Construct using com.aiflow.notification.proto.NotificationServiceOuterClass.NotifyNewMemberResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
returnCode_ = 0;
returnMsg_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return NotificationServiceOuterClass.internal_static_notification_service_NotifyNewMemberResponse_descriptor;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberResponse getDefaultInstanceForType() {
return NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance();
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberResponse build() {
NotificationServiceOuterClass.NotifyNewMemberResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public NotificationServiceOuterClass.NotifyNewMemberResponse buildPartial() {
NotificationServiceOuterClass.NotifyNewMemberResponse result = new NotificationServiceOuterClass.NotifyNewMemberResponse(this);
result.returnCode_ = returnCode_;
result.returnMsg_ = returnMsg_;
onBuilt();
return result;
}
@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 NotificationServiceOuterClass.NotifyNewMemberResponse) {
return mergeFrom((NotificationServiceOuterClass.NotifyNewMemberResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(NotificationServiceOuterClass.NotifyNewMemberResponse other) {
if (other == NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance()) return this;
if (other.returnCode_ != 0) {
setReturnCodeValue(other.getReturnCodeValue());
}
if (!other.getReturnMsg().isEmpty()) {
returnMsg_ = other.returnMsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
NotificationServiceOuterClass.NotifyNewMemberResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (NotificationServiceOuterClass.NotifyNewMemberResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int returnCode_ = 0;
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The enum numeric value on the wire for returnCode.
*/
@java.lang.Override public int getReturnCodeValue() {
return returnCode_;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The enum numeric value on the wire for returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCodeValue(int value) {
returnCode_ = value;
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return The returnCode.
*/
@java.lang.Override
public NotificationServiceOuterClass.ReturnStatus getReturnCode() {
@SuppressWarnings("deprecation")
NotificationServiceOuterClass.ReturnStatus result = NotificationServiceOuterClass.ReturnStatus.valueOf(returnCode_);
return result == null ? NotificationServiceOuterClass.ReturnStatus.UNRECOGNIZED : result;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @param value The returnCode to set.
* @return This builder for chaining.
*/
public Builder setReturnCode(NotificationServiceOuterClass.ReturnStatus value) {
if (value == null) {
throw new NullPointerException();
}
returnCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .notification_service.ReturnStatus return_code = 1;
* @return This builder for chaining.
*/
public Builder clearReturnCode() {
returnCode_ = 0;
onChanged();
return this;
}
private java.lang.Object returnMsg_ = "";
/**
* string return_msg = 2;
* @return The returnMsg.
*/
public java.lang.String getReturnMsg() {
java.lang.Object ref = returnMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string return_msg = 2;
* @return The bytes for returnMsg.
*/
public com.google.protobuf.ByteString
getReturnMsgBytes() {
java.lang.Object ref = returnMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string return_msg = 2;
* @param value The returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
returnMsg_ = value;
onChanged();
return this;
}
/**
* string return_msg = 2;
* @return This builder for chaining.
*/
public Builder clearReturnMsg() {
returnMsg_ = getDefaultInstance().getReturnMsg();
onChanged();
return this;
}
/**
* string return_msg = 2;
* @param value The bytes for returnMsg to set.
* @return This builder for chaining.
*/
public Builder setReturnMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
returnMsg_ = value;
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:notification_service.NotifyNewMemberResponse)
}
// @@protoc_insertion_point(class_scope:notification_service.NotifyNewMemberResponse)
private static final NotificationServiceOuterClass.NotifyNewMemberResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NotificationServiceOuterClass.NotifyNewMemberResponse();
}
public static NotificationServiceOuterClass.NotifyNewMemberResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NotifyNewMemberResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NotifyNewMemberResponse(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 NotificationServiceOuterClass.NotifyNewMemberResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
/**
*
* AirFlowService provides notification function rest endpoint of NotificationService for Notification Service component.
* Functions of NotificationService include:
* 1.Send event.
* 2.List events.
*
*
* Protobuf service {@code notification_service.NotificationService}
*/
public static abstract class NotificationService
implements com.google.protobuf.Service {
protected NotificationService() {}
public interface Interface {
/**
*
* Send event.
*
*
* rpc sendEvent(.notification_service.SendEventRequest) returns (.notification_service.SendEventsResponse) { ... }
*/
public abstract void sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List events.
*
*
* rpc listEvents(.notification_service.ListEventsRequest) returns (.notification_service.ListEventsResponse) { ... }
*/
public abstract void listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List all events
*
*
* rpc listAllEvents(.notification_service.ListAllEventsRequest) returns (.notification_service.ListEventsResponse) { ... }
*/
public abstract void listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Accepts notifications from other members.
*
*
* rpc notify(.notification_service.NotifyRequest) returns (.notification_service.NotifyResponse) { ... }
*/
public abstract void notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List current living members.
*
*
* rpc listMembers(.notification_service.ListMembersRequest) returns (.notification_service.ListMembersResponse) { ... }
*/
public abstract void listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Notify current members that there is a new member added.
*
*
* rpc notifyNewMember(.notification_service.NotifyNewMemberRequest) returns (.notification_service.NotifyNewMemberResponse) { ... }
*/
public abstract void notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Get latest version by key
*
*
* rpc getLatestVersionByKey(.notification_service.GetLatestVersionByKeyRequest) returns (.notification_service.GetLatestVersionResponse) { ... }
*/
public abstract void getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request,
com.google.protobuf.RpcCallback done);
}
public static com.google.protobuf.Service newReflectiveService(
final Interface impl) {
return new NotificationService() {
@java.lang.Override
public void sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request,
com.google.protobuf.RpcCallback done) {
impl.sendEvent(controller, request, done);
}
@java.lang.Override
public void listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request,
com.google.protobuf.RpcCallback done) {
impl.listEvents(controller, request, done);
}
@java.lang.Override
public void listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request,
com.google.protobuf.RpcCallback done) {
impl.listAllEvents(controller, request, done);
}
@java.lang.Override
public void notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request,
com.google.protobuf.RpcCallback done) {
impl.notify(controller, request, done);
}
@java.lang.Override
public void listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request,
com.google.protobuf.RpcCallback done) {
impl.listMembers(controller, request, done);
}
@java.lang.Override
public void notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request,
com.google.protobuf.RpcCallback done) {
impl.notifyNewMember(controller, request, done);
}
@java.lang.Override
public void getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request,
com.google.protobuf.RpcCallback done) {
impl.getLatestVersionByKey(controller, request, done);
}
};
}
public static com.google.protobuf.BlockingService
newReflectiveBlockingService(final BlockingInterface impl) {
return new com.google.protobuf.BlockingService() {
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final com.google.protobuf.Message callBlockingMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request)
throws com.google.protobuf.ServiceException {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callBlockingMethod() given method descriptor for " +
"wrong service type.");
}
switch(method.getIndex()) {
case 0:
return impl.sendEvent(controller, (NotificationServiceOuterClass.SendEventRequest)request);
case 1:
return impl.listEvents(controller, (NotificationServiceOuterClass.ListEventsRequest)request);
case 2:
return impl.listAllEvents(controller, (NotificationServiceOuterClass.ListAllEventsRequest)request);
case 3:
return impl.notify(controller, (NotificationServiceOuterClass.NotifyRequest)request);
case 4:
return impl.listMembers(controller, (NotificationServiceOuterClass.ListMembersRequest)request);
case 5:
return impl.notifyNewMember(controller, (NotificationServiceOuterClass.NotifyNewMemberRequest)request);
case 6:
return impl.getLatestVersionByKey(controller, (NotificationServiceOuterClass.GetLatestVersionByKeyRequest)request);
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return NotificationServiceOuterClass.SendEventRequest.getDefaultInstance();
case 1:
return NotificationServiceOuterClass.ListEventsRequest.getDefaultInstance();
case 2:
return NotificationServiceOuterClass.ListAllEventsRequest.getDefaultInstance();
case 3:
return NotificationServiceOuterClass.NotifyRequest.getDefaultInstance();
case 4:
return NotificationServiceOuterClass.ListMembersRequest.getDefaultInstance();
case 5:
return NotificationServiceOuterClass.NotifyNewMemberRequest.getDefaultInstance();
case 6:
return NotificationServiceOuterClass.GetLatestVersionByKeyRequest.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance();
case 1:
return NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance();
case 2:
return NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance();
case 3:
return NotificationServiceOuterClass.NotifyResponse.getDefaultInstance();
case 4:
return NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance();
case 5:
return NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance();
case 6:
return NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
};
}
/**
*
* Send event.
*
*
* rpc sendEvent(.notification_service.SendEventRequest) returns (.notification_service.SendEventsResponse) { ... }
*/
public abstract void sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List events.
*
*
* rpc listEvents(.notification_service.ListEventsRequest) returns (.notification_service.ListEventsResponse) { ... }
*/
public abstract void listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List all events
*
*
* rpc listAllEvents(.notification_service.ListAllEventsRequest) returns (.notification_service.ListEventsResponse) { ... }
*/
public abstract void listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Accepts notifications from other members.
*
*
* rpc notify(.notification_service.NotifyRequest) returns (.notification_service.NotifyResponse) { ... }
*/
public abstract void notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* List current living members.
*
*
* rpc listMembers(.notification_service.ListMembersRequest) returns (.notification_service.ListMembersResponse) { ... }
*/
public abstract void listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Notify current members that there is a new member added.
*
*
* rpc notifyNewMember(.notification_service.NotifyNewMemberRequest) returns (.notification_service.NotifyNewMemberResponse) { ... }
*/
public abstract void notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request,
com.google.protobuf.RpcCallback done);
/**
*
* Get latest version by key
*
*
* rpc getLatestVersionByKey(.notification_service.GetLatestVersionByKeyRequest) returns (.notification_service.GetLatestVersionResponse) { ... }
*/
public abstract void getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request,
com.google.protobuf.RpcCallback done);
public static final
com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptor() {
return NotificationServiceOuterClass.getDescriptor().getServices().get(0);
}
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final void callMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.RpcCallback<
com.google.protobuf.Message> done) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callMethod() given method descriptor for wrong " +
"service type.");
}
switch(method.getIndex()) {
case 0:
this.sendEvent(controller, (NotificationServiceOuterClass.SendEventRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 1:
this.listEvents(controller, (NotificationServiceOuterClass.ListEventsRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 2:
this.listAllEvents(controller, (NotificationServiceOuterClass.ListAllEventsRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 3:
this.notify(controller, (NotificationServiceOuterClass.NotifyRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 4:
this.listMembers(controller, (NotificationServiceOuterClass.ListMembersRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 5:
this.notifyNewMember(controller, (NotificationServiceOuterClass.NotifyNewMemberRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 6:
this.getLatestVersionByKey(controller, (NotificationServiceOuterClass.GetLatestVersionByKeyRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return NotificationServiceOuterClass.SendEventRequest.getDefaultInstance();
case 1:
return NotificationServiceOuterClass.ListEventsRequest.getDefaultInstance();
case 2:
return NotificationServiceOuterClass.ListAllEventsRequest.getDefaultInstance();
case 3:
return NotificationServiceOuterClass.NotifyRequest.getDefaultInstance();
case 4:
return NotificationServiceOuterClass.ListMembersRequest.getDefaultInstance();
case 5:
return NotificationServiceOuterClass.NotifyNewMemberRequest.getDefaultInstance();
case 6:
return NotificationServiceOuterClass.GetLatestVersionByKeyRequest.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance();
case 1:
return NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance();
case 2:
return NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance();
case 3:
return NotificationServiceOuterClass.NotifyResponse.getDefaultInstance();
case 4:
return NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance();
case 5:
return NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance();
case 6:
return NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public static Stub newStub(
com.google.protobuf.RpcChannel channel) {
return new Stub(channel);
}
public static final class Stub extends NotificationServiceOuterClass.NotificationService implements Interface {
private Stub(com.google.protobuf.RpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.RpcChannel channel;
public com.google.protobuf.RpcChannel getChannel() {
return channel;
}
public void sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(0),
controller,
request,
NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.SendEventsResponse.class,
NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance()));
}
public void listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(1),
controller,
request,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.ListEventsResponse.class,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance()));
}
public void listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(2),
controller,
request,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.ListEventsResponse.class,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance()));
}
public void notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(3),
controller,
request,
NotificationServiceOuterClass.NotifyResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.NotifyResponse.class,
NotificationServiceOuterClass.NotifyResponse.getDefaultInstance()));
}
public void listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(4),
controller,
request,
NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.ListMembersResponse.class,
NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance()));
}
public void notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(5),
controller,
request,
NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.NotifyNewMemberResponse.class,
NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance()));
}
public void getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(6),
controller,
request,
NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
NotificationServiceOuterClass.GetLatestVersionResponse.class,
NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance()));
}
}
public static BlockingInterface newBlockingStub(
com.google.protobuf.BlockingRpcChannel channel) {
return new BlockingStub(channel);
}
public interface BlockingInterface {
public NotificationServiceOuterClass.SendEventsResponse sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.ListEventsResponse listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.ListEventsResponse listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.NotifyResponse notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.ListMembersResponse listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.NotifyNewMemberResponse notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request)
throws com.google.protobuf.ServiceException;
public NotificationServiceOuterClass.GetLatestVersionResponse getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request)
throws com.google.protobuf.ServiceException;
}
private static final class BlockingStub implements BlockingInterface {
private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.BlockingRpcChannel channel;
public NotificationServiceOuterClass.SendEventsResponse sendEvent(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.SendEventRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.SendEventsResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(0),
controller,
request,
NotificationServiceOuterClass.SendEventsResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.ListEventsResponse listEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListEventsRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.ListEventsResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(1),
controller,
request,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.ListEventsResponse listAllEvents(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListAllEventsRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.ListEventsResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(2),
controller,
request,
NotificationServiceOuterClass.ListEventsResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.NotifyResponse notify(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.NotifyResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(3),
controller,
request,
NotificationServiceOuterClass.NotifyResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.ListMembersResponse listMembers(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.ListMembersRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.ListMembersResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(4),
controller,
request,
NotificationServiceOuterClass.ListMembersResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.NotifyNewMemberResponse notifyNewMember(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.NotifyNewMemberRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.NotifyNewMemberResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(5),
controller,
request,
NotificationServiceOuterClass.NotifyNewMemberResponse.getDefaultInstance());
}
public NotificationServiceOuterClass.GetLatestVersionResponse getLatestVersionByKey(
com.google.protobuf.RpcController controller,
NotificationServiceOuterClass.GetLatestVersionByKeyRequest request)
throws com.google.protobuf.ServiceException {
return (NotificationServiceOuterClass.GetLatestVersionResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(6),
controller,
request,
NotificationServiceOuterClass.GetLatestVersionResponse.getDefaultInstance());
}
}
// @@protoc_insertion_point(class_scope:notification_service.NotificationService)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_EventProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_EventProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_SendEventRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_SendEventRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_SendEventsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_SendEventsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_ListEventsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_ListEventsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_ListAllEventsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_ListAllEventsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_ListEventsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_ListEventsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_GetLatestVersionByKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_GetLatestVersionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_GetLatestVersionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_MemberProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_MemberProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_Notify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_Notify_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_NotifyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_NotifyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_NotifyResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_NotifyResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_ListMembersRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_ListMembersRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_ListMembersResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_ListMembersResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_NotifyNewMemberRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_NotifyNewMemberRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_notification_service_NotifyNewMemberResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_notification_service_NotifyNewMemberResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032notification_service.proto\022\024notificati" +
"on_service\032\034google/api/annotations.proto" +
"\"\226\001\n\nEventProto\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
"\001(\t\022\022\n\nevent_type\030\003 \001(\t\022\017\n\007context\030\004 \001(\t" +
"\022\021\n\tnamespace\030\005 \001(\t\022\017\n\007version\030\006 \001(\003\022\023\n\013" +
"create_time\030\007 \001(\003\022\016\n\006sender\030\010 \001(\t\"Q\n\020Sen" +
"dEventRequest\022/\n\005event\030\001 \001(\0132 .notificat" +
"ion_service.EventProto\022\014\n\004uuid\030\002 \001(\t\"\222\001\n" +
"\022SendEventsResponse\022/\n\005event\030\001 \001(\0132 .not" +
"ification_service.EventProto\0227\n\013return_c" +
"ode\030\002 \001(\0162\".notification_service.ReturnS" +
"tatus\022\022\n\nreturn_msg\030\003 \001(\t\"\234\001\n\021ListEvents" +
"Request\022\014\n\004keys\030\001 \003(\t\022\022\n\nevent_type\030\002 \001(" +
"\t\022\022\n\nstart_time\030\003 \001(\003\022\025\n\rstart_version\030\004" +
" \001(\003\022\027\n\017timeout_seconds\030\005 \001(\005\022\021\n\tnamespa" +
"ce\030\006 \001(\t\022\016\n\006sender\030\007 \001(\t\"o\n\024ListAllEvent" +
"sRequest\022\027\n\017timeout_seconds\030\001 \001(\005\022\022\n\nsta" +
"rt_time\030\002 \001(\003\022\025\n\rstart_version\030\003 \001(\003\022\023\n\013" +
"end_version\030\004 \001(\003\"\223\001\n\022ListEventsResponse" +
"\0227\n\013return_code\030\001 \001(\0162\".notification_ser" +
"vice.ReturnStatus\022\022\n\nreturn_msg\030\002 \001(\t\0220\n" +
"\006events\030\003 \003(\0132 .notification_service.Eve" +
"ntProto\"W\n\034GetLatestVersionByKeyRequest\022" +
"\013\n\003key\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\022\027\n\017timeo" +
"ut_seconds\030\003 \001(\005\"T\n\030GetLatestVersionResp" +
"onse\022\023\n\013return_code\030\001 \001(\t\022\022\n\nreturn_msg\030" +
"\002 \001(\t\022\017\n\007version\030\003 \001(\003\"G\n\013MemberProto\022\017\n" +
"\007version\030\001 \001(\003\022\022\n\nserver_uri\030\002 \001(\t\022\023\n\013up" +
"date_time\030\003 \001(\003\"(\n\006Notify\022\013\n\003key\030\001 \001(\t\022\021" +
"\n\tnamespace\030\002 \001(\t\"?\n\rNotifyRequest\022.\n\010no" +
"tifies\030\001 \003(\0132\034.notification_service.Noti" +
"fy\"]\n\016NotifyResponse\0227\n\013return_code\030\001 \001(" +
"\0162\".notification_service.ReturnStatus\022\022\n" +
"\nreturn_msg\030\002 \001(\t\"-\n\022ListMembersRequest\022" +
"\027\n\017timeout_seconds\030\001 \001(\005\"\226\001\n\023ListMembers" +
"Response\0227\n\013return_code\030\001 \001(\0162\".notifica" +
"tion_service.ReturnStatus\022\022\n\nreturn_msg\030" +
"\002 \001(\t\0222\n\007members\030\003 \003(\0132!.notification_se" +
"rvice.MemberProto\"K\n\026NotifyNewMemberRequ" +
"est\0221\n\006member\030\001 \001(\0132!.notification_servi" +
"ce.MemberProto\"f\n\027NotifyNewMemberRespons" +
"e\0227\n\013return_code\030\001 \001(\0162\".notification_se" +
"rvice.ReturnStatus\022\022\n\nreturn_msg\030\002 \001(\t*&" +
"\n\014ReturnStatus\022\013\n\007SUCCESS\020\000\022\t\n\005ERROR\020\0012\343" +
"\010\n\023NotificationService\022\221\001\n\tsendEvent\022&.n" +
"otification_service.SendEventRequest\032(.n" +
"otification_service.SendEventsResponse\"2" +
"\202\323\344\223\002,\"\'/aiflow/notification-service/sen" +
"d_event:\001*\022\221\001\n\nlistEvents\022\'.notification" +
"_service.ListEventsRequest\032(.notificatio" +
"n_service.ListEventsResponse\"0\202\323\344\223\002*\022(/a" +
"iflow/notification-service/list_events\022\233" +
"\001\n\rlistAllEvents\022*.notification_service." +
"ListAllEventsRequest\032(.notification_serv" +
"ice.ListEventsResponse\"4\202\323\344\223\002.\022,/aiflow/" +
"notification-service/list_all_events\022\203\001\n" +
"\006notify\022#.notification_service.NotifyReq" +
"uest\032$.notification_service.NotifyRespon" +
"se\".\202\323\344\223\002(\"#/aiflow/notification-service" +
"/notify:\001*\022\225\001\n\013listMembers\022(.notificatio" +
"n_service.ListMembersRequest\032).notificat" +
"ion_service.ListMembersResponse\"1\202\323\344\223\002+\022" +
")/aiflow/notification-service/list_membe" +
"rs\022\251\001\n\017notifyNewMember\022,.notification_se" +
"rvice.NotifyNewMemberRequest\032-.notificat" +
"ion_service.NotifyNewMemberResponse\"9\202\323\344" +
"\223\0023\"./aiflow/notification-service/notify" +
"_new_member:\001*\022\273\001\n\025getLatestVersionByKey" +
"\0222.notification_service.GetLatestVersion" +
"ByKeyRequest\032..notification_service.GetL" +
"atestVersionResponse\">\202\323\344\223\0028\0226/aiflow/no" +
"tification-service/get_latest_version_by" +
"_keyB<\n\035com.aiflow.notification.protoZ\025/" +
"notification_service\210\001\001\220\001\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
});
internal_static_notification_service_EventProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_notification_service_EventProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_EventProto_descriptor,
new java.lang.String[] { "Key", "Value", "EventType", "Context", "Namespace", "Version", "CreateTime", "Sender", });
internal_static_notification_service_SendEventRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_notification_service_SendEventRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_SendEventRequest_descriptor,
new java.lang.String[] { "Event", "Uuid", });
internal_static_notification_service_SendEventsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_notification_service_SendEventsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_SendEventsResponse_descriptor,
new java.lang.String[] { "Event", "ReturnCode", "ReturnMsg", });
internal_static_notification_service_ListEventsRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_notification_service_ListEventsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_ListEventsRequest_descriptor,
new java.lang.String[] { "Keys", "EventType", "StartTime", "StartVersion", "TimeoutSeconds", "Namespace", "Sender", });
internal_static_notification_service_ListAllEventsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_notification_service_ListAllEventsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_ListAllEventsRequest_descriptor,
new java.lang.String[] { "TimeoutSeconds", "StartTime", "StartVersion", "EndVersion", });
internal_static_notification_service_ListEventsResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_notification_service_ListEventsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_ListEventsResponse_descriptor,
new java.lang.String[] { "ReturnCode", "ReturnMsg", "Events", });
internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_notification_service_GetLatestVersionByKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_GetLatestVersionByKeyRequest_descriptor,
new java.lang.String[] { "Key", "Namespace", "TimeoutSeconds", });
internal_static_notification_service_GetLatestVersionResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_notification_service_GetLatestVersionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_GetLatestVersionResponse_descriptor,
new java.lang.String[] { "ReturnCode", "ReturnMsg", "Version", });
internal_static_notification_service_MemberProto_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_notification_service_MemberProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_MemberProto_descriptor,
new java.lang.String[] { "Version", "ServerUri", "UpdateTime", });
internal_static_notification_service_Notify_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_notification_service_Notify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_Notify_descriptor,
new java.lang.String[] { "Key", "Namespace", });
internal_static_notification_service_NotifyRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_notification_service_NotifyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_NotifyRequest_descriptor,
new java.lang.String[] { "Notifies", });
internal_static_notification_service_NotifyResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_notification_service_NotifyResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_NotifyResponse_descriptor,
new java.lang.String[] { "ReturnCode", "ReturnMsg", });
internal_static_notification_service_ListMembersRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_notification_service_ListMembersRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_ListMembersRequest_descriptor,
new java.lang.String[] { "TimeoutSeconds", });
internal_static_notification_service_ListMembersResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_notification_service_ListMembersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_ListMembersResponse_descriptor,
new java.lang.String[] { "ReturnCode", "ReturnMsg", "Members", });
internal_static_notification_service_NotifyNewMemberRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_notification_service_NotifyNewMemberRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_NotifyNewMemberRequest_descriptor,
new java.lang.String[] { "Member", });
internal_static_notification_service_NotifyNewMemberResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_notification_service_NotifyNewMemberResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_notification_service_NotifyNewMemberResponse_descriptor,
new java.lang.String[] { "ReturnCode", "ReturnMsg", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}