Class CreateOSPolicyAssignmentRequest.Builder

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

public static final class CreateOSPolicyAssignmentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateOSPolicyAssignmentRequest.Builder> implements CreateOSPolicyAssignmentRequestOrBuilder
 A request message to create an OS policy assignment
 
Protobuf type google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest
  • 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<CreateOSPolicyAssignmentRequest.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<CreateOSPolicyAssignmentRequest.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<CreateOSPolicyAssignmentRequest.Builder>
    • getDefaultInstanceForType

      public CreateOSPolicyAssignmentRequest 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

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

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

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

      public String getParent()
       Required. The parent resource name in the form:
       projects/{project}/locations/{location}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateOSPolicyAssignmentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

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

       Required. The parent resource name in the form:
       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 name in the form:
       projects/{project}/locations/{location}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateOSPolicyAssignmentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource name in the form:
       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.
    • hasOsPolicyAssignment

      public boolean hasOsPolicyAssignment()
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOsPolicyAssignment in interface CreateOSPolicyAssignmentRequestOrBuilder
      Returns:
      Whether the osPolicyAssignment field is set.
    • getOsPolicyAssignment

      public OSPolicyAssignment getOsPolicyAssignment()
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsPolicyAssignment in interface CreateOSPolicyAssignmentRequestOrBuilder
      Returns:
      The osPolicyAssignment.
    • setOsPolicyAssignment

      public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment value)
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
    • setOsPolicyAssignment

      public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment.Builder builderForValue)
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeOsPolicyAssignment

      public CreateOSPolicyAssignmentRequest.Builder mergeOsPolicyAssignment(OSPolicyAssignment value)
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearOsPolicyAssignment

      public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignment()
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOsPolicyAssignmentBuilder

      public OSPolicyAssignment.Builder getOsPolicyAssignmentBuilder()
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOsPolicyAssignmentOrBuilder

      public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentOrBuilder()
       Required. The OS policy assignment to be created.
       
      .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsPolicyAssignmentOrBuilder in interface CreateOSPolicyAssignmentRequestOrBuilder
    • getOsPolicyAssignmentId

      public String getOsPolicyAssignmentId()
       Required. The logical name of the OS policy assignment in the project
       with the following restrictions:
      
       * 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 os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsPolicyAssignmentId in interface CreateOSPolicyAssignmentRequestOrBuilder
      Returns:
      The osPolicyAssignmentId.
    • getOsPolicyAssignmentIdBytes

      public com.google.protobuf.ByteString getOsPolicyAssignmentIdBytes()
       Required. The logical name of the OS policy assignment in the project
       with the following restrictions:
      
       * 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 os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsPolicyAssignmentIdBytes in interface CreateOSPolicyAssignmentRequestOrBuilder
      Returns:
      The bytes for osPolicyAssignmentId.
    • setOsPolicyAssignmentId

      public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentId(String value)
       Required. The logical name of the OS policy assignment in the project
       with the following restrictions:
      
       * 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 os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The osPolicyAssignmentId to set.
      Returns:
      This builder for chaining.
    • clearOsPolicyAssignmentId

      public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignmentId()
       Required. The logical name of the OS policy assignment in the project
       with the following restrictions:
      
       * 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 os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setOsPolicyAssignmentIdBytes

      public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentIdBytes(com.google.protobuf.ByteString value)
       Required. The logical name of the OS policy assignment in the project
       with the following restrictions:
      
       * 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 os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for osPolicyAssignmentId to set.
      Returns:
      This builder for chaining.