java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.secretmanager.v1beta1.Secret
All Implemented Interfaces:
SecretOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Secret extends com.google.protobuf.GeneratedMessage implements SecretOrBuilder
 A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose
 value and versions can be accessed.

 A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more
 [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that represent
 the secret data.
 
Protobuf type google.cloud.secrets.v1beta1.Secret
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can be accessed.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The labels assigned to this Secret.
    boolean
     
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    static Secret
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Deprecated.
    int
    The labels assigned to this Secret.
    The labels assigned to this Secret.
    getLabelsOrDefault(String key, String defaultValue)
    The labels assigned to this Secret.
    The labels assigned to this Secret.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    com.google.protobuf.Parser<Secret>
     
    Required.
    Required.
    int
     
    boolean
    Output only.
    int
     
    boolean
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(Secret prototype)
     
     
    protected Secret.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Secret
     
    static Secret
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Secret
    parseFrom(byte[] data)
     
    static Secret
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Secret
    parseFrom(com.google.protobuf.ByteString data)
     
    static Secret
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Secret
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Secret
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Secret
     
    static Secret
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Secret
     
    static Secret
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Secret>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Output only. The resource name of the
       [Secret][google.cloud.secrets.v1beta1.Secret] in the format
       `projects/*/secrets/*`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SecretOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the
       [Secret][google.cloud.secrets.v1beta1.Secret] in the format
       `projects/*/secrets/*`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface SecretOrBuilder
      Returns:
      The bytes for name.
    • hasReplication

      public boolean hasReplication()
       Required. Immutable. The replication policy of the secret data attached to
       the [Secret][google.cloud.secrets.v1beta1.Secret].
      
       The replication policy cannot be changed after the Secret has been created.
       
      .google.cloud.secrets.v1beta1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReplication in interface SecretOrBuilder
      Returns:
      Whether the replication field is set.
    • getReplication

      public Replication getReplication()
       Required. Immutable. The replication policy of the secret data attached to
       the [Secret][google.cloud.secrets.v1beta1.Secret].
      
       The replication policy cannot be changed after the Secret has been created.
       
      .google.cloud.secrets.v1beta1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReplication in interface SecretOrBuilder
      Returns:
      The replication.
    • getReplicationOrBuilder

      public ReplicationOrBuilder getReplicationOrBuilder()
       Required. Immutable. The replication policy of the secret data attached to
       the [Secret][google.cloud.secrets.v1beta1.Secret].
      
       The replication policy cannot be changed after the Secret has been created.
       
      .google.cloud.secrets.v1beta1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReplicationOrBuilder in interface SecretOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the
       [Secret][google.cloud.secrets.v1beta1.Secret] was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SecretOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the
       [Secret][google.cloud.secrets.v1beta1.Secret] was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SecretOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the
       [Secret][google.cloud.secrets.v1beta1.Secret] was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SecretOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SecretOrBuilder
       The labels assigned to this Secret.
      
       Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
       of maximum 128 bytes, and must conform to the following PCRE regular
       expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
      
       Label values must be between 0 and 63 characters long, have a UTF-8
       encoding of maximum 128 bytes, and must conform to the following PCRE
       regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
      
       No more than 64 labels can be assigned to a given resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface SecretOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The labels assigned to this Secret.
      
       Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
       of maximum 128 bytes, and must conform to the following PCRE regular
       expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
      
       Label values must be between 0 and 63 characters long, have a UTF-8
       encoding of maximum 128 bytes, and must conform to the following PCRE
       regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
      
       No more than 64 labels can be assigned to a given resource.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface SecretOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SecretOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The labels assigned to this Secret.
      
       Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
       of maximum 128 bytes, and must conform to the following PCRE regular
       expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
      
       Label values must be between 0 and 63 characters long, have a UTF-8
       encoding of maximum 128 bytes, and must conform to the following PCRE
       regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
      
       No more than 64 labels can be assigned to a given resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface SecretOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The labels assigned to this Secret.
      
       Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
       of maximum 128 bytes, and must conform to the following PCRE regular
       expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
      
       Label values must be between 0 and 63 characters long, have a UTF-8
       encoding of maximum 128 bytes, and must conform to the following PCRE
       regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
      
       No more than 64 labels can be assigned to a given resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface SecretOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The labels assigned to this Secret.
      
       Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
       of maximum 128 bytes, and must conform to the following PCRE regular
       expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
      
       Label values must be between 0 and 63 characters long, have a UTF-8
       encoding of maximum 128 bytes, and must conform to the following PCRE
       regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
      
       No more than 64 labels can be assigned to a given resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface SecretOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Secret parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Secret parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Secret parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Secret parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Secret parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Secret parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Secret parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Secret.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Secret.Builder newBuilder()
    • newBuilder

      public static Secret.Builder newBuilder(Secret prototype)
    • toBuilder

      public Secret.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Secret.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Secret getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Secret> parser()
    • getParserForType

      public com.google.protobuf.Parser<Secret> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Secret getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder