Class GetGuestAttributesRequest.Builder

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

public static final class GetGuestAttributesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetGuestAttributesRequest.Builder> implements GetGuestAttributesRequestOrBuilder
 Request for [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
 
Protobuf type google.cloud.tpu.v2.GetGuestAttributesRequest
  • 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<GetGuestAttributesRequest.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<GetGuestAttributesRequest.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<GetGuestAttributesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetGuestAttributesRequest.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<GetGuestAttributesRequest.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 GetGuestAttributesRequestOrBuilder
      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 GetGuestAttributesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetGuestAttributesRequest.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

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

      public GetGuestAttributesRequest.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.
    • getQueryPath

      public String getQueryPath()
       The guest attributes path to be queried.
       
      string query_path = 2;
      Specified by:
      getQueryPath in interface GetGuestAttributesRequestOrBuilder
      Returns:
      The queryPath.
    • getQueryPathBytes

      public com.google.protobuf.ByteString getQueryPathBytes()
       The guest attributes path to be queried.
       
      string query_path = 2;
      Specified by:
      getQueryPathBytes in interface GetGuestAttributesRequestOrBuilder
      Returns:
      The bytes for queryPath.
    • setQueryPath

      public GetGuestAttributesRequest.Builder setQueryPath(String value)
       The guest attributes path to be queried.
       
      string query_path = 2;
      Parameters:
      value - The queryPath to set.
      Returns:
      This builder for chaining.
    • clearQueryPath

      public GetGuestAttributesRequest.Builder clearQueryPath()
       The guest attributes path to be queried.
       
      string query_path = 2;
      Returns:
      This builder for chaining.
    • setQueryPathBytes

      public GetGuestAttributesRequest.Builder setQueryPathBytes(com.google.protobuf.ByteString value)
       The guest attributes path to be queried.
       
      string query_path = 2;
      Parameters:
      value - The bytes for queryPath to set.
      Returns:
      This builder for chaining.
    • getWorkerIdsList

      public com.google.protobuf.ProtocolStringList getWorkerIdsList()
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Specified by:
      getWorkerIdsList in interface GetGuestAttributesRequestOrBuilder
      Returns:
      A list containing the workerIds.
    • getWorkerIdsCount

      public int getWorkerIdsCount()
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Specified by:
      getWorkerIdsCount in interface GetGuestAttributesRequestOrBuilder
      Returns:
      The count of workerIds.
    • getWorkerIds

      public String getWorkerIds(int index)
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Specified by:
      getWorkerIds in interface GetGuestAttributesRequestOrBuilder
      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, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Specified by:
      getWorkerIdsBytes in interface GetGuestAttributesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the workerIds at the given index.
    • setWorkerIds

      public GetGuestAttributesRequest.Builder setWorkerIds(int index, String value)
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Parameters:
      index - The index to set the value at.
      value - The workerIds to set.
      Returns:
      This builder for chaining.
    • addWorkerIds

      public GetGuestAttributesRequest.Builder addWorkerIds(String value)
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Parameters:
      value - The workerIds to add.
      Returns:
      This builder for chaining.
    • addAllWorkerIds

      public GetGuestAttributesRequest.Builder addAllWorkerIds(Iterable<String> values)
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Parameters:
      values - The workerIds to add.
      Returns:
      This builder for chaining.
    • clearWorkerIds

      public GetGuestAttributesRequest.Builder clearWorkerIds()
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Returns:
      This builder for chaining.
    • addWorkerIdsBytes

      public GetGuestAttributesRequest.Builder addWorkerIdsBytes(com.google.protobuf.ByteString value)
       The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
       returned.
       
      repeated string worker_ids = 3;
      Parameters:
      value - The bytes of the workerIds to add.
      Returns:
      This builder for chaining.