public static final class Protos.Credential.Builder extends <any> implements Protos.CredentialOrBuilder
Credential used in various places for authentication and authorization. NOTE: A 'principal' is different from 'FrameworkInfo.user'. The former is used for authentication and authorization while the latter is used to determine the default user under which the framework's executors/tasks are run.Protobuf type
mesos.Credential
Modifier and Type | Method and Description |
---|---|
Protos.Credential.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Credential |
build() |
Protos.Credential |
buildPartial() |
Protos.Credential.Builder |
clear() |
Protos.Credential.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Credential.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Credential.Builder |
clearPrincipal()
required string principal = 1; |
Protos.Credential.Builder |
clearSecret()
optional string secret = 2; |
Protos.Credential.Builder |
clone() |
Protos.Credential |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getPrincipal()
required string principal = 1; |
com.google.protobuf.ByteString |
getPrincipalBytes()
required string principal = 1; |
java.lang.String |
getSecret()
optional string secret = 2; |
com.google.protobuf.ByteString |
getSecretBytes()
optional string secret = 2; |
boolean |
hasPrincipal()
required string principal = 1; |
boolean |
hasSecret()
optional string secret = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Credential.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Credential.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Credential.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Credential.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Credential.Builder |
setPrincipal(java.lang.String value)
required string principal = 1; |
Protos.Credential.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
required string principal = 1; |
Protos.Credential.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Credential.Builder |
setSecret(java.lang.String value)
optional string secret = 2; |
Protos.Credential.Builder |
setSecretBytes(com.google.protobuf.ByteString value)
optional string secret = 2; |
Protos.Credential.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.Credential.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Credential getDefaultInstanceForType()
public Protos.Credential build()
public Protos.Credential buildPartial()
public Protos.Credential.Builder clone()
public Protos.Credential.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Credential.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Credential.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Credential.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Credential.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Credential.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Credential.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasPrincipal()
required string principal = 1;
hasPrincipal
in interface Protos.CredentialOrBuilder
public java.lang.String getPrincipal()
required string principal = 1;
getPrincipal
in interface Protos.CredentialOrBuilder
public com.google.protobuf.ByteString getPrincipalBytes()
required string principal = 1;
getPrincipalBytes
in interface Protos.CredentialOrBuilder
public Protos.Credential.Builder setPrincipal(java.lang.String value)
required string principal = 1;
public Protos.Credential.Builder clearPrincipal()
required string principal = 1;
public Protos.Credential.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
required string principal = 1;
public boolean hasSecret()
optional string secret = 2;
hasSecret
in interface Protos.CredentialOrBuilder
public java.lang.String getSecret()
optional string secret = 2;
getSecret
in interface Protos.CredentialOrBuilder
public com.google.protobuf.ByteString getSecretBytes()
optional string secret = 2;
getSecretBytes
in interface Protos.CredentialOrBuilder
public Protos.Credential.Builder setSecret(java.lang.String value)
optional string secret = 2;
public Protos.Credential.Builder clearSecret()
optional string secret = 2;
public Protos.Credential.Builder setSecretBytes(com.google.protobuf.ByteString value)
optional string secret = 2;
public final Protos.Credential.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Credential.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)