Class Hook.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
com.google.cloud.securesourcemanager.v1.Hook.Builder
- All Implemented Interfaces:
HookOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Hook
public static final class Hook.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
implements HookOrBuilder
Metadata of a Secure Source Manager Hook.Protobuf type
google.cloud.securesourcemanager.v1.Hook-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends Hook.HookEventType> values) Optional.addAllEventsValue(Iterable<Integer> values) Optional.addEvents(Hook.HookEventType value) Optional.addEventsValue(int value) Optional.build()clear()Output only.Optional.Optional.Identifier.Optional.Optional.Required.clearUid()Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.getEvents(int index) Optional.intOptional.Optional.intgetEventsValue(int index) Optional.Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePushOption(Hook.PushOption value) Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisabled(boolean value) Optional.setEvents(int index, Hook.HookEventType value) Optional.setEventsValue(int index, int value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPushOption(Hook.PushOption value) Optional.setPushOption(Hook.PushOption.Builder builderForValue) Optional.setSensitiveQueryString(String value) Optional.setSensitiveQueryStringBytes(com.google.protobuf.ByteString value) Optional.setTargetUri(String value) Required.setTargetUriBytes(com.google.protobuf.ByteString value) Required.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Hook.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Hook.Builder>
-
mergeFrom
public Hook.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Hook.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceHookOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceHookOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTargetUri
Required. The target URI to which the payloads will be delivered.
string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetUriin interfaceHookOrBuilder- Returns:
- The targetUri.
-
getTargetUriBytes
public 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];- Specified by:
getTargetUriBytesin interfaceHookOrBuilder- Returns:
- The bytes for targetUri.
-
setTargetUri
Required. The target URI to which the payloads will be delivered.
string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The targetUri to set.- Returns:
- This builder for chaining.
-
clearTargetUri
Required. The target URI to which the payloads will be delivered.
string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTargetUriBytes
Required. The target URI to which the payloads will be delivered.
string target_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for targetUri to set.- Returns:
- This builder for chaining.
-
getDisabled
public 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];- Specified by:
getDisabledin interfaceHookOrBuilder- Returns:
- The disabled.
-
setDisabled
Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEventsList
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsListin interfaceHookOrBuilder- Returns:
- A list containing the events.
-
getEventsCount
public int getEventsCount()Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsCountin interfaceHookOrBuilder- 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];- Specified by:
getEventsin interfaceHookOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The events at the given index.
-
setEvents
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 to set the value at.value- The events to set.- Returns:
- This builder for chaining.
-
addEvents
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The events to add.- Returns:
- This builder for chaining.
-
addAllEvents
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The events to add.- Returns:
- This builder for chaining.
-
clearEvents
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEventsValueList
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsValueListin interfaceHookOrBuilder- Returns:
- A list containing the enum numeric values on the wire for events.
-
getEventsValue
public 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];- Specified by:
getEventsValuein interfaceHookOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of events at the given index.
-
setEventsValue
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 to set the value at.value- The enum numeric value on the wire for events to set.- Returns:
- This builder for chaining.
-
addEventsValue
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for events to add.- Returns:
- This builder for chaining.
-
addAllEventsValue
Optional. The events that trigger hook on.
repeated .google.cloud.securesourcemanager.v1.Hook.HookEventType events = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for events to add.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceHookOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceHookOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceHookOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceHookOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceHookOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceHookOrBuilder
-
getUid
Output only. Unique identifier of the hook.
string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidin interfaceHookOrBuilder- Returns:
- The uid.
-
getUidBytes
public 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) = { ... }- Specified by:
getUidBytesin interfaceHookOrBuilder- Returns:
- The bytes for uid.
-
setUid
Output only. Unique identifier of the hook.
string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
Output only. Unique identifier of the hook.
string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setUidBytes
Output only. Unique identifier of the hook.
string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasPushOption
public boolean hasPushOption()Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPushOptionin interfaceHookOrBuilder- Returns:
- Whether the pushOption field is set.
-
getPushOption
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPushOptionin interfaceHookOrBuilder- Returns:
- The pushOption.
-
setPushOption
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setPushOption
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL]; -
mergePushOption
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL]; -
clearPushOption
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getPushOptionBuilder
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getPushOptionOrBuilder
Optional. The trigger option for push events.
.google.cloud.securesourcemanager.v1.Hook.PushOption push_option = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPushOptionOrBuilderin interfaceHookOrBuilder
-
getSensitiveQueryString
Optional. The sensitive query string to be appended to the target URI.
string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSensitiveQueryStringin interfaceHookOrBuilder- Returns:
- The sensitiveQueryString.
-
getSensitiveQueryStringBytes
public 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];- Specified by:
getSensitiveQueryStringBytesin interfaceHookOrBuilder- Returns:
- The bytes for sensitiveQueryString.
-
setSensitiveQueryString
Optional. The sensitive query string to be appended to the target URI.
string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sensitiveQueryString to set.- Returns:
- This builder for chaining.
-
clearSensitiveQueryString
Optional. The sensitive query string to be appended to the target URI.
string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSensitiveQueryStringBytes
Optional. The sensitive query string to be appended to the target URI.
string sensitive_query_string = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for sensitiveQueryString to set.- Returns:
- This builder for chaining.
-