Class Resources.UserOwnedGrafeasNote

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Resources.UserOwnedGrafeasNoteOrBuilder, Serializable
Enclosing class:
Resources

public static final class Resources.UserOwnedGrafeasNote extends com.google.protobuf.GeneratedMessage implements Resources.UserOwnedGrafeasNoteOrBuilder
 An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
 Attestation.Authority Note created by the user.
 
Protobuf type google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote
See Also:
  • Field Details

    • NOTE_REFERENCE_FIELD_NUMBER

      public static final int NOTE_REFERENCE_FIELD_NUMBER
      See Also:
    • PUBLIC_KEYS_FIELD_NUMBER

      public static final int PUBLIC_KEYS_FIELD_NUMBER
      See Also:
    • DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

      public static final int DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

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

      public String getNoteReference()
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNoteReference in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The noteReference.
    • getNoteReferenceBytes

      public com.google.protobuf.ByteString getNoteReferenceBytes()
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNoteReferenceBytes in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The bytes for noteReference.
    • getPublicKeysList

      public List<Resources.AttestorPublicKey> getPublicKeysList()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysList in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeysOrBuilderList

      public List<? extends Resources.AttestorPublicKeyOrBuilder> getPublicKeysOrBuilderList()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysOrBuilderList in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeysCount

      public int getPublicKeysCount()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysCount in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeys

      public Resources.AttestorPublicKey getPublicKeys(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeys in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeysOrBuilder

      public Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysOrBuilder in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getDelegationServiceAccountEmail

      public String getDelegationServiceAccountEmail()
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDelegationServiceAccountEmail in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The delegationServiceAccountEmail.
    • getDelegationServiceAccountEmailBytes

      public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes()
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDelegationServiceAccountEmailBytes in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The bytes for delegationServiceAccountEmail.
    • 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 Resources.UserOwnedGrafeasNote parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Resources.UserOwnedGrafeasNote parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Resources.UserOwnedGrafeasNote parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Resources.UserOwnedGrafeasNote.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Resources.UserOwnedGrafeasNote getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Resources.UserOwnedGrafeasNote> 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 Resources.UserOwnedGrafeasNote getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder