Class ReceiveTriggerWebhookRequest

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

@Generated public final class ReceiveTriggerWebhookRequest extends com.google.protobuf.GeneratedMessage implements ReceiveTriggerWebhookRequestOrBuilder
 ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by
 the ReceiveTriggerWebhook method.
 
Protobuf type google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest
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 `ReceiveTriggerWebhook` to retrieve.
       Format: `projects/{project}/locations/{location}/triggers/{trigger}`
       
      string name = 5;
      Specified by:
      getName in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the `ReceiveTriggerWebhook` to retrieve.
       Format: `projects/{project}/locations/{location}/triggers/{trigger}`
       
      string name = 5;
      Specified by:
      getNameBytes in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The bytes for name.
    • hasBody

      public boolean hasBody()
       HTTP request body.
       
      .google.api.HttpBody body = 1;
      Specified by:
      hasBody in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      public HttpBody getBody()
       HTTP request body.
       
      .google.api.HttpBody body = 1;
      Specified by:
      getBody in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The body.
    • getBodyOrBuilder

      public HttpBodyOrBuilder getBodyOrBuilder()
       HTTP request body.
       
      .google.api.HttpBody body = 1;
      Specified by:
      getBodyOrBuilder in interface ReceiveTriggerWebhookRequestOrBuilder
    • getProjectId

      public String getProjectId()
       Project in which the specified trigger lives
       
      string project_id = 2;
      Specified by:
      getProjectId in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Project in which the specified trigger lives
       
      string project_id = 2;
      Specified by:
      getProjectIdBytes in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The bytes for projectId.
    • getTrigger

      public String getTrigger()
       Name of the trigger to run the payload against
       
      string trigger = 3;
      Specified by:
      getTrigger in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The trigger.
    • getTriggerBytes

      public com.google.protobuf.ByteString getTriggerBytes()
       Name of the trigger to run the payload against
       
      string trigger = 3;
      Specified by:
      getTriggerBytes in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The bytes for trigger.
    • getSecret

      public String getSecret()
       Secret token used for authorization if an OAuth token isn't provided.
       
      string secret = 4;
      Specified by:
      getSecret in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The secret.
    • getSecretBytes

      public com.google.protobuf.ByteString getSecretBytes()
       Secret token used for authorization if an OAuth token isn't provided.
       
      string secret = 4;
      Specified by:
      getSecretBytes in interface ReceiveTriggerWebhookRequestOrBuilder
      Returns:
      The bytes for secret.
    • 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 ReceiveTriggerWebhookRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ReceiveTriggerWebhookRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static ReceiveTriggerWebhookRequest getDefaultInstance()
    • parser

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

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