Class UpdateEnrollmentRequest.Builder

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

public static final class UpdateEnrollmentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateEnrollmentRequest.Builder> implements UpdateEnrollmentRequestOrBuilder
 The request message for the UpdateEnrollment method.
 
Protobuf type google.cloud.eventarc.v1.UpdateEnrollmentRequest
  • 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<UpdateEnrollmentRequest.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<UpdateEnrollmentRequest.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<UpdateEnrollmentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateEnrollmentRequest.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<UpdateEnrollmentRequest.Builder>
      Throws:
      IOException
    • hasEnrollment

      public boolean hasEnrollment()
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEnrollment in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      Whether the enrollment field is set.
    • getEnrollment

      public Enrollment getEnrollment()
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEnrollment in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      The enrollment.
    • setEnrollment

      public UpdateEnrollmentRequest.Builder setEnrollment(Enrollment value)
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
    • setEnrollment

      public UpdateEnrollmentRequest.Builder setEnrollment(Enrollment.Builder builderForValue)
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeEnrollment

      public UpdateEnrollmentRequest.Builder mergeEnrollment(Enrollment value)
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearEnrollment

      public UpdateEnrollmentRequest.Builder clearEnrollment()
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEnrollmentBuilder

      public Enrollment.Builder getEnrollmentBuilder()
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEnrollmentOrBuilder

      public EnrollmentOrBuilder getEnrollmentOrBuilder()
       Required. The Enrollment to be updated.
       
      .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEnrollmentOrBuilder in interface UpdateEnrollmentRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateEnrollmentRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateEnrollmentRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateEnrollmentRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateEnrollmentRequest.Builder clearUpdateMask()
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. The fields to be updated; only fields explicitly provided are
       updated. If no field mask is provided, all provided fields in the request
       are updated. To update all fields, provide a field mask of "*".
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateEnrollmentRequestOrBuilder
    • getAllowMissing

      public boolean getAllowMissing()
       Optional. If set to true, and the Enrollment is not found, a new Enrollment
       will be created. In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowMissing in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      The allowMissing.
    • setAllowMissing

      public UpdateEnrollmentRequest.Builder setAllowMissing(boolean value)
       Optional. If set to true, and the Enrollment is not found, a new Enrollment
       will be created. In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowMissing to set.
      Returns:
      This builder for chaining.
    • clearAllowMissing

      public UpdateEnrollmentRequest.Builder clearAllowMissing()
       Optional. If set to true, and the Enrollment is not found, a new Enrollment
       will be created. In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface UpdateEnrollmentRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UpdateEnrollmentRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UpdateEnrollmentRequest.Builder clearValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.