Class ResourceMaintenance.Maintenance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceMaintenance.Maintenance.Builder>
com.google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance.Builder
All Implemented Interfaces:
ResourceMaintenance.MaintenanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceMaintenance.Maintenance

public static final class ResourceMaintenance.Maintenance.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceMaintenance.Maintenance.Builder> implements ResourceMaintenance.MaintenanceOrBuilder
 Maintenance is the maintenance details of a resource's maintenance.
 
Protobuf type google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance
  • 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<ResourceMaintenance.Maintenance.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<ResourceMaintenance.Maintenance.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<ResourceMaintenance.Maintenance.Builder>
    • getDefaultInstanceForType

      public ResourceMaintenance.Maintenance 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 ResourceMaintenance.Maintenance buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ResourceMaintenance.Maintenance.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<ResourceMaintenance.Maintenance.Builder>
      Throws:
      IOException
    • getMaintenanceName

      public String getMaintenanceName()
       Maintenance is the name of the corresponding maintenance resource
       following the standard naming scheme: `"{maintenance-id}"`
       
      string maintenance_name = 1;
      Specified by:
      getMaintenanceName in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The maintenanceName.
    • getMaintenanceNameBytes

      public com.google.protobuf.ByteString getMaintenanceNameBytes()
       Maintenance is the name of the corresponding maintenance resource
       following the standard naming scheme: `"{maintenance-id}"`
       
      string maintenance_name = 1;
      Specified by:
      getMaintenanceNameBytes in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The bytes for maintenanceName.
    • setMaintenanceName

      public ResourceMaintenance.Maintenance.Builder setMaintenanceName(String value)
       Maintenance is the name of the corresponding maintenance resource
       following the standard naming scheme: `"{maintenance-id}"`
       
      string maintenance_name = 1;
      Parameters:
      value - The maintenanceName to set.
      Returns:
      This builder for chaining.
    • clearMaintenanceName

      public ResourceMaintenance.Maintenance.Builder clearMaintenanceName()
       Maintenance is the name of the corresponding maintenance resource
       following the standard naming scheme: `"{maintenance-id}"`
       
      string maintenance_name = 1;
      Returns:
      This builder for chaining.
    • setMaintenanceNameBytes

      public ResourceMaintenance.Maintenance.Builder setMaintenanceNameBytes(com.google.protobuf.ByteString value)
       Maintenance is the name of the corresponding maintenance resource
       following the standard naming scheme: `"{maintenance-id}"`
       
      string maintenance_name = 1;
      Parameters:
      value - The bytes for maintenanceName to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Output only. The title of the maintenance.
       
      string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitle in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Output only. The title of the maintenance.
       
      string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitleBytes in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The bytes for title.
    • setTitle

       Output only. The title of the maintenance.
       
      string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

       Output only. The title of the maintenance.
       
      string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public ResourceMaintenance.Maintenance.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Output only. The title of the maintenance.
       
      string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. The description of the maintenance.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. The description of the maintenance.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ResourceMaintenance.Maintenance.Builder setDescription(String value)
       Output only. The description of the maintenance.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ResourceMaintenance.Maintenance.Builder clearDescription()
       Output only. The description of the maintenance.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ResourceMaintenance.Maintenance.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. The description of the maintenance.
       
      string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getCategoryValue

      public int getCategoryValue()
       Output only. The category of the maintenance.
       
      .google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategoryValue in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The enum numeric value on the wire for category.
    • setCategoryValue

      public ResourceMaintenance.Maintenance.Builder setCategoryValue(int value)
       Output only. The category of the maintenance.
       
      .google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for category to set.
      Returns:
      This builder for chaining.
    • getCategory

      public MaintenanceCategory getCategory()
       Output only. The category of the maintenance.
       
      .google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategory in interface ResourceMaintenance.MaintenanceOrBuilder
      Returns:
      The category.
    • setCategory

       Output only. The category of the maintenance.
       
      .google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

       Output only. The category of the maintenance.
       
      .google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.