org.openfeed.LogoutResponse Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed_api.proto
// Protobuf Java Version: 4.28.3
package org.openfeed;
/**
* Protobuf type {@code org.openfeed.LogoutResponse}
*/
public final class LogoutResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.LogoutResponse)
LogoutResponseOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 3,
/* suffix= */ "",
LogoutResponse.class.getName());
}
// Use LogoutResponse.newBuilder() to construct.
private LogoutResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private LogoutResponse() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_LogoutResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_LogoutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.LogoutResponse.class, org.openfeed.LogoutResponse.Builder.class);
}
private int bitField0_;
public static final int CORRELATIONID_FIELD_NUMBER = 1;
private long correlationId_ = 0L;
/**
* sint64 correlationId = 1;
* @return The correlationId.
*/
@java.lang.Override
public long getCorrelationId() {
return correlationId_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private org.openfeed.Status status_;
/**
* .org.openfeed.Status status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .org.openfeed.Status status = 2;
* @return The status.
*/
@java.lang.Override
public org.openfeed.Status getStatus() {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
}
/**
* .org.openfeed.Status status = 2;
*/
@java.lang.Override
public org.openfeed.StatusOrBuilder getStatusOrBuilder() {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
}
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 (correlationId_ != 0L) {
output.writeSInt64(1, correlationId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStatus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (correlationId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, correlationId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStatus());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.openfeed.LogoutResponse)) {
return super.equals(obj);
}
org.openfeed.LogoutResponse other = (org.openfeed.LogoutResponse) obj;
if (getCorrelationId()
!= other.getCorrelationId()) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CORRELATIONID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCorrelationId());
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.LogoutResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.LogoutResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.LogoutResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.LogoutResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.LogoutResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.LogoutResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.LogoutResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.LogoutResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.LogoutResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.LogoutResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.LogoutResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.LogoutResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.openfeed.LogoutResponse 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.openfeed.LogoutResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.LogoutResponse)
org.openfeed.LogoutResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_LogoutResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_LogoutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.LogoutResponse.class, org.openfeed.LogoutResponse.Builder.class);
}
// Construct using org.openfeed.LogoutResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
correlationId_ = 0L;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_LogoutResponse_descriptor;
}
@java.lang.Override
public org.openfeed.LogoutResponse getDefaultInstanceForType() {
return org.openfeed.LogoutResponse.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.LogoutResponse build() {
org.openfeed.LogoutResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.LogoutResponse buildPartial() {
org.openfeed.LogoutResponse result = new org.openfeed.LogoutResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.LogoutResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.correlationId_ = correlationId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.LogoutResponse) {
return mergeFrom((org.openfeed.LogoutResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.LogoutResponse other) {
if (other == org.openfeed.LogoutResponse.getDefaultInstance()) return this;
if (other.getCorrelationId() != 0L) {
setCorrelationId(other.getCorrelationId());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
correlationId_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long correlationId_ ;
/**
* sint64 correlationId = 1;
* @return The correlationId.
*/
@java.lang.Override
public long getCorrelationId() {
return correlationId_;
}
/**
* sint64 correlationId = 1;
* @param value The correlationId to set.
* @return This builder for chaining.
*/
public Builder setCorrelationId(long value) {
correlationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* sint64 correlationId = 1;
* @return This builder for chaining.
*/
public Builder clearCorrelationId() {
bitField0_ = (bitField0_ & ~0x00000001);
correlationId_ = 0L;
onChanged();
return this;
}
private org.openfeed.Status status_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder> statusBuilder_;
/**
* .org.openfeed.Status status = 2;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .org.openfeed.Status status = 2;
* @return The status.
*/
public org.openfeed.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder setStatus(org.openfeed.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder setStatus(
org.openfeed.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder mergeStatus(org.openfeed.Status value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
status_ != null &&
status_ != org.openfeed.Status.getDefaultInstance()) {
getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
} else {
statusBuilder_.mergeFrom(value);
}
if (status_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public org.openfeed.Status.Builder getStatusBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Status status = 2;
*/
public org.openfeed.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
org.openfeed.Status.getDefaultInstance() : status_;
}
}
/**
* .org.openfeed.Status status = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.LogoutResponse)
}
// @@protoc_insertion_point(class_scope:org.openfeed.LogoutResponse)
private static final org.openfeed.LogoutResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.LogoutResponse();
}
public static org.openfeed.LogoutResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogoutResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.openfeed.LogoutResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy