Class UpdateBucketRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
com.google.logging.v2.UpdateBucketRequest.Builder
All Implemented Interfaces:
UpdateBucketRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateBucketRequest

public static final class UpdateBucketRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder
 The parameters to `UpdateBucket`.
 
Protobuf type google.logging.v2.UpdateBucketRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.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.GeneratedMessageV3.Builder<UpdateBucketRequest.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.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • setField

      public UpdateBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • clearField

      public UpdateBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • clearOneof

      public UpdateBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • setRepeatedField

      public UpdateBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • addRepeatedField

      public UpdateBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • mergeFrom

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

    • isInitialized

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

      public UpdateBucketRequest.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<UpdateBucketRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The full resource name of the bucket to update.
      
           "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      
       For example:
      
         `"projects/my-project/locations/global/buckets/my-bucket"`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface UpdateBucketRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The full resource name of the bucket to update.
      
           "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      
       For example:
      
         `"projects/my-project/locations/global/buckets/my-bucket"`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface UpdateBucketRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public UpdateBucketRequest.Builder setName(String value)
       Required. The full resource name of the bucket to update.
      
           "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      
       For example:
      
         `"projects/my-project/locations/global/buckets/my-bucket"`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public UpdateBucketRequest.Builder clearName()
       Required. The full resource name of the bucket to update.
      
           "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      
       For example:
      
         `"projects/my-project/locations/global/buckets/my-bucket"`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public UpdateBucketRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The full resource name of the bucket to update.
      
           "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
           "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      
       For example:
      
         `"projects/my-project/locations/global/buckets/my-bucket"`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasBucket

      public boolean hasBucket()
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBucket in interface UpdateBucketRequestOrBuilder
      Returns:
      Whether the bucket field is set.
    • getBucket

      public LogBucket getBucket()
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucket in interface UpdateBucketRequestOrBuilder
      Returns:
      The bucket.
    • setBucket

      public UpdateBucketRequest.Builder setBucket(LogBucket value)
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
    • setBucket

      public UpdateBucketRequest.Builder setBucket(LogBucket.Builder builderForValue)
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeBucket

      public UpdateBucketRequest.Builder mergeBucket(LogBucket value)
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearBucket

      public UpdateBucketRequest.Builder clearBucket()
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
    • getBucketBuilder

      public LogBucket.Builder getBucketBuilder()
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
    • getBucketOrBuilder

      public LogBucketOrBuilder getBucketOrBuilder()
       Required. The updated bucket.
       
      .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucketOrBuilder in interface UpdateBucketRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasUpdateMask in interface UpdateBucketRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMask in interface UpdateBucketRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateBucketRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • setUpdateMask

      public UpdateBucketRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeUpdateMask

      public UpdateBucketRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearUpdateMask

      public UpdateBucketRequest.Builder clearUpdateMask()
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Required. Field mask that specifies the fields in `bucket` that need an
       update. A bucket field will be overwritten if, and only if, it is in the
       update mask. `name` and output only fields cannot be updated.
      
       For a detailed `FieldMask` definition, see:
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=retention_days`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateBucketRequestOrBuilder
    • setUnknownFields

      public final UpdateBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • mergeUnknownFields

      public final UpdateBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>