public static final class Protos.Secret.Reference extends com.google.protobuf.GeneratedMessageV3 implements Protos.Secret.ReferenceOrBuilder
Can be used by modules to refer to a secret stored in a secure back-end. The `key` field is provided to permit reference to a single value within a secret containing arbitrary key-value pairs. For example, given a back-end secret store with a secret named "my-secret" containing the following key-value pairs: { "username": "my-user", "password": "my-password } the username could be referred to in a `Secret` by specifying "my-secret" for the `name` and "username" for the `key`.Protobuf type
mesos.Secret.Reference
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Secret.Reference.Builder
Can be used by modules to refer to a secret stored in a secure back-end.
|
Modifier and Type | Field and Description |
---|---|
static int |
KEY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Secret.Reference |
getDefaultInstance() |
Protos.Secret.Reference |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getKey()
optional string key = 2; |
com.google.protobuf.ByteString |
getKeyBytes()
optional string key = 2; |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
<any> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasKey()
optional string key = 2; |
boolean |
hasName()
required string name = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Secret.Reference.Builder |
newBuilder() |
static Protos.Secret.Reference.Builder |
newBuilder(Protos.Secret.Reference prototype) |
Protos.Secret.Reference.Builder |
newBuilderForType() |
protected Protos.Secret.Reference.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Secret.Reference |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Secret.Reference |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Secret.Reference |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Secret.Reference |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Secret.Reference |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Secret.Reference |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Secret.Reference |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Secret.Reference |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Secret.Reference |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Secret.Reference |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Secret.Reference.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int NAME_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasName()
required string name = 1;
hasName
in interface Protos.Secret.ReferenceOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.Secret.ReferenceOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.Secret.ReferenceOrBuilder
public boolean hasKey()
optional string key = 2;
hasKey
in interface Protos.Secret.ReferenceOrBuilder
public java.lang.String getKey()
optional string key = 2;
getKey
in interface Protos.Secret.ReferenceOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
optional string key = 2;
getKeyBytes
in interface Protos.Secret.ReferenceOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Secret.Reference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Secret.Reference parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Secret.Reference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Secret.Reference parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Secret.Reference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Secret.Reference parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Secret.Reference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Secret.Reference parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Secret.Reference parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Secret.Reference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Secret.Reference.Builder newBuilderForType()
public static Protos.Secret.Reference.Builder newBuilder()
public static Protos.Secret.Reference.Builder newBuilder(Protos.Secret.Reference prototype)
public Protos.Secret.Reference.Builder toBuilder()
protected Protos.Secret.Reference.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Secret.Reference getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Secret.Reference getDefaultInstanceForType()