Class PatchDeployments.CreatePatchDeploymentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchDeployments.CreatePatchDeploymentRequest.Builder>
com.google.cloud.osconfig.v1beta.PatchDeployments.CreatePatchDeploymentRequest.Builder
All Implemented Interfaces:
PatchDeployments.CreatePatchDeploymentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PatchDeployments.CreatePatchDeploymentRequest

public static final class PatchDeployments.CreatePatchDeploymentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchDeployments.CreatePatchDeploymentRequest.Builder> implements PatchDeployments.CreatePatchDeploymentRequestOrBuilder
 A request message for creating a patch deployment.
 
Protobuf type google.cloud.osconfig.v1beta.CreatePatchDeploymentRequest
  • 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<PatchDeployments.CreatePatchDeploymentRequest.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<PatchDeployments.CreatePatchDeploymentRequest.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<PatchDeployments.CreatePatchDeploymentRequest.Builder>
    • getDefaultInstanceForType

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

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

      public String getParent()
       Required. The project to apply this patch deployment to in the form `projects/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project to apply this patch deployment to in the form `projects/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The project to apply this patch deployment to in the form `projects/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The project to apply this patch deployment to in the form `projects/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public PatchDeployments.CreatePatchDeploymentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project to apply this patch deployment to in the form `projects/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPatchDeploymentId

      public String getPatchDeploymentId()
       Required. A name for the patch deployment in the project. When creating a name
       the following rules apply:
       * Must contain only lowercase letters, numbers, and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the project.
       
      string patch_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPatchDeploymentId in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      The patchDeploymentId.
    • getPatchDeploymentIdBytes

      public com.google.protobuf.ByteString getPatchDeploymentIdBytes()
       Required. A name for the patch deployment in the project. When creating a name
       the following rules apply:
       * Must contain only lowercase letters, numbers, and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the project.
       
      string patch_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPatchDeploymentIdBytes in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      The bytes for patchDeploymentId.
    • setPatchDeploymentId

       Required. A name for the patch deployment in the project. When creating a name
       the following rules apply:
       * Must contain only lowercase letters, numbers, and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the project.
       
      string patch_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The patchDeploymentId to set.
      Returns:
      This builder for chaining.
    • clearPatchDeploymentId

       Required. A name for the patch deployment in the project. When creating a name
       the following rules apply:
       * Must contain only lowercase letters, numbers, and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the project.
       
      string patch_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPatchDeploymentIdBytes

      public PatchDeployments.CreatePatchDeploymentRequest.Builder setPatchDeploymentIdBytes(com.google.protobuf.ByteString value)
       Required. A name for the patch deployment in the project. When creating a name
       the following rules apply:
       * Must contain only lowercase letters, numbers, and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the project.
       
      string patch_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for patchDeploymentId to set.
      Returns:
      This builder for chaining.
    • hasPatchDeployment

      public boolean hasPatchDeployment()
       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPatchDeployment in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      Whether the patchDeployment field is set.
    • getPatchDeployment

      public PatchDeployments.PatchDeployment getPatchDeployment()
       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPatchDeployment in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder
      Returns:
      The patchDeployment.
    • setPatchDeployment

       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
    • setPatchDeployment

       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergePatchDeployment

       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearPatchDeployment

       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPatchDeploymentBuilder

      public PatchDeployments.PatchDeployment.Builder getPatchDeploymentBuilder()
       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPatchDeploymentOrBuilder

      public PatchDeployments.PatchDeploymentOrBuilder getPatchDeploymentOrBuilder()
       Required. The patch deployment to create.
       
      .google.cloud.osconfig.v1beta.PatchDeployment patch_deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPatchDeploymentOrBuilder in interface PatchDeployments.CreatePatchDeploymentRequestOrBuilder