All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.datasphere.v2.SecretOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/datasphere/v2/secret.proto

package yandex.cloud.api.datasphere.v2;

public final class SecretOuterClass {
  private SecretOuterClass() {}
  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 SecretOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.Secret)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the secret.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the secret.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the project.
     * 
* * string project_id = 2; * @return The projectId. */ java.lang.String getProjectId(); /** *
     * ID of the project.
     * 
* * string project_id = 2; * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the secret. 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the secret. 1-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the secret. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the secret. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * ID of the user who created secret.
     * 
* * string created_by_id = 7; * @return The createdById. */ java.lang.String getCreatedById(); /** *
     * ID of the user who created secret.
     * 
* * string created_by_id = 7; * @return The bytes for createdById. */ com.google.protobuf.ByteString getCreatedByIdBytes(); /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ boolean hasUpdatedAt(); /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ com.google.protobuf.Timestamp getUpdatedAt(); /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.Secret) SecretOrBuilder { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { id_ = ""; projectId_ = ""; name_ = ""; description_ = ""; createdById_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Secret(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Secret( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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(); projectId_ = s; break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); createdById_ = s; break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updatedAt_ != null) { subBuilder = updatedAt_.toBuilder(); } updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updatedAt_); updatedAt_ = 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.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.class, yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the secret.
     * 
* * string id = 1; * @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 secret.
     * 
* * string id = 1; * @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 PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** *
     * ID of the project.
     * 
* * string project_id = 2; * @return The projectId. */ @java.lang.Override public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; } } /** *
     * ID of the project.
     * 
* * string project_id = 2; * @return The bytes for projectId. */ @java.lang.Override public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Time when secret was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the secret. 1-63 characters long.
     * 
* * string name = 4; * @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 secret. 1-63 characters long.
     * 
* * string name = 4; * @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 = 5; private volatile java.lang.Object description_; /** *
     * Description of the secret. 0-256 characters long.
     * 
* * string description = 5; * @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 secret. 0-256 characters long.
     * 
* * string description = 5; * @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 LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Labels of the secret.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CREATED_BY_ID_FIELD_NUMBER = 7; private volatile java.lang.Object createdById_; /** *
     * ID of the user who created secret.
     * 
* * string created_by_id = 7; * @return The createdById. */ @java.lang.Override public java.lang.String getCreatedById() { java.lang.Object ref = createdById_; 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(); createdById_ = s; return s; } } /** *
     * ID of the user who created secret.
     * 
* * string created_by_id = 7; * @return The bytes for createdById. */ @java.lang.Override public com.google.protobuf.ByteString getCreatedByIdBytes() { java.lang.Object ref = createdById_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdById_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updatedAt_; /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** *
     * Time of last secret update.
     * 
* * .google.protobuf.Timestamp updated_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } 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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdById_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, createdById_); } if (updatedAt_ != null) { output.writeMessage(9, getUpdatedAt()); } 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(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdById_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, createdById_); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUpdatedAt()); } 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.datasphere.v2.SecretOuterClass.Secret)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret other = (yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret) obj; if (!getId() .equals(other.getId())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getCreatedById() .equals(other.getCreatedById())) return false; if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) 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) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CREATED_BY_ID_FIELD_NUMBER; hash = (53 * hash) + getCreatedById().hashCode(); if (hasUpdatedAt()) { hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.SecretOuterClass.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.SecretOuterClass.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.SecretOuterClass.Secret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.SecretOuterClass.Secret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.SecretOuterClass.Secret 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.datasphere.v2.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.Secret) yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.class, yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.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_ = ""; projectId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); createdById_ = ""; if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_Secret_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret build() { yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret buildPartial() { yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret result = new yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.projectId_ = projectId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.createdById_ = createdById_; if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.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.datasphere.v2.SecretOuterClass.Secret) { return mergeFrom((yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret other) { if (other == yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getCreatedById().isEmpty()) { createdById_ = other.createdById_; onChanged(); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } 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.datasphere.v2.SecretOuterClass.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the secret.
       * 
* * string id = 1; * @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 secret.
       * 
* * string id = 1; * @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 secret.
       * 
* * string id = 1; * @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 secret.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the secret.
       * 
* * string id = 1; * @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 projectId_ = ""; /** *
       * ID of the project.
       * 
* * string project_id = 2; * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the project.
       * 
* * string project_id = 2; * @return The bytes for projectId. */ public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the project.
       * 
* * string project_id = 2; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; onChanged(); return this; } /** *
       * ID of the project.
       * 
* * string project_id = 2; * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** *
       * ID of the project.
       * 
* * string project_id = 2; * @param value The bytes for projectId to set. * @return This builder for chaining. */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = 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_; /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @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(); } } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ 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; } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ 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; } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Time when secret was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ 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 name_ = ""; /** *
       * Name of the secret. 1-63 characters long.
       * 
* * string name = 4; * @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 secret. 1-63 characters long.
       * 
* * string name = 4; * @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 secret. 1-63 characters long.
       * 
* * string name = 4; * @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 secret. 1-63 characters long.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the secret. 1-63 characters long.
       * 
* * string name = 4; * @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 secret. 0-256 characters long.
       * 
* * string description = 5; * @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 secret. 0-256 characters long.
       * 
* * string description = 5; * @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 secret. 0-256 characters long.
       * 
* * string description = 5; * @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 secret. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the secret. 0-256 characters long.
       * 
* * string description = 5; * @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.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Labels of the secret.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object createdById_ = ""; /** *
       * ID of the user who created secret.
       * 
* * string created_by_id = 7; * @return The createdById. */ public java.lang.String getCreatedById() { java.lang.Object ref = createdById_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); createdById_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the user who created secret.
       * 
* * string created_by_id = 7; * @return The bytes for createdById. */ public com.google.protobuf.ByteString getCreatedByIdBytes() { java.lang.Object ref = createdById_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdById_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the user who created secret.
       * 
* * string created_by_id = 7; * @param value The createdById to set. * @return This builder for chaining. */ public Builder setCreatedById( java.lang.String value) { if (value == null) { throw new NullPointerException(); } createdById_ = value; onChanged(); return this; } /** *
       * ID of the user who created secret.
       * 
* * string created_by_id = 7; * @return This builder for chaining. */ public Builder clearCreatedById() { createdById_ = getDefaultInstance().getCreatedById(); onChanged(); return this; } /** *
       * ID of the user who created secret.
       * 
* * string created_by_id = 7; * @param value The bytes for createdById to set. * @return This builder for chaining. */ public Builder setCreatedByIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); createdById_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** *
       * Time of last secret update.
       * 
* * .google.protobuf.Timestamp updated_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } @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.datasphere.v2.Secret) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.Secret) private static final yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret(); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(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.datasphere.v2.SecretOuterClass.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DecryptedSecretOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.DecryptedSecret) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return Whether the secret field is set. */ boolean hasSecret(); /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return The secret. */ yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret getSecret(); /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder getSecretOrBuilder(); /** *
     * Content of the secret.
     * 
* * string content = 2; * @return The content. */ java.lang.String getContent(); /** *
     * Content of the secret.
     * 
* * string content = 2; * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.DecryptedSecret} */ public static final class DecryptedSecret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.DecryptedSecret) DecryptedSecretOrBuilder { private static final long serialVersionUID = 0L; // Use DecryptedSecret.newBuilder() to construct. private DecryptedSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecryptedSecret() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DecryptedSecret(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DecryptedSecret( 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.datasphere.v2.SecretOuterClass.Secret.Builder subBuilder = null; if (secret_ != null) { subBuilder = secret_.toBuilder(); } secret_ = input.readMessage(yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secret_); secret_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); content_ = 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.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.class, yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.Builder.class); } public static final int SECRET_FIELD_NUMBER = 1; private yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret secret_; /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return Whether the secret field is set. */ @java.lang.Override public boolean hasSecret() { return secret_ != null; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return The secret. */ @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret getSecret() { return secret_ == null ? yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.getDefaultInstance() : secret_; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder getSecretOrBuilder() { return getSecret(); } public static final int CONTENT_FIELD_NUMBER = 2; private volatile java.lang.Object content_; /** *
     * Content of the secret.
     * 
* * string content = 2; * @return The content. */ @java.lang.Override public java.lang.String getContent() { java.lang.Object ref = content_; 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(); content_ = s; return s; } } /** *
     * Content of the secret.
     * 
* * string content = 2; * @return The bytes for content. */ @java.lang.Override public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = 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 (secret_ != null) { output.writeMessage(1, getSecret()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (secret_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSecret()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); } 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.datasphere.v2.SecretOuterClass.DecryptedSecret)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret other = (yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret) obj; if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { if (!getSecret() .equals(other.getSecret())) return false; } if (!getContent() .equals(other.getContent())) 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 (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.SecretOuterClass.DecryptedSecret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.SecretOuterClass.DecryptedSecret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.SecretOuterClass.DecryptedSecret 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.datasphere.v2.DecryptedSecret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.DecryptedSecret) yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.class, yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.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 (secretBuilder_ == null) { secret_ = null; } else { secret_ = null; secretBuilder_ = null; } content_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret build() { yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret buildPartial() { yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret result = new yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret(this); if (secretBuilder_ == null) { result.secret_ = secret_; } else { result.secret_ = secretBuilder_.build(); } result.content_ = content_; 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.datasphere.v2.SecretOuterClass.DecryptedSecret) { return mergeFrom((yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret other) { if (other == yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret.getDefaultInstance()) return this; if (other.hasSecret()) { mergeSecret(other.getSecret()); } if (!other.getContent().isEmpty()) { content_ = other.content_; 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.datasphere.v2.SecretOuterClass.DecryptedSecret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret secret_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret, yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder, yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder> secretBuilder_; /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return Whether the secret field is set. */ public boolean hasSecret() { return secretBuilder_ != null || secret_ != null; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; * @return The secret. */ public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret getSecret() { if (secretBuilder_ == null) { return secret_ == null ? yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public Builder setSecret(yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret value) { if (secretBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secret_ = value; onChanged(); } else { secretBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public Builder setSecret( yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); } else { secretBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public Builder mergeSecret(yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret value) { if (secretBuilder_ == null) { if (secret_ != null) { secret_ = yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); } else { secret_ = value; } onChanged(); } else { secretBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public Builder clearSecret() { if (secretBuilder_ == null) { secret_ = null; onChanged(); } else { secret_ = null; secretBuilder_ = null; } return this; } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder getSecretBuilder() { onChanged(); return getSecretFieldBuilder().getBuilder(); } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ public yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { return secret_ == null ? yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.getDefaultInstance() : secret_; } } /** * .yandex.cloud.datasphere.v2.Secret secret = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret, yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder, yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret, yandex.cloud.api.datasphere.v2.SecretOuterClass.Secret.Builder, yandex.cloud.api.datasphere.v2.SecretOuterClass.SecretOrBuilder>( getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } private java.lang.Object content_ = ""; /** *
       * Content of the secret.
       * 
* * string content = 2; * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Content of the secret.
       * 
* * string content = 2; * @return The bytes for content. */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Content of the secret.
       * 
* * string content = 2; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** *
       * Content of the secret.
       * 
* * string content = 2; * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** *
       * Content of the secret.
       * 
* * string content = 2; * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = 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.datasphere.v2.DecryptedSecret) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.DecryptedSecret) private static final yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret(); } public static yandex.cloud.api.datasphere.v2.SecretOuterClass.DecryptedSecret getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DecryptedSecret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DecryptedSecret(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.datasphere.v2.SecretOuterClass.DecryptedSecret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_Secret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_Secret_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_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/datasphere/v2/secret.prot" + "o\022\032yandex.cloud.datasphere.v2\032\037google/pr" + "otobuf/timestamp.proto\"\275\002\n\006Secret\022\n\n\002id\030" + "\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022.\n\ncreated_at\030" + "\003 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004nam" + "e\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022>\n\006labels\030\006" + " \003(\0132..yandex.cloud.datasphere.v2.Secret" + ".LabelsEntry\022\025\n\rcreated_by_id\030\007 \001(\t\022.\n\nu" + "pdated_at\030\t \001(\0132\032.google.protobuf.Timest" + "amp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001J\004\010\010\020\tJ\004\010\n\020\013\"V\n\017DecryptedSecre" + "t\0222\n\006secret\030\001 \001(\0132\".yandex.cloud.datasph" + "ere.v2.Secret\022\017\n\007content\030\002 \001(\tBk\n\036yandex" + ".cloud.api.datasphere.v2ZIgithub.com/yan" + "dex-cloud/go-genproto/yandex/cloud/datas" + "phere/v2;datasphereb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_datasphere_v2_Secret_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_datasphere_v2_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_Secret_descriptor, new java.lang.String[] { "Id", "ProjectId", "CreatedAt", "Name", "Description", "Labels", "CreatedById", "UpdatedAt", }); internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_descriptor = internal_static_yandex_cloud_datasphere_v2_Secret_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_Secret_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_DecryptedSecret_descriptor, new java.lang.String[] { "Secret", "Content", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy