Class Authority (2.22.0)

public final class Authority extends GeneratedMessageV3 implements AuthorityOrBuilder

Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one Authority for "QA" and one for "build". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project.

Protobuf type grafeas.v1beta1.attestation.Authority

Implements

AuthorityOrBuilder

Static Fields

HINT_FIELD_NUMBER

public static final int HINT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Authority getDefaultInstance()
Returns
TypeDescription
Authority

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Authority.Builder newBuilder()
Returns
TypeDescription
Authority.Builder

newBuilder(Authority prototype)

public static Authority.Builder newBuilder(Authority prototype)
Parameter
NameDescription
prototypeAuthority
Returns
TypeDescription
Authority.Builder

parseDelimitedFrom(InputStream input)

public static Authority parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Authority parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Authority parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Authority parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Authority parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Authority parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Authority parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Authority parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Authority parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Authority parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Authority parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Authority parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authority
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Authority> parser()
Returns
TypeDescription
Parser<Authority>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Authority getDefaultInstanceForType()
Returns
TypeDescription
Authority

getHint()

public Authority.Hint getHint()

Hint hints at the purpose of the attestation authority.

.grafeas.v1beta1.attestation.Authority.Hint hint = 1;

Returns
TypeDescription
Authority.Hint

The hint.

getHintOrBuilder()

public Authority.HintOrBuilder getHintOrBuilder()

Hint hints at the purpose of the attestation authority.

.grafeas.v1beta1.attestation.Authority.Hint hint = 1;

Returns
TypeDescription
Authority.HintOrBuilder

getParserForType()

public Parser<Authority> getParserForType()
Returns
TypeDescription
Parser<Authority>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasHint()

public boolean hasHint()

Hint hints at the purpose of the attestation authority.

.grafeas.v1beta1.attestation.Authority.Hint hint = 1;

Returns
TypeDescription
boolean

Whether the hint field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Authority.Builder newBuilderForType()
Returns
TypeDescription
Authority.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Authority.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Authority.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Authority.Builder toBuilder()
Returns
TypeDescription
Authority.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException