Class UpdateFeatureRequest.Builder

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

public static final class UpdateFeatureRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateFeatureRequest.Builder> implements UpdateFeatureRequestOrBuilder
 Request message for `GkeHub.UpdateFeature` method.
 
Protobuf type google.cloud.gkehub.v1beta.UpdateFeatureRequest
  • 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<UpdateFeatureRequest.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<UpdateFeatureRequest.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<UpdateFeatureRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       The Feature resource name in the format
       `projects/*/locations/*/features/*`.
       
      string name = 1;
      Specified by:
      getName in interface UpdateFeatureRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The Feature resource name in the format
       `projects/*/locations/*/features/*`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface UpdateFeatureRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public UpdateFeatureRequest.Builder setName(String value)
       The Feature resource name in the format
       `projects/*/locations/*/features/*`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public UpdateFeatureRequest.Builder clearName()
       The Feature resource name in the format
       `projects/*/locations/*/features/*`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public UpdateFeatureRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       The Feature resource name in the format
       `projects/*/locations/*/features/*`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasUpdateMask

      public boolean hasUpdateMask()
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateFeatureRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateFeatureRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateFeatureRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateFeatureRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateFeatureRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateFeatureRequest.Builder clearUpdateMask()
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Mask of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateFeatureRequestOrBuilder
    • hasResource

      public boolean hasResource()
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
      Specified by:
      hasResource in interface UpdateFeatureRequestOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Feature getResource()
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
      Specified by:
      getResource in interface UpdateFeatureRequestOrBuilder
      Returns:
      The resource.
    • setResource

      public UpdateFeatureRequest.Builder setResource(Feature value)
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
    • setResource

      public UpdateFeatureRequest.Builder setResource(Feature.Builder builderForValue)
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
    • mergeResource

      public UpdateFeatureRequest.Builder mergeResource(Feature value)
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
    • clearResource

      public UpdateFeatureRequest.Builder clearResource()
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
    • getResourceBuilder

      public Feature.Builder getResourceBuilder()
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
    • getResourceOrBuilder

      public FeatureOrBuilder getResourceOrBuilder()
       Only fields specified in update_mask are updated.
       If you specify a field in the update_mask but don't specify its value here
       that field will be deleted.
       If you are updating a map field, set the value of a key to null or empty
       string to delete the key from the map. It's not possible to update a key's
       value to the empty string.
       If you specify the update_mask to be a special path "*", fully replaces all
       user-modifiable fields to match `resource`.
       
      .google.cloud.gkehub.v1beta.Feature resource = 3;
      Specified by:
      getResourceOrBuilder in interface UpdateFeatureRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. A request ID to identify requests. Specify a unique request ID
       so that if you must retry your request, the server will know to ignore
       the request if it has already been completed. The server will guarantee
       that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface UpdateFeatureRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. A request ID to identify requests. Specify a unique request ID
       so that if you must retry your request, the server will know to ignore
       the request if it has already been completed. The server will guarantee
       that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface UpdateFeatureRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public UpdateFeatureRequest.Builder setRequestId(String value)
       Optional. A request ID to identify requests. Specify a unique request ID
       so that if you must retry your request, the server will know to ignore
       the request if it has already been completed. The server will guarantee
       that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public UpdateFeatureRequest.Builder clearRequestId()
       Optional. A request ID to identify requests. Specify a unique request ID
       so that if you must retry your request, the server will know to ignore
       the request if it has already been completed. The server will guarantee
       that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public UpdateFeatureRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. A request ID to identify requests. Specify a unique request ID
       so that if you must retry your request, the server will know to ignore
       the request if it has already been completed. The server will guarantee
       that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.