java.io.deephaven.proto.backplane.grpc.ExportNotification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven/proto/session.proto
// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;
/**
* Protobuf type {@code io.deephaven.proto.backplane.grpc.ExportNotification}
*/
public final class ExportNotification extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.ExportNotification)
ExportNotificationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExportNotification.newBuilder() to construct.
private ExportNotification(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExportNotification() {
exportState_ = 0;
context_ = "";
dependentHandle_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExportNotification();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_ExportNotification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_ExportNotification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ExportNotification.class, io.deephaven.proto.backplane.grpc.ExportNotification.Builder.class);
}
/**
* Protobuf enum {@code io.deephaven.proto.backplane.grpc.ExportNotification.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* This item is a dependency, but hasn't been registered yet.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* This item has pending dependencies.
*
*
* PENDING = 1;
*/
PENDING(1),
/**
*
* This item is a client-supplied dependency with no guarantee on timing to EXPORT state.
*
*
* PUBLISHING = 2;
*/
PUBLISHING(2),
/**
*
* This item is eligible for resolution and has been submitted to the executor.
*
*
* QUEUED = 3;
*/
QUEUED(3),
/**
*
* This item is now executing.
*
*
* RUNNING = 4;
*/
RUNNING(4),
/**
*
* This item was successfully exported and is currently being retained.
*
*
* EXPORTED = 5;
*/
EXPORTED(5),
/**
*
* This item was successfully released.
*
*
* RELEASED = 6;
*/
RELEASED(6),
/**
*
* CANCELLED: The user cancelled the item before it exported.
*
*
* CANCELLED = 7;
*/
CANCELLED(7),
/**
*
* This item had a specific error.
*
*
* FAILED = 8;
*/
FAILED(8),
/**
*
* One of this item's dependencies had an internal error before it exported.
*
*
* DEPENDENCY_FAILED = 9;
*/
DEPENDENCY_FAILED(9),
/**
*
* One of this item's dependencies was already released or never submitted within the out-of-order window.
*
*
* DEPENDENCY_NEVER_FOUND = 10;
*/
DEPENDENCY_NEVER_FOUND(10),
/**
*
* Dependency was cancelled, causing a cascading cancel that applies to this export.
*
*
* DEPENDENCY_CANCELLED = 11;
*/
DEPENDENCY_CANCELLED(11),
/**
*
* Dependency was already released, causing a cascading failure that applies to this export.
*
*
* DEPENDENCY_RELEASED = 12;
*/
DEPENDENCY_RELEASED(12),
UNRECOGNIZED(-1),
;
/**
*
* This item is a dependency, but hasn't been registered yet.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* This item has pending dependencies.
*
*
* PENDING = 1;
*/
public static final int PENDING_VALUE = 1;
/**
*
* This item is a client-supplied dependency with no guarantee on timing to EXPORT state.
*
*
* PUBLISHING = 2;
*/
public static final int PUBLISHING_VALUE = 2;
/**
*
* This item is eligible for resolution and has been submitted to the executor.
*
*
* QUEUED = 3;
*/
public static final int QUEUED_VALUE = 3;
/**
*
* This item is now executing.
*
*
* RUNNING = 4;
*/
public static final int RUNNING_VALUE = 4;
/**
*
* This item was successfully exported and is currently being retained.
*
*
* EXPORTED = 5;
*/
public static final int EXPORTED_VALUE = 5;
/**
*
* This item was successfully released.
*
*
* RELEASED = 6;
*/
public static final int RELEASED_VALUE = 6;
/**
*
* CANCELLED: The user cancelled the item before it exported.
*
*
* CANCELLED = 7;
*/
public static final int CANCELLED_VALUE = 7;
/**
*
* This item had a specific error.
*
*
* FAILED = 8;
*/
public static final int FAILED_VALUE = 8;
/**
*
* One of this item's dependencies had an internal error before it exported.
*
*
* DEPENDENCY_FAILED = 9;
*/
public static final int DEPENDENCY_FAILED_VALUE = 9;
/**
*
* One of this item's dependencies was already released or never submitted within the out-of-order window.
*
*
* DEPENDENCY_NEVER_FOUND = 10;
*/
public static final int DEPENDENCY_NEVER_FOUND_VALUE = 10;
/**
*
* Dependency was cancelled, causing a cascading cancel that applies to this export.
*
*
* DEPENDENCY_CANCELLED = 11;
*/
public static final int DEPENDENCY_CANCELLED_VALUE = 11;
/**
*
* Dependency was already released, causing a cascading failure that applies to this export.
*
*
* DEPENDENCY_RELEASED = 12;
*/
public static final int DEPENDENCY_RELEASED_VALUE = 12;
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 State 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 State forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return PENDING;
case 2: return PUBLISHING;
case 3: return QUEUED;
case 4: return RUNNING;
case 5: return EXPORTED;
case 6: return RELEASED;
case 7: return CANCELLED;
case 8: return FAILED;
case 9: return DEPENDENCY_FAILED;
case 10: return DEPENDENCY_NEVER_FOUND;
case 11: return DEPENDENCY_CANCELLED;
case 12: return DEPENDENCY_RELEASED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.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 io.deephaven.proto.backplane.grpc.ExportNotification.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State 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 State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.deephaven.proto.backplane.grpc.ExportNotification.State)
}
private int bitField0_;
public static final int TICKET_FIELD_NUMBER = 1;
private io.deephaven.proto.backplane.grpc.Ticket ticket_;
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
* @return Whether the ticket field is set.
*/
@java.lang.Override
public boolean hasTicket() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
* @return The ticket.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Ticket getTicket() {
return ticket_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : ticket_;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TicketOrBuilder getTicketOrBuilder() {
return ticket_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : ticket_;
}
public static final int EXPORT_STATE_FIELD_NUMBER = 2;
private int exportState_ = 0;
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @return The enum numeric value on the wire for exportState.
*/
@java.lang.Override public int getExportStateValue() {
return exportState_;
}
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @return The exportState.
*/
@java.lang.Override public io.deephaven.proto.backplane.grpc.ExportNotification.State getExportState() {
io.deephaven.proto.backplane.grpc.ExportNotification.State result = io.deephaven.proto.backplane.grpc.ExportNotification.State.forNumber(exportState_);
return result == null ? io.deephaven.proto.backplane.grpc.ExportNotification.State.UNRECOGNIZED : result;
}
public static final int CONTEXT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object context_ = "";
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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;
}
}
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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 DEPENDENT_HANDLE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object dependentHandle_ = "";
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @return The dependentHandle.
*/
@java.lang.Override
public java.lang.String getDependentHandle() {
java.lang.Object ref = dependentHandle_;
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();
dependentHandle_ = s;
return s;
}
}
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @return The bytes for dependentHandle.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDependentHandleBytes() {
java.lang.Object ref = dependentHandle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dependentHandle_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTicket());
}
if (exportState_ != io.deephaven.proto.backplane.grpc.ExportNotification.State.UNKNOWN.getNumber()) {
output.writeEnum(2, exportState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, context_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependentHandle_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dependentHandle_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTicket());
}
if (exportState_ != io.deephaven.proto.backplane.grpc.ExportNotification.State.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, exportState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, context_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependentHandle_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dependentHandle_);
}
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 io.deephaven.proto.backplane.grpc.ExportNotification)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.ExportNotification other = (io.deephaven.proto.backplane.grpc.ExportNotification) obj;
if (hasTicket() != other.hasTicket()) return false;
if (hasTicket()) {
if (!getTicket()
.equals(other.getTicket())) return false;
}
if (exportState_ != other.exportState_) return false;
if (!getContext()
.equals(other.getContext())) return false;
if (!getDependentHandle()
.equals(other.getDependentHandle())) 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();
if (hasTicket()) {
hash = (37 * hash) + TICKET_FIELD_NUMBER;
hash = (53 * hash) + getTicket().hashCode();
}
hash = (37 * hash) + EXPORT_STATE_FIELD_NUMBER;
hash = (53 * hash) + exportState_;
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
hash = (37 * hash) + DEPENDENT_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getDependentHandle().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification 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 io.deephaven.proto.backplane.grpc.ExportNotification parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification 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 io.deephaven.proto.backplane.grpc.ExportNotification parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ExportNotification 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(io.deephaven.proto.backplane.grpc.ExportNotification 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 io.deephaven.proto.backplane.grpc.ExportNotification}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.ExportNotification)
io.deephaven.proto.backplane.grpc.ExportNotificationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_ExportNotification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_ExportNotification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ExportNotification.class, io.deephaven.proto.backplane.grpc.ExportNotification.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.ExportNotification.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTicketFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ticket_ = null;
if (ticketBuilder_ != null) {
ticketBuilder_.dispose();
ticketBuilder_ = null;
}
exportState_ = 0;
context_ = "";
dependentHandle_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_ExportNotification_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ExportNotification getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.ExportNotification.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ExportNotification build() {
io.deephaven.proto.backplane.grpc.ExportNotification result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ExportNotification buildPartial() {
io.deephaven.proto.backplane.grpc.ExportNotification result = new io.deephaven.proto.backplane.grpc.ExportNotification(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.ExportNotification result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ticket_ = ticketBuilder_ == null
? ticket_
: ticketBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.exportState_ = exportState_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.context_ = context_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dependentHandle_ = dependentHandle_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.deephaven.proto.backplane.grpc.ExportNotification) {
return mergeFrom((io.deephaven.proto.backplane.grpc.ExportNotification)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.ExportNotification other) {
if (other == io.deephaven.proto.backplane.grpc.ExportNotification.getDefaultInstance()) return this;
if (other.hasTicket()) {
mergeTicket(other.getTicket());
}
if (other.exportState_ != 0) {
setExportStateValue(other.getExportStateValue());
}
if (!other.getContext().isEmpty()) {
context_ = other.context_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDependentHandle().isEmpty()) {
dependentHandle_ = other.dependentHandle_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTicketFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
exportState_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
context_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
dependentHandle_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.deephaven.proto.backplane.grpc.Ticket ticket_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder> ticketBuilder_;
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
* @return Whether the ticket field is set.
*/
public boolean hasTicket() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
* @return The ticket.
*/
public io.deephaven.proto.backplane.grpc.Ticket getTicket() {
if (ticketBuilder_ == null) {
return ticket_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : ticket_;
} else {
return ticketBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public Builder setTicket(io.deephaven.proto.backplane.grpc.Ticket value) {
if (ticketBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ticket_ = value;
} else {
ticketBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public Builder setTicket(
io.deephaven.proto.backplane.grpc.Ticket.Builder builderForValue) {
if (ticketBuilder_ == null) {
ticket_ = builderForValue.build();
} else {
ticketBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public Builder mergeTicket(io.deephaven.proto.backplane.grpc.Ticket value) {
if (ticketBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ticket_ != null &&
ticket_ != io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance()) {
getTicketBuilder().mergeFrom(value);
} else {
ticket_ = value;
}
} else {
ticketBuilder_.mergeFrom(value);
}
if (ticket_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public Builder clearTicket() {
bitField0_ = (bitField0_ & ~0x00000001);
ticket_ = null;
if (ticketBuilder_ != null) {
ticketBuilder_.dispose();
ticketBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public io.deephaven.proto.backplane.grpc.Ticket.Builder getTicketBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTicketFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
public io.deephaven.proto.backplane.grpc.TicketOrBuilder getTicketOrBuilder() {
if (ticketBuilder_ != null) {
return ticketBuilder_.getMessageOrBuilder();
} else {
return ticket_ == null ?
io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : ticket_;
}
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket ticket = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder>
getTicketFieldBuilder() {
if (ticketBuilder_ == null) {
ticketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder>(
getTicket(),
getParentForChildren(),
isClean());
ticket_ = null;
}
return ticketBuilder_;
}
private int exportState_ = 0;
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @return The enum numeric value on the wire for exportState.
*/
@java.lang.Override public int getExportStateValue() {
return exportState_;
}
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @param value The enum numeric value on the wire for exportState to set.
* @return This builder for chaining.
*/
public Builder setExportStateValue(int value) {
exportState_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @return The exportState.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ExportNotification.State getExportState() {
io.deephaven.proto.backplane.grpc.ExportNotification.State result = io.deephaven.proto.backplane.grpc.ExportNotification.State.forNumber(exportState_);
return result == null ? io.deephaven.proto.backplane.grpc.ExportNotification.State.UNRECOGNIZED : result;
}
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @param value The exportState to set.
* @return This builder for chaining.
*/
public Builder setExportState(io.deephaven.proto.backplane.grpc.ExportNotification.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
exportState_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.ExportNotification.State export_state = 2;
* @return This builder for chaining.
*/
public Builder clearExportState() {
bitField0_ = (bitField0_ & ~0x00000002);
exportState_ = 0;
onChanged();
return this;
}
private java.lang.Object context_ = "";
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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;
}
}
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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;
}
}
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @return This builder for chaining.
*/
public Builder clearContext() {
context_ = getDefaultInstance().getContext();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
* any errors will include an id that can be used to find details of the error in the logs
*
*
* string context = 3;
* @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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object dependentHandle_ = "";
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @return The dependentHandle.
*/
public java.lang.String getDependentHandle() {
java.lang.Object ref = dependentHandle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dependentHandle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @return The bytes for dependentHandle.
*/
public com.google.protobuf.ByteString
getDependentHandleBytes() {
java.lang.Object ref = dependentHandle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dependentHandle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @param value The dependentHandle to set.
* @return This builder for chaining.
*/
public Builder setDependentHandle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dependentHandle_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @return This builder for chaining.
*/
public Builder clearDependentHandle() {
dependentHandle_ = getDefaultInstance().getDependentHandle();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
* will be set to an identifier of the dependency that cascaded the error if applicable
*
*
* string dependent_handle = 4;
* @param value The bytes for dependentHandle to set.
* @return This builder for chaining.
*/
public Builder setDependentHandleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dependentHandle_ = value;
bitField0_ |= 0x00000008;
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:io.deephaven.proto.backplane.grpc.ExportNotification)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.ExportNotification)
private static final io.deephaven.proto.backplane.grpc.ExportNotification DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.ExportNotification();
}
public static io.deephaven.proto.backplane.grpc.ExportNotification getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExportNotification 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 io.deephaven.proto.backplane.grpc.ExportNotification getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}