org.opensearch.extensions.proto.ExtensionRequestProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opensearch Show documentation
Show all versions of opensearch Show documentation
OpenSearch subproject :server
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: extensions/ExtensionRequestProto.proto
package org.opensearch.extensions.proto;
@javax.annotation.Generated(value="protoc", comments="annotations:ExtensionRequestProto.java.pb.meta")
public final class ExtensionRequestProto {
private ExtensionRequestProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code org.opensearch.extensions.proto.RequestType}
*/
public enum RequestType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* REQUEST_EXTENSION_CLUSTER_STATE = 0;
*/
REQUEST_EXTENSION_CLUSTER_STATE(0),
/**
* REQUEST_EXTENSION_CLUSTER_SETTINGS = 1;
*/
REQUEST_EXTENSION_CLUSTER_SETTINGS(1),
/**
* REQUEST_EXTENSION_REGISTER_REST_ACTIONS = 2;
*/
REQUEST_EXTENSION_REGISTER_REST_ACTIONS(2),
/**
* REQUEST_EXTENSION_REGISTER_SETTINGS = 3;
*/
REQUEST_EXTENSION_REGISTER_SETTINGS(3),
/**
* REQUEST_EXTENSION_ENVIRONMENT_SETTINGS = 4;
*/
REQUEST_EXTENSION_ENVIRONMENT_SETTINGS(4),
/**
* REQUEST_EXTENSION_DEPENDENCY_INFORMATION = 5;
*/
REQUEST_EXTENSION_DEPENDENCY_INFORMATION(5),
/**
* CREATE_COMPONENT = 6;
*/
CREATE_COMPONENT(6),
/**
* ON_INDEX_MODULE = 7;
*/
ON_INDEX_MODULE(7),
/**
* GET_SETTINGS = 8;
*/
GET_SETTINGS(8),
UNRECOGNIZED(-1),
;
/**
* REQUEST_EXTENSION_CLUSTER_STATE = 0;
*/
public static final int REQUEST_EXTENSION_CLUSTER_STATE_VALUE = 0;
/**
* REQUEST_EXTENSION_CLUSTER_SETTINGS = 1;
*/
public static final int REQUEST_EXTENSION_CLUSTER_SETTINGS_VALUE = 1;
/**
* REQUEST_EXTENSION_REGISTER_REST_ACTIONS = 2;
*/
public static final int REQUEST_EXTENSION_REGISTER_REST_ACTIONS_VALUE = 2;
/**
* REQUEST_EXTENSION_REGISTER_SETTINGS = 3;
*/
public static final int REQUEST_EXTENSION_REGISTER_SETTINGS_VALUE = 3;
/**
* REQUEST_EXTENSION_ENVIRONMENT_SETTINGS = 4;
*/
public static final int REQUEST_EXTENSION_ENVIRONMENT_SETTINGS_VALUE = 4;
/**
* REQUEST_EXTENSION_DEPENDENCY_INFORMATION = 5;
*/
public static final int REQUEST_EXTENSION_DEPENDENCY_INFORMATION_VALUE = 5;
/**
* CREATE_COMPONENT = 6;
*/
public static final int CREATE_COMPONENT_VALUE = 6;
/**
* ON_INDEX_MODULE = 7;
*/
public static final int ON_INDEX_MODULE_VALUE = 7;
/**
* GET_SETTINGS = 8;
*/
public static final int GET_SETTINGS_VALUE = 8;
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 RequestType 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 RequestType forNumber(int value) {
switch (value) {
case 0: return REQUEST_EXTENSION_CLUSTER_STATE;
case 1: return REQUEST_EXTENSION_CLUSTER_SETTINGS;
case 2: return REQUEST_EXTENSION_REGISTER_REST_ACTIONS;
case 3: return REQUEST_EXTENSION_REGISTER_SETTINGS;
case 4: return REQUEST_EXTENSION_ENVIRONMENT_SETTINGS;
case 5: return REQUEST_EXTENSION_DEPENDENCY_INFORMATION;
case 6: return CREATE_COMPONENT;
case 7: return ON_INDEX_MODULE;
case 8: return GET_SETTINGS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RequestType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RequestType findValueByNumber(int number) {
return RequestType.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 org.opensearch.extensions.proto.ExtensionRequestProto.getDescriptor().getEnumTypes().get(0);
}
private static final RequestType[] VALUES = values();
public static RequestType 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 RequestType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.opensearch.extensions.proto.RequestType)
}
public interface ExtensionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.opensearch.extensions.proto.ExtensionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return Whether the identity field is set.
*/
boolean hasIdentity();
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return The identity.
*/
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity getIdentity();
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder getIdentityOrBuilder();
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The enum numeric value on the wire for requestType.
*/
int getRequestTypeValue();
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The requestType.
*/
org.opensearch.extensions.proto.ExtensionRequestProto.RequestType getRequestType();
}
/**
* Protobuf type {@code org.opensearch.extensions.proto.ExtensionRequest}
*/
public static final class ExtensionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.opensearch.extensions.proto.ExtensionRequest)
ExtensionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtensionRequest.newBuilder() to construct.
private ExtensionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtensionRequest() {
requestType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtensionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opensearch.extensions.proto.ExtensionRequestProto.internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opensearch.extensions.proto.ExtensionRequestProto.internal_static_org_opensearch_extensions_proto_ExtensionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.class, org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.Builder.class);
}
public static final int IDENTITY_FIELD_NUMBER = 1;
private org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity identity_;
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return Whether the identity field is set.
*/
@java.lang.Override
public boolean hasIdentity() {
return identity_ != null;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return The identity.
*/
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity getIdentity() {
return identity_ == null ? org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.getDefaultInstance() : identity_;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder getIdentityOrBuilder() {
return identity_ == null ? org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.getDefaultInstance() : identity_;
}
public static final int REQUESTTYPE_FIELD_NUMBER = 2;
private int requestType_ = 0;
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The enum numeric value on the wire for requestType.
*/
@java.lang.Override public int getRequestTypeValue() {
return requestType_;
}
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The requestType.
*/
@java.lang.Override public org.opensearch.extensions.proto.ExtensionRequestProto.RequestType getRequestType() {
org.opensearch.extensions.proto.ExtensionRequestProto.RequestType result = org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.forNumber(requestType_);
return result == null ? org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.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 (identity_ != null) {
output.writeMessage(1, getIdentity());
}
if (requestType_ != org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.REQUEST_EXTENSION_CLUSTER_STATE.getNumber()) {
output.writeEnum(2, requestType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIdentity());
}
if (requestType_ != org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.REQUEST_EXTENSION_CLUSTER_STATE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, requestType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest)) {
return super.equals(obj);
}
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest other = (org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest) obj;
if (hasIdentity() != other.hasIdentity()) return false;
if (hasIdentity()) {
if (!getIdentity()
.equals(other.getIdentity())) return false;
}
if (requestType_ != other.requestType_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasIdentity()) {
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getIdentity().hashCode();
}
hash = (37 * hash) + REQUESTTYPE_FIELD_NUMBER;
hash = (53 * hash) + requestType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest 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 org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest 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 org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest 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(org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest 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 org.opensearch.extensions.proto.ExtensionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.opensearch.extensions.proto.ExtensionRequest)
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opensearch.extensions.proto.ExtensionRequestProto.internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opensearch.extensions.proto.ExtensionRequestProto.internal_static_org_opensearch_extensions_proto_ExtensionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.class, org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.Builder.class);
}
// Construct using org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
identity_ = null;
if (identityBuilder_ != null) {
identityBuilder_.dispose();
identityBuilder_ = null;
}
requestType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opensearch.extensions.proto.ExtensionRequestProto.internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor;
}
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest getDefaultInstanceForType() {
return org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.getDefaultInstance();
}
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest build() {
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest buildPartial() {
org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest result = new org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.identity_ = identityBuilder_ == null
? identity_
: identityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requestType_ = requestType_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest) {
return mergeFrom((org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest other) {
if (other == org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest.getDefaultInstance()) return this;
if (other.hasIdentity()) {
mergeIdentity(other.getIdentity());
}
if (other.requestType_ != 0) {
setRequestTypeValue(other.getRequestTypeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getIdentityFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
requestType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity identity_;
private com.google.protobuf.SingleFieldBuilderV3<
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.Builder, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder> identityBuilder_;
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return Whether the identity field is set.
*/
public boolean hasIdentity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
* @return The identity.
*/
public org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity getIdentity() {
if (identityBuilder_ == null) {
return identity_ == null ? org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.getDefaultInstance() : identity_;
} else {
return identityBuilder_.getMessage();
}
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public Builder setIdentity(org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity value) {
if (identityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identity_ = value;
} else {
identityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public Builder setIdentity(
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.Builder builderForValue) {
if (identityBuilder_ == null) {
identity_ = builderForValue.build();
} else {
identityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public Builder mergeIdentity(org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity value) {
if (identityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
identity_ != null &&
identity_ != org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.getDefaultInstance()) {
getIdentityBuilder().mergeFrom(value);
} else {
identity_ = value;
}
} else {
identityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public Builder clearIdentity() {
bitField0_ = (bitField0_ & ~0x00000001);
identity_ = null;
if (identityBuilder_ != null) {
identityBuilder_.dispose();
identityBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.Builder getIdentityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdentityFieldBuilder().getBuilder();
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
public org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder getIdentityOrBuilder() {
if (identityBuilder_ != null) {
return identityBuilder_.getMessageOrBuilder();
} else {
return identity_ == null ?
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.getDefaultInstance() : identity_;
}
}
/**
* .org.opensearch.extensions.proto.ExtensionIdentity identity = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.Builder, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder>
getIdentityFieldBuilder() {
if (identityBuilder_ == null) {
identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentity.Builder, org.opensearch.extensions.proto.ExtensionIdentityProto.ExtensionIdentityOrBuilder>(
getIdentity(),
getParentForChildren(),
isClean());
identity_ = null;
}
return identityBuilder_;
}
private int requestType_ = 0;
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The enum numeric value on the wire for requestType.
*/
@java.lang.Override public int getRequestTypeValue() {
return requestType_;
}
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @param value The enum numeric value on the wire for requestType to set.
* @return This builder for chaining.
*/
public Builder setRequestTypeValue(int value) {
requestType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return The requestType.
*/
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionRequestProto.RequestType getRequestType() {
org.opensearch.extensions.proto.ExtensionRequestProto.RequestType result = org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.forNumber(requestType_);
return result == null ? org.opensearch.extensions.proto.ExtensionRequestProto.RequestType.UNRECOGNIZED : result;
}
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @param value The requestType to set.
* @return This builder for chaining.
*/
public Builder setRequestType(org.opensearch.extensions.proto.ExtensionRequestProto.RequestType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
requestType_ = value.getNumber();
onChanged();
return this;
}
/**
* .org.opensearch.extensions.proto.RequestType requestType = 2;
* @return This builder for chaining.
*/
public Builder clearRequestType() {
bitField0_ = (bitField0_ & ~0x00000002);
requestType_ = 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:org.opensearch.extensions.proto.ExtensionRequest)
}
// @@protoc_insertion_point(class_scope:org.opensearch.extensions.proto.ExtensionRequest)
private static final org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest();
}
public static org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtensionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.opensearch.extensions.proto.ExtensionRequestProto.ExtensionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_opensearch_extensions_proto_ExtensionRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n&extensions/ExtensionRequestProto.proto" +
"\022\037org.opensearch.extensions.proto\032\'exten" +
"sions/ExtensionIdentityProto.proto\"\233\001\n\020E" +
"xtensionRequest\022D\n\010identity\030\001 \001(\01322.org." +
"opensearch.extensions.proto.ExtensionIde" +
"ntity\022A\n\013requestType\030\002 \001(\0162,.org.opensea" +
"rch.extensions.proto.RequestType*\307\002\n\013Req" +
"uestType\022#\n\037REQUEST_EXTENSION_CLUSTER_ST" +
"ATE\020\000\022&\n\"REQUEST_EXTENSION_CLUSTER_SETTI" +
"NGS\020\001\022+\n\'REQUEST_EXTENSION_REGISTER_REST" +
"_ACTIONS\020\002\022\'\n#REQUEST_EXTENSION_REGISTER" +
"_SETTINGS\020\003\022*\n&REQUEST_EXTENSION_ENVIRON" +
"MENT_SETTINGS\020\004\022,\n(REQUEST_EXTENSION_DEP" +
"ENDENCY_INFORMATION\020\005\022\024\n\020CREATE_COMPONEN" +
"T\020\006\022\023\n\017ON_INDEX_MODULE\020\007\022\020\n\014GET_SETTINGS" +
"\020\010B\027B\025ExtensionRequestProtob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.opensearch.extensions.proto.ExtensionIdentityProto.getDescriptor(),
});
internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_opensearch_extensions_proto_ExtensionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_opensearch_extensions_proto_ExtensionRequest_descriptor,
new java.lang.String[] { "Identity", "RequestType", });
org.opensearch.extensions.proto.ExtensionIdentityProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}