Class GetFeatureRequest.Builder

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

public static final class GetFeatureRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetFeatureRequest.Builder> implements GetFeatureRequestOrBuilder
 Request message for `GkeHub.GetFeature` method.
 
Protobuf type google.cloud.gkehub.v1.GetFeatureRequest
  • 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<GetFeatureRequest.Builder>
    • clear

      public GetFeatureRequest.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<GetFeatureRequest.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<GetFeatureRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetFeatureRequest.Builder mergeFrom(GetFeatureRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GetFeatureRequest.Builder>
    • mergeFrom

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

      public String getName()
       Required. The Feature resource name in the format
       `projects/*/locations/*/features/*`
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetFeatureRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The Feature resource name in the format
       `projects/*/locations/*/features/*`
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetFeatureRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetFeatureRequest.Builder setName(String value)
       Required. The Feature resource name in the format
       `projects/*/locations/*/features/*`
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GetFeatureRequest.Builder clearName()
       Required. The Feature resource name in the format
       `projects/*/locations/*/features/*`
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetFeatureRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The Feature resource name in the format
       `projects/*/locations/*/features/*`
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getReturnPartialSuccess

      public boolean getReturnPartialSuccess()
       Optional. If set to true, the response will return partial results when
       some regions are unreachable and the unreachable field in Feature proto
       will be populated. If set to false, the request will fail when some regions
       are unreachable.
       
      bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReturnPartialSuccess in interface GetFeatureRequestOrBuilder
      Returns:
      The returnPartialSuccess.
    • setReturnPartialSuccess

      public GetFeatureRequest.Builder setReturnPartialSuccess(boolean value)
       Optional. If set to true, the response will return partial results when
       some regions are unreachable and the unreachable field in Feature proto
       will be populated. If set to false, the request will fail when some regions
       are unreachable.
       
      bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The returnPartialSuccess to set.
      Returns:
      This builder for chaining.
    • clearReturnPartialSuccess

      public GetFeatureRequest.Builder clearReturnPartialSuccess()
       Optional. If set to true, the response will return partial results when
       some regions are unreachable and the unreachable field in Feature proto
       will be populated. If set to false, the request will fail when some regions
       are unreachable.
       
      bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.