Class UpdateBranchRuleRequest.Builder

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

public static final class UpdateBranchRuleRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateBranchRuleRequest.Builder> implements UpdateBranchRuleRequestOrBuilder
 UpdateBranchRuleRequest is the request to update a branchRule.
 
Protobuf type google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest
  • 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<UpdateBranchRuleRequest.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<UpdateBranchRuleRequest.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<UpdateBranchRuleRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateBranchRuleRequest.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<UpdateBranchRuleRequest.Builder>
      Throws:
      IOException
    • hasBranchRule

      public boolean hasBranchRule()
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBranchRule in interface UpdateBranchRuleRequestOrBuilder
      Returns:
      Whether the branchRule field is set.
    • getBranchRule

      public BranchRule getBranchRule()
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBranchRule in interface UpdateBranchRuleRequestOrBuilder
      Returns:
      The branchRule.
    • setBranchRule

      public UpdateBranchRuleRequest.Builder setBranchRule(BranchRule value)
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
    • setBranchRule

      public UpdateBranchRuleRequest.Builder setBranchRule(BranchRule.Builder builderForValue)
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeBranchRule

      public UpdateBranchRuleRequest.Builder mergeBranchRule(BranchRule value)
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearBranchRule

      public UpdateBranchRuleRequest.Builder clearBranchRule()
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
    • getBranchRuleBuilder

      public BranchRule.Builder getBranchRuleBuilder()
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
    • getBranchRuleOrBuilder

      public BranchRuleOrBuilder getBranchRuleOrBuilder()
      .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBranchRuleOrBuilder in interface UpdateBranchRuleRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       actually post it.  (https://google.aip.dev/163, for declarative friendly)
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface UpdateBranchRuleRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UpdateBranchRuleRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request and preview the review, but do not
       actually post it.  (https://google.aip.dev/163, for declarative friendly)
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UpdateBranchRuleRequest.Builder clearValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       actually post it.  (https://google.aip.dev/163, for declarative friendly)
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateBranchRuleRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateBranchRuleRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateBranchRuleRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateBranchRuleRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateBranchRuleRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateBranchRuleRequest.Builder clearUpdateMask()
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. Field mask is used to specify the fields to be overwritten in the
       branchRule resource by the update.
       The fields specified in the update_mask are relative to the resource, not
       the full request. A field will be overwritten if it is in the mask.
       The special value "*" means full replacement.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateBranchRuleRequestOrBuilder