yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/serverless/apigateway/websocket/v1/connection_service.proto
package yandex.cloud.api.serverless.apigateway.websocket.v1;
public final class ConnectionServiceOuterClass {
private ConnectionServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface GetConnectionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
java.lang.String getConnectionId();
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest}
*/
public static final class GetConnectionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest)
GetConnectionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetConnectionRequest.newBuilder() to construct.
private GetConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetConnectionRequest() {
connectionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetConnectionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetConnectionRequest(
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();
connectionId_ = 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
@java.lang.Override
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
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();
connectionId_ = s;
return s;
}
}
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest other = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) 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) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest 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(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest 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 yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest)
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.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();
connectionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest build() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest result = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest(this);
result.connectionId_ = connectionId_;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
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 {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
*
* ID of the connection to get.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = 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:yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest)
private static final yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest();
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetConnectionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetConnectionRequest(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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.GetConnectionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendToConnectionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
java.lang.String getConnectionId();
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
*
* Data to send.
*
*
* bytes data = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=131072"];
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The type.
*/
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType getType();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest}
*/
public static final class SendToConnectionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest)
SendToConnectionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendToConnectionRequest.newBuilder() to construct.
private SendToConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendToConnectionRequest() {
connectionId_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendToConnectionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendToConnectionRequest(
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();
connectionId_ = s;
break;
}
case 18: {
data_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
type_ = rawValue;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType}
*/
public enum DataType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DATA_TYPE_UNSPECIFIED = 0;
*/
DATA_TYPE_UNSPECIFIED(0),
/**
*
* Binary data.
*
*
* BINARY = 1;
*/
BINARY(1),
/**
*
* Text data.
*
*
* TEXT = 2;
*/
TEXT(2),
UNRECOGNIZED(-1),
;
/**
* DATA_TYPE_UNSPECIFIED = 0;
*/
public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Binary data.
*
*
* BINARY = 1;
*/
public static final int BINARY_VALUE = 1;
/**
*
* Text data.
*
*
* TEXT = 2;
*/
public static final int TEXT_VALUE = 2;
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 DataType 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 DataType forNumber(int value) {
switch (value) {
case 0: return DATA_TYPE_UNSPECIFIED;
case 1: return BINARY;
case 2: return TEXT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataType findValueByNumber(int number) {
return DataType.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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.getDescriptor().getEnumTypes().get(0);
}
private static final DataType[] VALUES = values();
public static DataType 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 DataType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType)
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
@java.lang.Override
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
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();
connectionId_ = s;
return s;
}
}
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
*
* Data to send.
*
*
* bytes data = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=131072"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType result = yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.valueOf(type_);
return result == null ? yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.UNRECOGNIZED : result;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (type_ != yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (type_ != yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest other = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) return false;
if (!getData()
.equals(other.getData())) return false;
if (type_ != other.type_) 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) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest 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(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest 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 yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest)
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.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();
connectionId_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest build() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest result = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest(this);
result.connectionId_ = connectionId_;
result.data_ = data_;
result.type_ = type_;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
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 {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
*
* ID of the connection to which send.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Data to send.
*
*
* bytes data = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=131072"];
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Data to send.
*
*
* bytes data = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=131072"];
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Data to send.
*
*
* bytes data = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=131072"];
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType result = yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.valueOf(type_);
return result == null ? yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType.UNRECOGNIZED : result;
}
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest.DataType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the sending data.
*
*
* .yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 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:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest)
private static final yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest();
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendToConnectionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendToConnectionRequest(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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendToConnectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse}
*/
public static final class SendToConnectionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse)
SendToConnectionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendToConnectionResponse.newBuilder() to construct.
private SendToConnectionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendToConnectionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendToConnectionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendToConnectionResponse(
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;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse other = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse 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(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse 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 yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse)
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse build() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse buildPartial() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse result = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse(this);
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse other) {
if (other == yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse.getDefaultInstance()) return this;
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 {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse)
private static final yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse();
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendToConnectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendToConnectionResponse(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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.SendToConnectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DisconnectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
java.lang.String getConnectionId();
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest}
*/
public static final class DisconnectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest)
DisconnectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DisconnectRequest.newBuilder() to construct.
private DisconnectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DisconnectRequest() {
connectionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DisconnectRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DisconnectRequest(
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();
connectionId_ = 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
@java.lang.Override
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
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();
connectionId_ = s;
return s;
}
}
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest other = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) 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) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest 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(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest 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 yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest)
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.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();
connectionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest build() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest result = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest(this);
result.connectionId_ = connectionId_;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
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 {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The connectionId.
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for connectionId.
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
*
* ID of the connection to disconnect.
*
*
* string connection_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = 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:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest)
private static final yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest();
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DisconnectRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DisconnectRequest(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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DisconnectResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse}
*/
public static final class DisconnectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse)
DisconnectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DisconnectResponse.newBuilder() to construct.
private DisconnectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DisconnectResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DisconnectResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DisconnectResponse(
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;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse other = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse 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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse 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(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse 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 yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse)
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.class, yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse build() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse buildPartial() {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse result = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse(this);
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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse other) {
if (other == yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse.getDefaultInstance()) return this;
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 {
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse)
private static final yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse();
}
public static yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DisconnectResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DisconnectResponse(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 yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionServiceOuterClass.DisconnectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\nHyandex/cloud/serverless/apigateway/web" +
"socket/v1/connection_service.proto\022/yand" +
"ex.cloud.serverless.apigateway.websocket" +
".v1\032\034google/api/annotations.proto\032\035yande" +
"x/cloud/validation.proto\032@yandex/cloud/s" +
"erverless/apigateway/websocket/v1/connec" +
"tion.proto\";\n\024GetConnectionRequest\022#\n\rco" +
"nnection_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"\374\001\n\027Send" +
"ToConnectionRequest\022#\n\rconnection_id\030\001 \001" +
"(\tB\014\350\3071\001\212\3101\004<=50\022\036\n\004data\030\002 \001(\014B\020\350\3071\001\212\3101\010" +
"<=131072\022_\n\004type\030\003 \001(\0162Q.yandex.cloud.se" +
"rverless.apigateway.websocket.v1.SendToC" +
"onnectionRequest.DataType\";\n\010DataType\022\031\n" +
"\025DATA_TYPE_UNSPECIFIED\020\000\022\n\n\006BINARY\020\001\022\010\n\004" +
"TEXT\020\002\"\032\n\030SendToConnectionResponse\"8\n\021Di" +
"sconnectRequest\022#\n\rconnection_id\030\001 \001(\tB\014" +
"\350\3071\001\212\3101\004<=50\"\024\n\022DisconnectResponse2\232\005\n\021C" +
"onnectionService\022\310\001\n\003Get\022E.yandex.cloud." +
"serverless.apigateway.websocket.v1.GetCo" +
"nnectionRequest\032;.yandex.cloud.serverles" +
"s.apigateway.websocket.v1.Connection\"=\202\323" +
"\344\223\0027\0225/apigateways/websocket/v1/connecti" +
"ons/{connection_id}\022\342\001\n\004Send\022H.yandex.cl" +
"oud.serverless.apigateway.websocket.v1.S" +
"endToConnectionRequest\032I.yandex.cloud.se" +
"rverless.apigateway.websocket.v1.SendToC" +
"onnectionResponse\"E\202\323\344\223\002?\":/apigateways/" +
"websocket/v1/connections/{connection_id}" +
":send:\001*\022\324\001\n\nDisconnect\022B.yandex.cloud.s" +
"erverless.apigateway.websocket.v1.Discon" +
"nectRequest\032C.yandex.cloud.serverless.ap" +
"igateway.websocket.v1.DisconnectResponse" +
"\"=\202\323\344\223\0027*5/apigateways/websocket/v1/conn" +
"ections/{connection_id}B\224\001\n3yandex.cloud" +
".api.serverless.apigateway.websocket.v1Z" +
"]github.com/yandex-cloud/go-genproto/yan" +
"dex/cloud/serverless/apigateway/websocke" +
"t/v1;websocketb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionOuterClass.getDescriptor(),
});
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_GetConnectionRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionRequest_descriptor,
new java.lang.String[] { "ConnectionId", "Data", "Type", });
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_SendToConnectionResponse_descriptor,
new java.lang.String[] { });
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_websocket_v1_DisconnectResponse_descriptor,
new java.lang.String[] { });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
yandex.cloud.api.serverless.apigateway.websocket.v1.ConnectionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy