Class CreateRuntimeProjectAttachmentRequest.Builder

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

public static final class CreateRuntimeProjectAttachmentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateRuntimeProjectAttachmentRequest.Builder> implements CreateRuntimeProjectAttachmentRequestOrBuilder
 The
 [CreateRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest
  • 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<CreateRuntimeProjectAttachmentRequest.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<CreateRuntimeProjectAttachmentRequest.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<CreateRuntimeProjectAttachmentRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateRuntimeProjectAttachmentRequest.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<CreateRuntimeProjectAttachmentRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreateRuntimeProjectAttachmentRequest.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<CreateRuntimeProjectAttachmentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource for the Runtime Project Attachment.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource for the Runtime Project Attachment.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource for the Runtime Project Attachment.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent resource for the Runtime Project Attachment.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateRuntimeProjectAttachmentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for the Runtime Project Attachment.
       Format: `projects/{project}/locations/{location}`
       
      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.
    • getRuntimeProjectAttachmentId

      public String getRuntimeProjectAttachmentId()
       Required. The ID to use for the Runtime Project Attachment, which will
       become the final component of the Runtime Project Attachment's name. The ID
       must be the same as the project ID of the Google cloud project specified in
       the runtime_project_attachment.runtime_project field.
       
      string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRuntimeProjectAttachmentId in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      The runtimeProjectAttachmentId.
    • getRuntimeProjectAttachmentIdBytes

      public com.google.protobuf.ByteString getRuntimeProjectAttachmentIdBytes()
       Required. The ID to use for the Runtime Project Attachment, which will
       become the final component of the Runtime Project Attachment's name. The ID
       must be the same as the project ID of the Google cloud project specified in
       the runtime_project_attachment.runtime_project field.
       
      string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRuntimeProjectAttachmentIdBytes in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      The bytes for runtimeProjectAttachmentId.
    • setRuntimeProjectAttachmentId

      public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachmentId(String value)
       Required. The ID to use for the Runtime Project Attachment, which will
       become the final component of the Runtime Project Attachment's name. The ID
       must be the same as the project ID of the Google cloud project specified in
       the runtime_project_attachment.runtime_project field.
       
      string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The runtimeProjectAttachmentId to set.
      Returns:
      This builder for chaining.
    • clearRuntimeProjectAttachmentId

      public CreateRuntimeProjectAttachmentRequest.Builder clearRuntimeProjectAttachmentId()
       Required. The ID to use for the Runtime Project Attachment, which will
       become the final component of the Runtime Project Attachment's name. The ID
       must be the same as the project ID of the Google cloud project specified in
       the runtime_project_attachment.runtime_project field.
       
      string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRuntimeProjectAttachmentIdBytes

      public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachmentIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the Runtime Project Attachment, which will
       become the final component of the Runtime Project Attachment's name. The ID
       must be the same as the project ID of the Google cloud project specified in
       the runtime_project_attachment.runtime_project field.
       
      string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for runtimeProjectAttachmentId to set.
      Returns:
      This builder for chaining.
    • hasRuntimeProjectAttachment

      public boolean hasRuntimeProjectAttachment()
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRuntimeProjectAttachment in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      Whether the runtimeProjectAttachment field is set.
    • getRuntimeProjectAttachment

      public RuntimeProjectAttachment getRuntimeProjectAttachment()
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRuntimeProjectAttachment in interface CreateRuntimeProjectAttachmentRequestOrBuilder
      Returns:
      The runtimeProjectAttachment.
    • setRuntimeProjectAttachment

      public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachment(RuntimeProjectAttachment value)
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
    • setRuntimeProjectAttachment

      public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachment(RuntimeProjectAttachment.Builder builderForValue)
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeRuntimeProjectAttachment

      public CreateRuntimeProjectAttachmentRequest.Builder mergeRuntimeProjectAttachment(RuntimeProjectAttachment value)
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearRuntimeProjectAttachment

      public CreateRuntimeProjectAttachmentRequest.Builder clearRuntimeProjectAttachment()
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getRuntimeProjectAttachmentBuilder

      public RuntimeProjectAttachment.Builder getRuntimeProjectAttachmentBuilder()
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getRuntimeProjectAttachmentOrBuilder

      public RuntimeProjectAttachmentOrBuilder getRuntimeProjectAttachmentOrBuilder()
       Required. The Runtime Project Attachment to create.
       
      .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRuntimeProjectAttachmentOrBuilder in interface CreateRuntimeProjectAttachmentRequestOrBuilder