Class BuildProvenance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grafeas.v1beta1.provenance.BuildProvenance
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BuildProvenanceOrBuilder, Serializable

@Generated public final class BuildProvenance extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • PROJECT_ID_FIELD_NUMBER

      public static final int PROJECT_ID_FIELD_NUMBER
      See Also:
    • COMMANDS_FIELD_NUMBER

      public static final int COMMANDS_FIELD_NUMBER
      See Also:
    • BUILT_ARTIFACTS_FIELD_NUMBER

      public static final int BUILT_ARTIFACTS_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • CREATOR_FIELD_NUMBER

      public static final int CREATOR_FIELD_NUMBER
      See Also:
    • LOGS_URI_FIELD_NUMBER

      public static final int LOGS_URI_FIELD_NUMBER
      See Also:
    • SOURCE_PROVENANCE_FIELD_NUMBER

      public static final int SOURCE_PROVENANCE_FIELD_NUMBER
      See Also:
    • TRIGGER_ID_FIELD_NUMBER

      public static final int TRIGGER_ID_FIELD_NUMBER
      See Also:
    • BUILD_OPTIONS_FIELD_NUMBER

      public static final int BUILD_OPTIONS_FIELD_NUMBER
      See Also:
    • BUILDER_VERSION_FIELD_NUMBER

      public static final int BUILDER_VERSION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public String getId()
       Required. Unique identifier of the build.
       
      string id = 1;
      Specified by:
      getId in interface BuildProvenanceOrBuilder
      Returns:
      The id.
    • 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.
    • getProjectId

      public String getProjectId()
       ID of the project.
       
      string project_id = 2;
      Specified by:
      getProjectId in interface BuildProvenanceOrBuilder
      Returns:
      The projectId.
    • 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.
    • getCommandsList

      public List<Command> getCommandsList()
       Commands requested by the build.
       
      repeated .grafeas.v1beta1.provenance.Command commands = 3;
      Specified by:
      getCommandsList in interface BuildProvenanceOrBuilder
    • getCommandsOrBuilderList

      public List<? extends CommandOrBuilder> getCommandsOrBuilderList()
       Commands requested by the build.
       
      repeated .grafeas.v1beta1.provenance.Command commands = 3;
      Specified by:
      getCommandsOrBuilderList in interface BuildProvenanceOrBuilder
    • 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
    • getCommandsOrBuilder

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

      public List<Artifact> getBuiltArtifactsList()
       Output of the build.
       
      repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;
      Specified by:
      getBuiltArtifactsList in interface BuildProvenanceOrBuilder
    • getBuiltArtifactsOrBuilderList

      public List<? extends ArtifactOrBuilder> getBuiltArtifactsOrBuilderList()
       Output of the build.
       
      repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;
      Specified by:
      getBuiltArtifactsOrBuilderList in interface BuildProvenanceOrBuilder
    • getBuiltArtifactsCount

      public int getBuiltArtifactsCount()
       Output of the build.
       
      repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;
      Specified by:
      getBuiltArtifactsCount in interface BuildProvenanceOrBuilder
    • getBuiltArtifacts

      public Artifact getBuiltArtifacts(int index)
       Output of the build.
       
      repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;
      Specified by:
      getBuiltArtifacts in interface BuildProvenanceOrBuilder
    • getBuiltArtifactsOrBuilder

      public ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index)
       Output of the build.
       
      repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;
      Specified by:
      getBuiltArtifactsOrBuilder 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.
    • getSourceProvenanceOrBuilder

      public SourceOrBuilder getSourceProvenanceOrBuilder()
       Details of the Source input to the build.
       
      .grafeas.v1beta1.provenance.Source source_provenance = 10;
      Specified by:
      getSourceProvenanceOrBuilder in interface BuildProvenanceOrBuilder
    • 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
    • getBuildOptions

      @Deprecated public Map<String,String> getBuildOptions()
      Deprecated.
      Specified by:
      getBuildOptions 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.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 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static BuildProvenance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static BuildProvenance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static BuildProvenance.Builder newBuilder()
    • newBuilder

      public static BuildProvenance.Builder newBuilder(BuildProvenance prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BuildProvenance getDefaultInstance()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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