com.netflix.genie.proto.ServerControlMessage Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: genie.proto
package com.netflix.genie.proto;
/**
* Protobuf type {@code com.netflix.genie.proto.ServerControlMessage}
*/
public final class ServerControlMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.netflix.genie.proto.ServerControlMessage)
ServerControlMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerControlMessage.newBuilder() to construct.
private ServerControlMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerControlMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerControlMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerControlMessage(
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: {
com.netflix.genie.proto.ServerFileRequestMessage.Builder subBuilder = null;
if (messageCase_ == 1) {
subBuilder = ((com.netflix.genie.proto.ServerFileRequestMessage) message_).toBuilder();
}
message_ =
input.readMessage(com.netflix.genie.proto.ServerFileRequestMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.netflix.genie.proto.ServerFileRequestMessage) message_);
message_ = subBuilder.buildPartial();
}
messageCase_ = 1;
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 com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ServerControlMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ServerControlMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ServerControlMessage.class, com.netflix.genie.proto.ServerControlMessage.Builder.class);
}
private int messageCase_ = 0;
private java.lang.Object message_;
public enum MessageCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SERVER_FILE_REQUEST(1),
MESSAGE_NOT_SET(0);
private final int value;
private MessageCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MessageCase valueOf(int value) {
return forNumber(value);
}
public static MessageCase forNumber(int value) {
switch (value) {
case 1: return SERVER_FILE_REQUEST;
case 0: return MESSAGE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public static final int SERVER_FILE_REQUEST_FIELD_NUMBER = 1;
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
* @return Whether the serverFileRequest field is set.
*/
@java.lang.Override
public boolean hasServerFileRequest() {
return messageCase_ == 1;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
* @return The serverFileRequest.
*/
@java.lang.Override
public com.netflix.genie.proto.ServerFileRequestMessage getServerFileRequest() {
if (messageCase_ == 1) {
return (com.netflix.genie.proto.ServerFileRequestMessage) message_;
}
return com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
@java.lang.Override
public com.netflix.genie.proto.ServerFileRequestMessageOrBuilder getServerFileRequestOrBuilder() {
if (messageCase_ == 1) {
return (com.netflix.genie.proto.ServerFileRequestMessage) message_;
}
return com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
}
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 (messageCase_ == 1) {
output.writeMessage(1, (com.netflix.genie.proto.ServerFileRequestMessage) message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.netflix.genie.proto.ServerFileRequestMessage) message_);
}
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 com.netflix.genie.proto.ServerControlMessage)) {
return super.equals(obj);
}
com.netflix.genie.proto.ServerControlMessage other = (com.netflix.genie.proto.ServerControlMessage) obj;
if (!getMessageCase().equals(other.getMessageCase())) return false;
switch (messageCase_) {
case 1:
if (!getServerFileRequest()
.equals(other.getServerFileRequest())) return false;
break;
case 0:
default:
}
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();
switch (messageCase_) {
case 1:
hash = (37 * hash) + SERVER_FILE_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getServerFileRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.netflix.genie.proto.ServerControlMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ServerControlMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ServerControlMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.netflix.genie.proto.ServerControlMessage 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 com.netflix.genie.proto.ServerControlMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.ServerControlMessage)
com.netflix.genie.proto.ServerControlMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ServerControlMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ServerControlMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ServerControlMessage.class, com.netflix.genie.proto.ServerControlMessage.Builder.class);
}
// Construct using com.netflix.genie.proto.ServerControlMessage.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();
messageCase_ = 0;
message_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ServerControlMessage_descriptor;
}
@java.lang.Override
public com.netflix.genie.proto.ServerControlMessage getDefaultInstanceForType() {
return com.netflix.genie.proto.ServerControlMessage.getDefaultInstance();
}
@java.lang.Override
public com.netflix.genie.proto.ServerControlMessage build() {
com.netflix.genie.proto.ServerControlMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.netflix.genie.proto.ServerControlMessage buildPartial() {
com.netflix.genie.proto.ServerControlMessage result = new com.netflix.genie.proto.ServerControlMessage(this);
if (messageCase_ == 1) {
if (serverFileRequestBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = serverFileRequestBuilder_.build();
}
}
result.messageCase_ = messageCase_;
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 com.netflix.genie.proto.ServerControlMessage) {
return mergeFrom((com.netflix.genie.proto.ServerControlMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.netflix.genie.proto.ServerControlMessage other) {
if (other == com.netflix.genie.proto.ServerControlMessage.getDefaultInstance()) return this;
switch (other.getMessageCase()) {
case SERVER_FILE_REQUEST: {
mergeServerFileRequest(other.getServerFileRequest());
break;
}
case MESSAGE_NOT_SET: {
break;
}
}
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 {
com.netflix.genie.proto.ServerControlMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.netflix.genie.proto.ServerControlMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int messageCase_ = 0;
private java.lang.Object message_;
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public Builder clearMessage() {
messageCase_ = 0;
message_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ServerFileRequestMessage, com.netflix.genie.proto.ServerFileRequestMessage.Builder, com.netflix.genie.proto.ServerFileRequestMessageOrBuilder> serverFileRequestBuilder_;
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
* @return Whether the serverFileRequest field is set.
*/
@java.lang.Override
public boolean hasServerFileRequest() {
return messageCase_ == 1;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
* @return The serverFileRequest.
*/
@java.lang.Override
public com.netflix.genie.proto.ServerFileRequestMessage getServerFileRequest() {
if (serverFileRequestBuilder_ == null) {
if (messageCase_ == 1) {
return (com.netflix.genie.proto.ServerFileRequestMessage) message_;
}
return com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
} else {
if (messageCase_ == 1) {
return serverFileRequestBuilder_.getMessage();
}
return com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
}
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
public Builder setServerFileRequest(com.netflix.genie.proto.ServerFileRequestMessage value) {
if (serverFileRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
serverFileRequestBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
public Builder setServerFileRequest(
com.netflix.genie.proto.ServerFileRequestMessage.Builder builderForValue) {
if (serverFileRequestBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
serverFileRequestBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 1;
return this;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
public Builder mergeServerFileRequest(com.netflix.genie.proto.ServerFileRequestMessage value) {
if (serverFileRequestBuilder_ == null) {
if (messageCase_ == 1 &&
message_ != com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance()) {
message_ = com.netflix.genie.proto.ServerFileRequestMessage.newBuilder((com.netflix.genie.proto.ServerFileRequestMessage) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 1) {
serverFileRequestBuilder_.mergeFrom(value);
}
serverFileRequestBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
public Builder clearServerFileRequest() {
if (serverFileRequestBuilder_ == null) {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
}
serverFileRequestBuilder_.clear();
}
return this;
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
public com.netflix.genie.proto.ServerFileRequestMessage.Builder getServerFileRequestBuilder() {
return getServerFileRequestFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
@java.lang.Override
public com.netflix.genie.proto.ServerFileRequestMessageOrBuilder getServerFileRequestOrBuilder() {
if ((messageCase_ == 1) && (serverFileRequestBuilder_ != null)) {
return serverFileRequestBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 1) {
return (com.netflix.genie.proto.ServerFileRequestMessage) message_;
}
return com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
}
}
/**
* .com.netflix.genie.proto.ServerFileRequestMessage server_file_request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ServerFileRequestMessage, com.netflix.genie.proto.ServerFileRequestMessage.Builder, com.netflix.genie.proto.ServerFileRequestMessageOrBuilder>
getServerFileRequestFieldBuilder() {
if (serverFileRequestBuilder_ == null) {
if (!(messageCase_ == 1)) {
message_ = com.netflix.genie.proto.ServerFileRequestMessage.getDefaultInstance();
}
serverFileRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ServerFileRequestMessage, com.netflix.genie.proto.ServerFileRequestMessage.Builder, com.netflix.genie.proto.ServerFileRequestMessageOrBuilder>(
(com.netflix.genie.proto.ServerFileRequestMessage) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 1;
onChanged();;
return serverFileRequestBuilder_;
}
@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:com.netflix.genie.proto.ServerControlMessage)
}
// @@protoc_insertion_point(class_scope:com.netflix.genie.proto.ServerControlMessage)
private static final com.netflix.genie.proto.ServerControlMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.netflix.genie.proto.ServerControlMessage();
}
public static com.netflix.genie.proto.ServerControlMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerControlMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerControlMessage(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 com.netflix.genie.proto.ServerControlMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}