Class RunBuildTriggerRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.RunBuildTriggerRequest
All Implemented Interfaces:
RunBuildTriggerRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RunBuildTriggerRequest extends com.google.protobuf.GeneratedMessage implements RunBuildTriggerRequestOrBuilder
 Specifies a build trigger to run and the source to use.
 
Protobuf type google.devtools.cloudbuild.v1.RunBuildTriggerRequest
See Also:
  • Field Details

  • 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
    • getName

      public String getName()
       The name of the `Trigger` to run.
       Format: `projects/{project}/locations/{location}/triggers/{trigger}`
       
      string name = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the `Trigger` to run.
       Format: `projects/{project}/locations/{location}/triggers/{trigger}`
       
      string name = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The bytes for name.
    • getProjectId

      public String getProjectId()
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The bytes for projectId.
    • getTriggerId

      public String getTriggerId()
       Required. ID of the trigger.
       
      string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTriggerId in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The triggerId.
    • getTriggerIdBytes

      public com.google.protobuf.ByteString getTriggerIdBytes()
       Required. ID of the trigger.
       
      string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTriggerIdBytes in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The bytes for triggerId.
    • hasSource

      public boolean hasSource()
       Source to build against this trigger.
       Branch and tag names cannot consist of regular expressions.
       
      .google.devtools.cloudbuild.v1.RepoSource source = 3;
      Specified by:
      hasSource in interface RunBuildTriggerRequestOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public RepoSource getSource()
       Source to build against this trigger.
       Branch and tag names cannot consist of regular expressions.
       
      .google.devtools.cloudbuild.v1.RepoSource source = 3;
      Specified by:
      getSource in interface RunBuildTriggerRequestOrBuilder
      Returns:
      The source.
    • getSourceOrBuilder

      public RepoSourceOrBuilder getSourceOrBuilder()
       Source to build against this trigger.
       Branch and tag names cannot consist of regular expressions.
       
      .google.devtools.cloudbuild.v1.RepoSource source = 3;
      Specified by:
      getSourceOrBuilder in interface RunBuildTriggerRequestOrBuilder
    • 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 RunBuildTriggerRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static RunBuildTriggerRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

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

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

      public static RunBuildTriggerRequest.Builder newBuilder()
    • newBuilder

      public static RunBuildTriggerRequest.Builder newBuilder(RunBuildTriggerRequest prototype)
    • toBuilder

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

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

      public static RunBuildTriggerRequest getDefaultInstance()
    • parser

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

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