yandex.cloud.api.mdb.opensearch.v1.Auth Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/opensearch/v1/auth.proto
package yandex.cloud.api.mdb.opensearch.v1;
public final class Auth {
private Auth() {}
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 AuthSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.AuthSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return Whether the saml field is set.
*/
boolean hasSaml();
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return The saml.
*/
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings getSaml();
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder getSamlOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.AuthSettings}
*/
public static final class AuthSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.AuthSettings)
AuthSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuthSettings.newBuilder() to construct.
private AuthSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AuthSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AuthSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AuthSettings(
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: {
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder subBuilder = null;
if (saml_ != null) {
subBuilder = saml_.toBuilder();
}
saml_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(saml_);
saml_ = subBuilder.buildPartial();
}
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.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.class, yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.Builder.class);
}
public static final int SAML_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings saml_;
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return Whether the saml field is set.
*/
@java.lang.Override
public boolean hasSaml() {
return saml_ != null;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return The saml.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings getSaml() {
return saml_ == null ? yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.getDefaultInstance() : saml_;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder getSamlOrBuilder() {
return getSaml();
}
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 (saml_ != null) {
output.writeMessage(1, getSaml());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (saml_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSaml());
}
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.mdb.opensearch.v1.Auth.AuthSettings)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings other = (yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings) obj;
if (hasSaml() != other.hasSaml()) return false;
if (hasSaml()) {
if (!getSaml()
.equals(other.getSaml())) 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();
if (hasSaml()) {
hash = (37 * hash) + SAML_FIELD_NUMBER;
hash = (53 * hash) + getSaml().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.Auth.AuthSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.Auth.AuthSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.Auth.AuthSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.Auth.AuthSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.Auth.AuthSettings 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.mdb.opensearch.v1.AuthSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.AuthSettings)
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.class, yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.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();
if (samlBuilder_ == null) {
saml_ = null;
} else {
saml_ = null;
samlBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings build() {
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings result = new yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings(this);
if (samlBuilder_ == null) {
result.saml_ = saml_;
} else {
result.saml_ = samlBuilder_.build();
}
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.mdb.opensearch.v1.Auth.AuthSettings) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings other) {
if (other == yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings.getDefaultInstance()) return this;
if (other.hasSaml()) {
mergeSaml(other.getSaml());
}
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.mdb.opensearch.v1.Auth.AuthSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings saml_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder> samlBuilder_;
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return Whether the saml field is set.
*/
public boolean hasSaml() {
return samlBuilder_ != null || saml_ != null;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
* @return The saml.
*/
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings getSaml() {
if (samlBuilder_ == null) {
return saml_ == null ? yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.getDefaultInstance() : saml_;
} else {
return samlBuilder_.getMessage();
}
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public Builder setSaml(yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings value) {
if (samlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
saml_ = value;
onChanged();
} else {
samlBuilder_.setMessage(value);
}
return this;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public Builder setSaml(
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder builderForValue) {
if (samlBuilder_ == null) {
saml_ = builderForValue.build();
onChanged();
} else {
samlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public Builder mergeSaml(yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings value) {
if (samlBuilder_ == null) {
if (saml_ != null) {
saml_ =
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.newBuilder(saml_).mergeFrom(value).buildPartial();
} else {
saml_ = value;
}
onChanged();
} else {
samlBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public Builder clearSaml() {
if (samlBuilder_ == null) {
saml_ = null;
onChanged();
} else {
saml_ = null;
samlBuilder_ = null;
}
return this;
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder getSamlBuilder() {
onChanged();
return getSamlFieldBuilder().getBuilder();
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder getSamlOrBuilder() {
if (samlBuilder_ != null) {
return samlBuilder_.getMessageOrBuilder();
} else {
return saml_ == null ?
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.getDefaultInstance() : saml_;
}
}
/**
*
* SAML settings
*
*
* .yandex.cloud.mdb.opensearch.v1.SAMLSettings saml = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder>
getSamlFieldBuilder() {
if (samlBuilder_ == null) {
samlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder>(
getSaml(),
getParentForChildren(),
isClean());
saml_ = null;
}
return samlBuilder_;
}
@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.mdb.opensearch.v1.AuthSettings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.AuthSettings)
private static final yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings();
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.AuthSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuthSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AuthSettings(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.mdb.opensearch.v1.Auth.AuthSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SAMLSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.SAMLSettings)
com.google.protobuf.MessageOrBuilder {
/**
* bool enabled = 1;
* @return The enabled.
*/
boolean getEnabled();
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The idpEntityId.
*/
java.lang.String getIdpEntityId();
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for idpEntityId.
*/
com.google.protobuf.ByteString
getIdpEntityIdBytes();
/**
*
* Required. The SAML 2.0 metadata file of your IdP.
*
*
* bytes idp_metadata_file = 3 [(.yandex.cloud.length) = "<=10000"];
* @return The idpMetadataFile.
*/
com.google.protobuf.ByteString getIdpMetadataFile();
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The spEntityId.
*/
java.lang.String getSpEntityId();
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for spEntityId.
*/
com.google.protobuf.ByteString
getSpEntityIdBytes();
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The dashboardsUrl.
*/
java.lang.String getDashboardsUrl();
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for dashboardsUrl.
*/
com.google.protobuf.ByteString
getDashboardsUrlBytes();
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The rolesKey.
*/
java.lang.String getRolesKey();
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for rolesKey.
*/
com.google.protobuf.ByteString
getRolesKeyBytes();
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The subjectKey.
*/
java.lang.String getSubjectKey();
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for subjectKey.
*/
com.google.protobuf.ByteString
getSubjectKeyBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.SAMLSettings}
*/
public static final class SAMLSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.SAMLSettings)
SAMLSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SAMLSettings.newBuilder() to construct.
private SAMLSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SAMLSettings() {
idpEntityId_ = "";
idpMetadataFile_ = com.google.protobuf.ByteString.EMPTY;
spEntityId_ = "";
dashboardsUrl_ = "";
rolesKey_ = "";
subjectKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SAMLSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SAMLSettings(
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 8: {
enabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
idpEntityId_ = s;
break;
}
case 26: {
idpMetadataFile_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
spEntityId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
dashboardsUrl_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
rolesKey_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
subjectKey_ = 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.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.class, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder.class);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int IDP_ENTITY_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object idpEntityId_;
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The idpEntityId.
*/
@java.lang.Override
public java.lang.String getIdpEntityId() {
java.lang.Object ref = idpEntityId_;
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();
idpEntityId_ = s;
return s;
}
}
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for idpEntityId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdpEntityIdBytes() {
java.lang.Object ref = idpEntityId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idpEntityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IDP_METADATA_FILE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString idpMetadataFile_;
/**
*
* Required. The SAML 2.0 metadata file of your IdP.
*
*
* bytes idp_metadata_file = 3 [(.yandex.cloud.length) = "<=10000"];
* @return The idpMetadataFile.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdpMetadataFile() {
return idpMetadataFile_;
}
public static final int SP_ENTITY_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object spEntityId_;
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The spEntityId.
*/
@java.lang.Override
public java.lang.String getSpEntityId() {
java.lang.Object ref = spEntityId_;
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();
spEntityId_ = s;
return s;
}
}
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for spEntityId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpEntityIdBytes() {
java.lang.Object ref = spEntityId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spEntityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DASHBOARDS_URL_FIELD_NUMBER = 5;
private volatile java.lang.Object dashboardsUrl_;
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The dashboardsUrl.
*/
@java.lang.Override
public java.lang.String getDashboardsUrl() {
java.lang.Object ref = dashboardsUrl_;
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();
dashboardsUrl_ = s;
return s;
}
}
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for dashboardsUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDashboardsUrlBytes() {
java.lang.Object ref = dashboardsUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dashboardsUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLES_KEY_FIELD_NUMBER = 6;
private volatile java.lang.Object rolesKey_;
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The rolesKey.
*/
@java.lang.Override
public java.lang.String getRolesKey() {
java.lang.Object ref = rolesKey_;
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();
rolesKey_ = s;
return s;
}
}
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for rolesKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRolesKeyBytes() {
java.lang.Object ref = rolesKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rolesKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBJECT_KEY_FIELD_NUMBER = 7;
private volatile java.lang.Object subjectKey_;
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The subjectKey.
*/
@java.lang.Override
public java.lang.String getSubjectKey() {
java.lang.Object ref = subjectKey_;
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();
subjectKey_ = s;
return s;
}
}
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for subjectKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubjectKeyBytes() {
java.lang.Object ref = subjectKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subjectKey_ = 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 (enabled_ != false) {
output.writeBool(1, enabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idpEntityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idpEntityId_);
}
if (!idpMetadataFile_.isEmpty()) {
output.writeBytes(3, idpMetadataFile_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spEntityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, spEntityId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dashboardsUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dashboardsUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolesKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, rolesKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subjectKey_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, enabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idpEntityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, idpEntityId_);
}
if (!idpMetadataFile_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, idpMetadataFile_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spEntityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, spEntityId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dashboardsUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dashboardsUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolesKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, rolesKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subjectKey_);
}
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.mdb.opensearch.v1.Auth.SAMLSettings)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings other = (yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings) obj;
if (getEnabled()
!= other.getEnabled()) return false;
if (!getIdpEntityId()
.equals(other.getIdpEntityId())) return false;
if (!getIdpMetadataFile()
.equals(other.getIdpMetadataFile())) return false;
if (!getSpEntityId()
.equals(other.getSpEntityId())) return false;
if (!getDashboardsUrl()
.equals(other.getDashboardsUrl())) return false;
if (!getRolesKey()
.equals(other.getRolesKey())) return false;
if (!getSubjectKey()
.equals(other.getSubjectKey())) 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) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (37 * hash) + IDP_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getIdpEntityId().hashCode();
hash = (37 * hash) + IDP_METADATA_FILE_FIELD_NUMBER;
hash = (53 * hash) + getIdpMetadataFile().hashCode();
hash = (37 * hash) + SP_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpEntityId().hashCode();
hash = (37 * hash) + DASHBOARDS_URL_FIELD_NUMBER;
hash = (53 * hash) + getDashboardsUrl().hashCode();
hash = (37 * hash) + ROLES_KEY_FIELD_NUMBER;
hash = (53 * hash) + getRolesKey().hashCode();
hash = (37 * hash) + SUBJECT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSubjectKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.Auth.SAMLSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.Auth.SAMLSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.Auth.SAMLSettings 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.mdb.opensearch.v1.SAMLSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.SAMLSettings)
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.class, yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.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();
enabled_ = false;
idpEntityId_ = "";
idpMetadataFile_ = com.google.protobuf.ByteString.EMPTY;
spEntityId_ = "";
dashboardsUrl_ = "";
rolesKey_ = "";
subjectKey_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings build() {
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings result = new yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings(this);
result.enabled_ = enabled_;
result.idpEntityId_ = idpEntityId_;
result.idpMetadataFile_ = idpMetadataFile_;
result.spEntityId_ = spEntityId_;
result.dashboardsUrl_ = dashboardsUrl_;
result.rolesKey_ = rolesKey_;
result.subjectKey_ = subjectKey_;
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.mdb.opensearch.v1.Auth.SAMLSettings) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings other) {
if (other == yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings.getDefaultInstance()) return this;
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.getIdpEntityId().isEmpty()) {
idpEntityId_ = other.idpEntityId_;
onChanged();
}
if (other.getIdpMetadataFile() != com.google.protobuf.ByteString.EMPTY) {
setIdpMetadataFile(other.getIdpMetadataFile());
}
if (!other.getSpEntityId().isEmpty()) {
spEntityId_ = other.spEntityId_;
onChanged();
}
if (!other.getDashboardsUrl().isEmpty()) {
dashboardsUrl_ = other.dashboardsUrl_;
onChanged();
}
if (!other.getRolesKey().isEmpty()) {
rolesKey_ = other.rolesKey_;
onChanged();
}
if (!other.getSubjectKey().isEmpty()) {
subjectKey_ = other.subjectKey_;
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.mdb.opensearch.v1.Auth.SAMLSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 1;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 1;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private java.lang.Object idpEntityId_ = "";
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The idpEntityId.
*/
public java.lang.String getIdpEntityId() {
java.lang.Object ref = idpEntityId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
idpEntityId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for idpEntityId.
*/
public com.google.protobuf.ByteString
getIdpEntityIdBytes() {
java.lang.Object ref = idpEntityId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idpEntityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @param value The idpEntityId to set.
* @return This builder for chaining.
*/
public Builder setIdpEntityId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
idpEntityId_ = value;
onChanged();
return this;
}
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @return This builder for chaining.
*/
public Builder clearIdpEntityId() {
idpEntityId_ = getDefaultInstance().getIdpEntityId();
onChanged();
return this;
}
/**
*
* Required. The entity ID of your IdP.
*
*
* string idp_entity_id = 2 [(.yandex.cloud.length) = "<=250"];
* @param value The bytes for idpEntityId to set.
* @return This builder for chaining.
*/
public Builder setIdpEntityIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
idpEntityId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString idpMetadataFile_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Required. The SAML 2.0 metadata file of your IdP.
*
*
* bytes idp_metadata_file = 3 [(.yandex.cloud.length) = "<=10000"];
* @return The idpMetadataFile.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdpMetadataFile() {
return idpMetadataFile_;
}
/**
*
* Required. The SAML 2.0 metadata file of your IdP.
*
*
* bytes idp_metadata_file = 3 [(.yandex.cloud.length) = "<=10000"];
* @param value The idpMetadataFile to set.
* @return This builder for chaining.
*/
public Builder setIdpMetadataFile(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
idpMetadataFile_ = value;
onChanged();
return this;
}
/**
*
* Required. The SAML 2.0 metadata file of your IdP.
*
*
* bytes idp_metadata_file = 3 [(.yandex.cloud.length) = "<=10000"];
* @return This builder for chaining.
*/
public Builder clearIdpMetadataFile() {
idpMetadataFile_ = getDefaultInstance().getIdpMetadataFile();
onChanged();
return this;
}
private java.lang.Object spEntityId_ = "";
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The spEntityId.
*/
public java.lang.String getSpEntityId() {
java.lang.Object ref = spEntityId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
spEntityId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for spEntityId.
*/
public com.google.protobuf.ByteString
getSpEntityIdBytes() {
java.lang.Object ref = spEntityId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spEntityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @param value The spEntityId to set.
* @return This builder for chaining.
*/
public Builder setSpEntityId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
spEntityId_ = value;
onChanged();
return this;
}
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @return This builder for chaining.
*/
public Builder clearSpEntityId() {
spEntityId_ = getDefaultInstance().getSpEntityId();
onChanged();
return this;
}
/**
*
* Required. The entity ID of the service provider.
*
*
* string sp_entity_id = 4 [(.yandex.cloud.length) = "<=250"];
* @param value The bytes for spEntityId to set.
* @return This builder for chaining.
*/
public Builder setSpEntityIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
spEntityId_ = value;
onChanged();
return this;
}
private java.lang.Object dashboardsUrl_ = "";
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The dashboardsUrl.
*/
public java.lang.String getDashboardsUrl() {
java.lang.Object ref = dashboardsUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dashboardsUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for dashboardsUrl.
*/
public com.google.protobuf.ByteString
getDashboardsUrlBytes() {
java.lang.Object ref = dashboardsUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dashboardsUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @param value The dashboardsUrl to set.
* @return This builder for chaining.
*/
public Builder setDashboardsUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dashboardsUrl_ = value;
onChanged();
return this;
}
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @return This builder for chaining.
*/
public Builder clearDashboardsUrl() {
dashboardsUrl_ = getDefaultInstance().getDashboardsUrl();
onChanged();
return this;
}
/**
*
* Required. The OpenSearch Dashboards base URL.
*
*
* string dashboards_url = 5 [(.yandex.cloud.length) = "<=250"];
* @param value The bytes for dashboardsUrl to set.
* @return This builder for chaining.
*/
public Builder setDashboardsUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dashboardsUrl_ = value;
onChanged();
return this;
}
private java.lang.Object rolesKey_ = "";
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The rolesKey.
*/
public java.lang.String getRolesKey() {
java.lang.Object ref = rolesKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rolesKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for rolesKey.
*/
public com.google.protobuf.ByteString
getRolesKeyBytes() {
java.lang.Object ref = rolesKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rolesKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @param value The rolesKey to set.
* @return This builder for chaining.
*/
public Builder setRolesKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rolesKey_ = value;
onChanged();
return this;
}
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @return This builder for chaining.
*/
public Builder clearRolesKey() {
rolesKey_ = getDefaultInstance().getRolesKey();
onChanged();
return this;
}
/**
*
* Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used.
*
*
* string roles_key = 6 [(.yandex.cloud.length) = "<=250"];
* @param value The bytes for rolesKey to set.
* @return This builder for chaining.
*/
public Builder setRolesKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rolesKey_ = value;
onChanged();
return this;
}
private java.lang.Object subjectKey_ = "";
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The subjectKey.
*/
public java.lang.String getSubjectKey() {
java.lang.Object ref = subjectKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subjectKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return The bytes for subjectKey.
*/
public com.google.protobuf.ByteString
getSubjectKeyBytes() {
java.lang.Object ref = subjectKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subjectKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @param value The subjectKey to set.
* @return This builder for chaining.
*/
public Builder setSubjectKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subjectKey_ = value;
onChanged();
return this;
}
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @return This builder for chaining.
*/
public Builder clearSubjectKey() {
subjectKey_ = getDefaultInstance().getSubjectKey();
onChanged();
return this;
}
/**
*
* Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used.
*
*
* string subject_key = 7 [(.yandex.cloud.length) = "<=250"];
* @param value The bytes for subjectKey to set.
* @return This builder for chaining.
*/
public Builder setSubjectKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subjectKey_ = 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.mdb.opensearch.v1.SAMLSettings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.SAMLSettings)
private static final yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings();
}
public static yandex.cloud.api.mdb.opensearch.v1.Auth.SAMLSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SAMLSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SAMLSettings(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.mdb.opensearch.v1.Auth.SAMLSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_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)yandex/cloud/mdb/opensearch/v1/auth.pr" +
"oto\022\036yandex.cloud.mdb.opensearch.v1\032\035yan" +
"dex/cloud/validation.proto\"J\n\014AuthSettin" +
"gs\022:\n\004saml\030\001 \001(\0132,.yandex.cloud.mdb.open" +
"search.v1.SAMLSettings\"\353\001\n\014SAMLSettings\022" +
"\017\n\007enabled\030\001 \001(\010\022 \n\ridp_entity_id\030\002 \001(\tB" +
"\t\212\3101\005<=250\022&\n\021idp_metadata_file\030\003 \001(\014B\013\212" +
"\3101\007<=10000\022\037\n\014sp_entity_id\030\004 \001(\tB\t\212\3101\005<=" +
"250\022!\n\016dashboards_url\030\005 \001(\tB\t\212\3101\005<=250\022\034" +
"\n\troles_key\030\006 \001(\tB\t\212\3101\005<=250\022\036\n\013subject_" +
"key\030\007 \001(\tB\t\212\3101\005<=250Bs\n\"yandex.cloud.api" +
".mdb.opensearch.v1ZMgithub.com/yandex-cl" +
"oud/go-genproto/yandex/cloud/mdb/opensea" +
"rch/v1;opensearchb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_opensearch_v1_AuthSettings_descriptor,
new java.lang.String[] { "Saml", });
internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_opensearch_v1_SAMLSettings_descriptor,
new java.lang.String[] { "Enabled", "IdpEntityId", "IdpMetadataFile", "SpEntityId", "DashboardsUrl", "RolesKey", "SubjectKey", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy