yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/organizationmanager/v1/saml/certificate.proto
package yandex.cloud.api.organizationmanager.v1.saml;
public final class CertificateOuterClass {
private CertificateOuterClass() {}
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 CertificateOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.organizationmanager.v1.saml.Certificate)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The federationId.
*/
java.lang.String getFederationId();
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for federationId.
*/
com.google.protobuf.ByteString
getFederationIdBytes();
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The data.
*/
java.lang.String getData();
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The bytes for data.
*/
com.google.protobuf.ByteString
getDataBytes();
}
/**
*
* A certificate.
*
*
* Protobuf type {@code yandex.cloud.organizationmanager.v1.saml.Certificate}
*/
public static final class Certificate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.organizationmanager.v1.saml.Certificate)
CertificateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Certificate.newBuilder() to construct.
private Certificate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Certificate() {
id_ = "";
federationId_ = "";
name_ = "";
description_ = "";
data_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Certificate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Certificate(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
federationId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
data_ = 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.organizationmanager.v1.saml.CertificateOuterClass.internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.class, yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEDERATION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object federationId_;
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The federationId.
*/
@java.lang.Override
public java.lang.String getFederationId() {
java.lang.Object ref = federationId_;
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();
federationId_ = s;
return s;
}
}
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for federationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFederationIdBytes() {
java.lang.Object ref = federationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
federationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int DATA_FIELD_NUMBER = 6;
private volatile java.lang.Object data_;
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The data.
*/
@java.lang.Override
public java.lang.String getData() {
java.lang.Object ref = data_;
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();
data_ = s;
return s;
}
}
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The bytes for data.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, federationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (createdAt_ != null) {
output.writeMessage(5, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, federationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, data_);
}
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.organizationmanager.v1.saml.CertificateOuterClass.Certificate)) {
return super.equals(obj);
}
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate other = (yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFederationId()
.equals(other.getFederationId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getData()
.equals(other.getData())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FEDERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getFederationId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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.organizationmanager.v1.saml.CertificateOuterClass.Certificate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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.organizationmanager.v1.saml.CertificateOuterClass.Certificate 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;
}
/**
*
* A certificate.
*
*
* Protobuf type {@code yandex.cloud.organizationmanager.v1.saml.Certificate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.organizationmanager.v1.saml.Certificate)
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.CertificateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.class, yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.Builder.class);
}
// Construct using yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.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();
id_ = "";
federationId_ = "";
name_ = "";
description_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
data_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor;
}
@java.lang.Override
public yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate getDefaultInstanceForType() {
return yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate build() {
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate buildPartial() {
yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate result = new yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate(this);
result.id_ = id_;
result.federationId_ = federationId_;
result.name_ = name_;
result.description_ = description_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.data_ = data_;
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.organizationmanager.v1.saml.CertificateOuterClass.Certificate) {
return mergeFrom((yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate other) {
if (other == yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFederationId().isEmpty()) {
federationId_ = other.federationId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getData().isEmpty()) {
data_ = other.data_;
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.organizationmanager.v1.saml.CertificateOuterClass.Certificate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the certificate.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object federationId_ = "";
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The federationId.
*/
public java.lang.String getFederationId() {
java.lang.Object ref = federationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
federationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for federationId.
*/
public com.google.protobuf.ByteString
getFederationIdBytes() {
java.lang.Object ref = federationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
federationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The federationId to set.
* @return This builder for chaining.
*/
public Builder setFederationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
federationId_ = value;
onChanged();
return this;
}
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFederationId() {
federationId_ = getDefaultInstance().getFederationId();
onChanged();
return this;
}
/**
*
* ID of the federation that the certificate belongs to.
*
*
* string federation_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for federationId to set.
* @return This builder for chaining.
*/
public Builder setFederationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
federationId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the certificate.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the certificate.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object data_ = "";
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The data.
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return The bytes for data.
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
*
* Certificate data in PEM format.
*
*
* string data = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32000"];
* @param value The bytes for data to set.
* @return This builder for chaining.
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
data_ = 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.organizationmanager.v1.saml.Certificate)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.organizationmanager.v1.saml.Certificate)
private static final yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate();
}
public static yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Certificate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Certificate(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.organizationmanager.v1.saml.CertificateOuterClass.Certificate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_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/organizationmanager/v1/sa" +
"ml/certificate.proto\022(yandex.cloud.organ" +
"izationmanager.v1.saml\032\035yandex/cloud/val" +
"idation.proto\032\037google/protobuf/timestamp" +
".proto\"\354\001\n\013Certificate\022\030\n\002id\030\001 \001(\tB\014\350\3071\001" +
"\212\3101\004<=50\022#\n\rfederation_id\030\002 \001(\tB\014\350\3071\001\212\3101" +
"\004<=50\022/\n\004name\030\003 \001(\tB!\362\3071\035|[a-z][-a-z0-9]" +
"{1,61}[a-z0-9]\022\036\n\013description\030\004 \001(\tB\t\212\3101" +
"\005<=256\022.\n\ncreated_at\030\005 \001(\0132\032.google.prot" +
"obuf.Timestamp\022\035\n\004data\030\006 \001(\tB\017\350\3071\001\212\3101\007<=" +
"32000B\201\001\n,yandex.cloud.api.organizationm" +
"anager.v1.samlZQgithub.com/yandex-cloud/" +
"go-genproto/yandex/cloud/organizationman" +
"ager/v1/saml;samlb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.Validation.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_organizationmanager_v1_saml_Certificate_descriptor,
new java.lang.String[] { "Id", "FederationId", "Name", "Description", "CreatedAt", "Data", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
yandex.cloud.api.Validation.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy