Class SimulateMaintenanceEventRequest.Builder

    • Method Detail

      • 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<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.GeneratedMessageV3.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

        public SimulateMaintenanceEventRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SimulateMaintenanceEventRequest.Builder>
      • 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

        public SimulateMaintenanceEventRequest.Builder setName​(String value)
         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

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