public static final class Protos.Secret.Reference.Builder extends <any> 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 | Method and Description |
---|---|
Protos.Secret.Reference.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Secret.Reference |
build() |
Protos.Secret.Reference |
buildPartial() |
Protos.Secret.Reference.Builder |
clear() |
Protos.Secret.Reference.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Secret.Reference.Builder |
clearKey()
optional string key = 2; |
Protos.Secret.Reference.Builder |
clearName()
required string name = 1; |
Protos.Secret.Reference.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Secret.Reference.Builder |
clone() |
Protos.Secret.Reference |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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; |
boolean |
hasKey()
optional string key = 2; |
boolean |
hasName()
required string name = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Secret.Reference.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Secret.Reference.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Secret.Reference.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Secret.Reference.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Secret.Reference.Builder |
setKey(java.lang.String value)
optional string key = 2; |
Protos.Secret.Reference.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
optional string key = 2; |
Protos.Secret.Reference.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Secret.Reference.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Secret.Reference.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Secret.Reference.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Secret.Reference.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Secret.Reference getDefaultInstanceForType()
public Protos.Secret.Reference build()
public Protos.Secret.Reference buildPartial()
public Protos.Secret.Reference.Builder clone()
public Protos.Secret.Reference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Secret.Reference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Secret.Reference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Secret.Reference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Secret.Reference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Secret.Reference.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Secret.Reference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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 Protos.Secret.Reference.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Secret.Reference.Builder clearName()
required string name = 1;
public Protos.Secret.Reference.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
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 Protos.Secret.Reference.Builder setKey(java.lang.String value)
optional string key = 2;
public Protos.Secret.Reference.Builder clearKey()
optional string key = 2;
public Protos.Secret.Reference.Builder setKeyBytes(com.google.protobuf.ByteString value)
optional string key = 2;
public final Protos.Secret.Reference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Secret.Reference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)