Class InstanceParams.Builder

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

public static final class InstanceParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstanceParams.Builder> implements InstanceParamsOrBuilder
 Additional instance params.
 
Protobuf type google.cloud.compute.v1.InstanceParams
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<InstanceParams.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<InstanceParams.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceParams.Builder>
    • clear

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

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

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

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

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

      public InstanceParams.Builder mergeFrom(InstanceParams other)
    • isInitialized

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

      public InstanceParams.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<InstanceParams.Builder>
      Throws:
      IOException
    • hasRequestValidForDuration

      public boolean hasRequestValidForDuration()
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
      Specified by:
      hasRequestValidForDuration in interface InstanceParamsOrBuilder
      Returns:
      Whether the requestValidForDuration field is set.
    • getRequestValidForDuration

      public Duration getRequestValidForDuration()
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
      Specified by:
      getRequestValidForDuration in interface InstanceParamsOrBuilder
      Returns:
      The requestValidForDuration.
    • setRequestValidForDuration

      public InstanceParams.Builder setRequestValidForDuration(Duration value)
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
    • setRequestValidForDuration

      public InstanceParams.Builder setRequestValidForDuration(Duration.Builder builderForValue)
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
    • mergeRequestValidForDuration

      public InstanceParams.Builder mergeRequestValidForDuration(Duration value)
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
    • clearRequestValidForDuration

      public InstanceParams.Builder clearRequestValidForDuration()
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
    • getRequestValidForDurationBuilder

      public Duration.Builder getRequestValidForDurationBuilder()
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
    • getRequestValidForDurationOrBuilder

      public DurationOrBuilder getRequestValidForDurationOrBuilder()
       Relative deadline for waiting for capacity. Relevant only for
       Instances.Insert API.
       
      optional .google.cloud.compute.v1.Duration request_valid_for_duration = 116247389;
      Specified by:
      getRequestValidForDurationOrBuilder in interface InstanceParamsOrBuilder
    • getResourceManagerTagsCount

      public int getResourceManagerTagsCount()
      Description copied from interface: InstanceParamsOrBuilder
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
      Specified by:
      getResourceManagerTagsCount in interface InstanceParamsOrBuilder
    • containsResourceManagerTags

      public boolean containsResourceManagerTags(String key)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
      Specified by:
      containsResourceManagerTags in interface InstanceParamsOrBuilder
    • getResourceManagerTags

      @Deprecated public Map<String,String> getResourceManagerTags()
      Deprecated.
      Specified by:
      getResourceManagerTags in interface InstanceParamsOrBuilder
    • getResourceManagerTagsMap

      public Map<String,String> getResourceManagerTagsMap()
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
      Specified by:
      getResourceManagerTagsMap in interface InstanceParamsOrBuilder
    • getResourceManagerTagsOrDefault

      public String getResourceManagerTagsOrDefault(String key, String defaultValue)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
      Specified by:
      getResourceManagerTagsOrDefault in interface InstanceParamsOrBuilder
    • getResourceManagerTagsOrThrow

      public String getResourceManagerTagsOrThrow(String key)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
      Specified by:
      getResourceManagerTagsOrThrow in interface InstanceParamsOrBuilder
    • clearResourceManagerTags

      public InstanceParams.Builder clearResourceManagerTags()
    • removeResourceManagerTags

      public InstanceParams.Builder removeResourceManagerTags(String key)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
    • getMutableResourceManagerTags

      @Deprecated public Map<String,String> getMutableResourceManagerTags()
      Deprecated.
      Use alternate mutation accessors instead.
    • putResourceManagerTags

      public InstanceParams.Builder putResourceManagerTags(String key, String value)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;
    • putAllResourceManagerTags

      public InstanceParams.Builder putAllResourceManagerTags(Map<String,String> values)
       Input only. Resource manager tags to be bound to the instance. Tag keys and values
       have the same definition as resource
       manager tags. Keys and values can be either in numeric format,
       such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced
       format such as `{org_id|project_id}/{tag_key_short_name}` and
       `{tag_value_short_name}`. The field is ignored (both PUT &
       PATCH) when empty.
       
      map<string, string> resource_manager_tags = 377671164;