Class CreateHookRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateHookRequest.Builder>
com.google.cloud.securesourcemanager.v1.CreateHookRequest.Builder
All Implemented Interfaces:
CreateHookRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateHookRequest

public static final class CreateHookRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateHookRequest.Builder> implements CreateHookRequestOrBuilder
 CreateHookRequest is the request for creating a hook.
 
Protobuf type google.cloud.securesourcemanager.v1.CreateHookRequest
  • 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.Builder<CreateHookRequest.Builder>
    • clear

      public CreateHookRequest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateHookRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateHookRequest.Builder>
    • getDefaultInstanceForType

      public CreateHookRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateHookRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateHookRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateHookRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateHookRequest.Builder>
    • mergeFrom

      public CreateHookRequest.Builder mergeFrom(CreateHookRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateHookRequest.Builder>
    • mergeFrom

      public CreateHookRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateHookRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateHookRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getParentBytes in interface CreateHookRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      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:
      This builder for chaining.
    • setParentBytes

      public CreateHookRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasHook

      public boolean hasHook()
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHook in interface CreateHookRequestOrBuilder
      Returns:
      Whether the hook field is set.
    • getHook

      public Hook getHook()
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHook in interface CreateHookRequestOrBuilder
      Returns:
      The hook.
    • setHook

      public CreateHookRequest.Builder setHook(Hook value)
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
    • setHook

      public CreateHookRequest.Builder setHook(Hook.Builder builderForValue)
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeHook

      public CreateHookRequest.Builder mergeHook(Hook value)
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearHook

      public CreateHookRequest.Builder clearHook()
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
    • getHookBuilder

      public Hook.Builder getHookBuilder()
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
    • getHookOrBuilder

      public HookOrBuilder getHookOrBuilder()
       Required. The resource being created.
       
      .google.cloud.securesourcemanager.v1.Hook hook = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHookOrBuilder in interface CreateHookRequestOrBuilder
    • 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];
      Specified by:
      getHookId in interface CreateHookRequestOrBuilder
      Returns:
      The hookId.
    • getHookIdBytes

      public com.google.protobuf.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];
      Specified by:
      getHookIdBytes in interface CreateHookRequestOrBuilder
      Returns:
      The bytes for hookId.
    • setHookId

      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];
      Parameters:
      value - The hookId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setHookIdBytes

      public CreateHookRequest.Builder setHookIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for hookId to set.
      Returns:
      This builder for chaining.