Class SimulateMaintenanceEventRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SimulateMaintenanceEventRequest.Builder>
com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.Builder
All Implemented Interfaces:
SimulateMaintenanceEventRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SimulateMaintenanceEventRequest

public static final class SimulateMaintenanceEventRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SimulateMaintenanceEventRequest.Builder> implements SimulateMaintenanceEventRequestOrBuilder
 Request for
 [SimulateMaintenanceEvent][google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent].
 
Protobuf type google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest
  • 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<SimulateMaintenanceEventRequest.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<SimulateMaintenanceEventRequest.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<SimulateMaintenanceEventRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getName()
       Required. The resource name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface SimulateMaintenanceEventRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface SimulateMaintenanceEventRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The resource name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The resource name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public SimulateMaintenanceEventRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name.
       
      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.
    • getWorkerIdsList

      public com.google.protobuf.ProtocolStringList getWorkerIdsList()
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Specified by:
      getWorkerIdsList in interface SimulateMaintenanceEventRequestOrBuilder
      Returns:
      A list containing the workerIds.
    • getWorkerIdsCount

      public int getWorkerIdsCount()
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Specified by:
      getWorkerIdsCount in interface SimulateMaintenanceEventRequestOrBuilder
      Returns:
      The count of workerIds.
    • getWorkerIds

      public String getWorkerIds(int index)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Specified by:
      getWorkerIds in interface SimulateMaintenanceEventRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The workerIds at the given index.
    • getWorkerIdsBytes

      public com.google.protobuf.ByteString getWorkerIdsBytes(int index)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Specified by:
      getWorkerIdsBytes in interface SimulateMaintenanceEventRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the workerIds at the given index.
    • setWorkerIds

      public SimulateMaintenanceEventRequest.Builder setWorkerIds(int index, String value)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The workerIds to set.
      Returns:
      This builder for chaining.
    • addWorkerIds

      public SimulateMaintenanceEventRequest.Builder addWorkerIds(String value)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Parameters:
      value - The workerIds to add.
      Returns:
      This builder for chaining.
    • addAllWorkerIds

      public SimulateMaintenanceEventRequest.Builder addAllWorkerIds(Iterable<String> values)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Parameters:
      values - The workerIds to add.
      Returns:
      This builder for chaining.
    • clearWorkerIds

      public SimulateMaintenanceEventRequest.Builder clearWorkerIds()
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Returns:
      This builder for chaining.
    • addWorkerIdsBytes

      public SimulateMaintenanceEventRequest.Builder addWorkerIdsBytes(com.google.protobuf.ByteString value)
       The 0-based worker ID. If it is empty, worker ID 0 will be selected for
       maintenance event simulation. A maintenance event will only be fired on the
       first specified worker ID. Future implementations may support firing on
       multiple workers.
       
      repeated string worker_ids = 2;
      Parameters:
      value - The bytes of the workerIds to add.
      Returns:
      This builder for chaining.