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 Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.getEvents(int index) Optional.intOptional.Optional.intgetEventsValue(int index) Optional.Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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
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.
-