Class CreateHookRequest.Builder (0.55.0)

public static final class CreateHookRequest.Builder extends GeneratedMessage.Builder<CreateHookRequest.Builder> implements CreateHookRequestOrBuilder

CreateHookRequest is the request for creating a hook.

Protobuf type google.cloud.securesourcemanager.v1.CreateHookRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateHookRequest build()
Returns
Type Description
CreateHookRequest

buildPartial()

public CreateHookRequest buildPartial()
Returns
Type Description
CreateHookRequest

clear()

public CreateHookRequest.Builder clear()
Returns
Type Description
CreateHookRequest.Builder
Overrides

clearHook()

public CreateHookRequest.Builder clearHook()

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHookRequest.Builder

clearHookId()

public CreateHookRequest.Builder clearHookId()

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

string hook_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.

clearParent()

public CreateHookRequest.Builder clearParent()

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateHookRequest getDefaultInstanceForType()
Returns
Type Description
CreateHookRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHook()

public Hook getHook()

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Hook

The hook.

getHookBuilder()

public Hook.Builder getHookBuilder()

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Hook.Builder

getHookId()

public String getHookId()

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

string hook_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hookId.

getHookIdBytes()

public ByteString getHookIdBytes()

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

string hook_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hookId.

getHookOrBuilder()

public HookOrBuilder getHookOrBuilder()

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HookOrBuilder

getParent()

public String getParent()

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasHook()

public boolean hasHook()

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the hook field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateHookRequest other)

public CreateHookRequest.Builder mergeFrom(CreateHookRequest other)
Parameter
Name Description
other CreateHookRequest
Returns
Type Description
CreateHookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateHookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHookRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateHookRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateHookRequest.Builder
Overrides

mergeHook(Hook value)

public CreateHookRequest.Builder mergeHook(Hook value)

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Hook
Returns
Type Description
CreateHookRequest.Builder

setHook(Hook value)

public CreateHookRequest.Builder setHook(Hook value)

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Hook
Returns
Type Description
CreateHookRequest.Builder

setHook(Hook.Builder builderForValue)

public CreateHookRequest.Builder setHook(Hook.Builder builderForValue)

Required. The resource being created.

.google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Hook.Builder
Returns
Type Description
CreateHookRequest.Builder

setHookId(String value)

public CreateHookRequest.Builder setHookId(String value)

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

string hook_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hookId to set.

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.

setHookIdBytes(ByteString value)

public CreateHookRequest.Builder setHookIdBytes(ByteString value)

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

string hook_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hookId to set.

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.

setParent(String value)

public CreateHookRequest.Builder setParent(String value)

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateHookRequest.Builder setParentBytes(ByteString value)

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateHookRequest.Builder

This builder for chaining.