Interface HookOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Hook, Hook.Builder

@Generated public interface HookOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Identifier. A unique identifier for a Hook. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Identifier. A unique identifier for a Hook. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The bytes for name.
    • getTargetUri

      String getTargetUri()
       Required. The target URI to which the payloads will be delivered.
       
      string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The targetUri.
    • getTargetUriBytes

      com.google.protobuf.ByteString getTargetUriBytes()
       Required. The target URI to which the payloads will be delivered.
       
      string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for targetUri.
    • getDisabled

      boolean getDisabled()
       Optional. Determines if the hook disabled or not.
       Set to true to stop sending traffic.
       
      bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The disabled.
    • getEventsList

      List<Hook.HookEventType> getEventsList()
       Optional. The events that trigger hook on.
       
      repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the events.
    • getEventsCount

      int getEventsCount()
       Optional. The events that trigger hook on.
       
      repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of events.
    • getEvents

      Hook.HookEventType getEvents(int index)
       Optional. The events that trigger hook on.
       
      repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The events at the given index.
    • getEventsValueList

      List<Integer> getEventsValueList()
       Optional. The events that trigger hook on.
       
      repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the enum numeric values on the wire for events.
    • getEventsValue

      int getEventsValue(int index)
       Optional. The events that trigger hook on.
       
      repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of events at the given index.
    • hasCreateTime

      boolean hasCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      com.google.protobuf.Timestamp getCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUpdateTime

      boolean hasUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUid

      String getUid()
       Output only. Unique identifier of the hook.
       
      string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      The uid.
    • getUidBytes

      com.google.protobuf.ByteString getUidBytes()
       Output only. Unique identifier of the hook.
       
      string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      The bytes for uid.
    • hasPushOption

      boolean hasPushOption()
       Optional. The trigger option for push events.
       
      .google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the pushOption field is set.
    • getPushOption

      Hook.PushOption getPushOption()
       Optional. The trigger option for push events.
       
      .google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The pushOption.
    • getPushOptionOrBuilder

      Hook.PushOptionOrBuilder getPushOptionOrBuilder()
       Optional. The trigger option for push events.
       
      .google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getSensitiveQueryString

      String getSensitiveQueryString()
       Optional. The sensitive query string to be appended to the target URI.
       
      string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The sensitiveQueryString.
    • getSensitiveQueryStringBytes

      com.google.protobuf.ByteString getSensitiveQueryStringBytes()
       Optional. The sensitive query string to be appended to the target URI.
       
      string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for sensitiveQueryString.