Class TargetPoolsAddInstanceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TargetPoolsAddInstanceRequest.Builder>
com.google.cloud.compute.v1.TargetPoolsAddInstanceRequest.Builder
All Implemented Interfaces:
TargetPoolsAddInstanceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TargetPoolsAddInstanceRequest

public static final class TargetPoolsAddInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<TargetPoolsAddInstanceRequest.Builder> implements TargetPoolsAddInstanceRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.TargetPoolsAddInstanceRequest
  • 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<TargetPoolsAddInstanceRequest.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<TargetPoolsAddInstanceRequest.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<TargetPoolsAddInstanceRequest.Builder>
    • getDefaultInstanceForType

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

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

      public TargetPoolsAddInstanceRequest.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<TargetPoolsAddInstanceRequest.Builder>
      Throws:
      IOException
    • getInstancesList

      public List<InstanceReference> getInstancesList()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
      Specified by:
      getInstancesList in interface TargetPoolsAddInstanceRequestOrBuilder
    • getInstancesCount

      public int getInstancesCount()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
      Specified by:
      getInstancesCount in interface TargetPoolsAddInstanceRequestOrBuilder
    • getInstances

      public InstanceReference getInstances(int index)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
      Specified by:
      getInstances in interface TargetPoolsAddInstanceRequestOrBuilder
    • setInstances

      public TargetPoolsAddInstanceRequest.Builder setInstances(int index, InstanceReference value)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • setInstances

      public TargetPoolsAddInstanceRequest.Builder setInstances(int index, InstanceReference.Builder builderForValue)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addInstances

       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addInstances

      public TargetPoolsAddInstanceRequest.Builder addInstances(int index, InstanceReference value)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addInstances

       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addInstances

      public TargetPoolsAddInstanceRequest.Builder addInstances(int index, InstanceReference.Builder builderForValue)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addAllInstances

      public TargetPoolsAddInstanceRequest.Builder addAllInstances(Iterable<? extends InstanceReference> values)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • clearInstances

      public TargetPoolsAddInstanceRequest.Builder clearInstances()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • removeInstances

      public TargetPoolsAddInstanceRequest.Builder removeInstances(int index)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • getInstancesBuilder

      public InstanceReference.Builder getInstancesBuilder(int index)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • getInstancesOrBuilder

      public InstanceReferenceOrBuilder getInstancesOrBuilder(int index)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
      Specified by:
      getInstancesOrBuilder in interface TargetPoolsAddInstanceRequestOrBuilder
    • getInstancesOrBuilderList

      public List<? extends InstanceReferenceOrBuilder> getInstancesOrBuilderList()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
      Specified by:
      getInstancesOrBuilderList in interface TargetPoolsAddInstanceRequestOrBuilder
    • addInstancesBuilder

      public InstanceReference.Builder addInstancesBuilder()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • addInstancesBuilder

      public InstanceReference.Builder addInstancesBuilder(int index)
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;
    • getInstancesBuilderList

      public List<InstanceReference.Builder> getInstancesBuilderList()
       A full or partial URL to an instance to add to this target pool. This can
       be a full or partial URL. For example, the following are valid URLs:
      
       - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
       - projects/project-id/zones/zone/instances/instance-name
       - zones/zone/instances/instance-name
       
      repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;