Class BuildProvenance

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BuildProvenanceOrBuilder, Serializable

    public final class BuildProvenance
    extends com.google.protobuf.GeneratedMessageV3
    implements BuildProvenanceOrBuilder
     Provenance of a build. Contains all information needed to verify the full
     details about the build from source to completion.
     
    Protobuf type grafeas.v1beta1.provenance.BuildProvenance
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Required. Unique identifier of the build.
         
        string id = 1;
        Specified by:
        getIdBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for id.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         ID of the project.
         
        string project_id = 2;
        Specified by:
        getProjectIdBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for projectId.
      • getCommandsCount

        public int getCommandsCount()
         Commands requested by the build.
         
        repeated .grafeas.v1beta1.provenance.Command commands = 3;
        Specified by:
        getCommandsCount in interface BuildProvenanceOrBuilder
      • getCommands

        public Command getCommands​(int index)
         Commands requested by the build.
         
        repeated .grafeas.v1beta1.provenance.Command commands = 3;
        Specified by:
        getCommands in interface BuildProvenanceOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Time at which the build was created.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        hasCreateTime in interface BuildProvenanceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Time at which the build was created.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTime in interface BuildProvenanceOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Time at which the build was created.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTimeOrBuilder in interface BuildProvenanceOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         Time at which execution of the build was started.
         
        .google.protobuf.Timestamp start_time = 6;
        Specified by:
        hasStartTime in interface BuildProvenanceOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Time at which execution of the build was started.
         
        .google.protobuf.Timestamp start_time = 6;
        Specified by:
        getStartTime in interface BuildProvenanceOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Time at which execution of the build was started.
         
        .google.protobuf.Timestamp start_time = 6;
        Specified by:
        getStartTimeOrBuilder in interface BuildProvenanceOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Time at which execution of the build was finished.
         
        .google.protobuf.Timestamp end_time = 7;
        Specified by:
        hasEndTime in interface BuildProvenanceOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Time at which execution of the build was finished.
         
        .google.protobuf.Timestamp end_time = 7;
        Specified by:
        getEndTime in interface BuildProvenanceOrBuilder
        Returns:
        The endTime.
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Time at which execution of the build was finished.
         
        .google.protobuf.Timestamp end_time = 7;
        Specified by:
        getEndTimeOrBuilder in interface BuildProvenanceOrBuilder
      • getCreator

        public String getCreator()
         E-mail address of the user who initiated this build. Note that this was the
         user's e-mail address at the time the build was initiated; this address may
         not represent the same end-user for all time.
         
        string creator = 8;
        Specified by:
        getCreator in interface BuildProvenanceOrBuilder
        Returns:
        The creator.
      • getCreatorBytes

        public com.google.protobuf.ByteString getCreatorBytes()
         E-mail address of the user who initiated this build. Note that this was the
         user's e-mail address at the time the build was initiated; this address may
         not represent the same end-user for all time.
         
        string creator = 8;
        Specified by:
        getCreatorBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for creator.
      • getLogsUri

        public String getLogsUri()
         URI where any logs for this provenance were written.
         
        string logs_uri = 9;
        Specified by:
        getLogsUri in interface BuildProvenanceOrBuilder
        Returns:
        The logsUri.
      • getLogsUriBytes

        public com.google.protobuf.ByteString getLogsUriBytes()
         URI where any logs for this provenance were written.
         
        string logs_uri = 9;
        Specified by:
        getLogsUriBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for logsUri.
      • hasSourceProvenance

        public boolean hasSourceProvenance()
         Details of the Source input to the build.
         
        .grafeas.v1beta1.provenance.Source source_provenance = 10;
        Specified by:
        hasSourceProvenance in interface BuildProvenanceOrBuilder
        Returns:
        Whether the sourceProvenance field is set.
      • getSourceProvenance

        public Source getSourceProvenance()
         Details of the Source input to the build.
         
        .grafeas.v1beta1.provenance.Source source_provenance = 10;
        Specified by:
        getSourceProvenance in interface BuildProvenanceOrBuilder
        Returns:
        The sourceProvenance.
      • getTriggerId

        public String getTriggerId()
         Trigger identifier if the build was triggered automatically; empty if not.
         
        string trigger_id = 11;
        Specified by:
        getTriggerId in interface BuildProvenanceOrBuilder
        Returns:
        The triggerId.
      • getTriggerIdBytes

        public com.google.protobuf.ByteString getTriggerIdBytes()
         Trigger identifier if the build was triggered automatically; empty if not.
         
        string trigger_id = 11;
        Specified by:
        getTriggerIdBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for triggerId.
      • getBuildOptionsCount

        public int getBuildOptionsCount()
        Description copied from interface: BuildProvenanceOrBuilder
         Special options applied to this build. This is a catch-all field where
         build providers can enter any desired additional details.
         
        map<string, string> build_options = 12;
        Specified by:
        getBuildOptionsCount in interface BuildProvenanceOrBuilder
      • containsBuildOptions

        public boolean containsBuildOptions​(String key)
         Special options applied to this build. This is a catch-all field where
         build providers can enter any desired additional details.
         
        map<string, string> build_options = 12;
        Specified by:
        containsBuildOptions in interface BuildProvenanceOrBuilder
      • getBuildOptionsMap

        public Map<String,​String> getBuildOptionsMap()
         Special options applied to this build. This is a catch-all field where
         build providers can enter any desired additional details.
         
        map<string, string> build_options = 12;
        Specified by:
        getBuildOptionsMap in interface BuildProvenanceOrBuilder
      • getBuildOptionsOrDefault

        public String getBuildOptionsOrDefault​(String key,
                                               String defaultValue)
         Special options applied to this build. This is a catch-all field where
         build providers can enter any desired additional details.
         
        map<string, string> build_options = 12;
        Specified by:
        getBuildOptionsOrDefault in interface BuildProvenanceOrBuilder
      • getBuildOptionsOrThrow

        public String getBuildOptionsOrThrow​(String key)
         Special options applied to this build. This is a catch-all field where
         build providers can enter any desired additional details.
         
        map<string, string> build_options = 12;
        Specified by:
        getBuildOptionsOrThrow in interface BuildProvenanceOrBuilder
      • getBuilderVersion

        public String getBuilderVersion()
         Version string of the builder at the time this build was executed.
         
        string builder_version = 13;
        Specified by:
        getBuilderVersion in interface BuildProvenanceOrBuilder
        Returns:
        The builderVersion.
      • getBuilderVersionBytes

        public com.google.protobuf.ByteString getBuilderVersionBytes()
         Version string of the builder at the time this build was executed.
         
        string builder_version = 13;
        Specified by:
        getBuilderVersionBytes in interface BuildProvenanceOrBuilder
        Returns:
        The bytes for builderVersion.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 BuildProvenance parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        public BuildProvenance.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public BuildProvenance.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected BuildProvenance.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

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

        public com.google.protobuf.Parser<BuildProvenance> 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.GeneratedMessageV3
      • getDefaultInstanceForType

        public BuildProvenance getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder