Class ListRuntimesResponse.Runtime.Builder

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

public static final class ListRuntimesResponse.Runtime.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListRuntimesResponse.Runtime.Builder> implements ListRuntimesResponse.RuntimeOrBuilder
 Describes a runtime and any special information (e.g., deprecation status)
 related to it.
 
Protobuf type google.cloud.functions.v2.ListRuntimesResponse.Runtime
  • 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<ListRuntimesResponse.Runtime.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<ListRuntimesResponse.Runtime.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<ListRuntimesResponse.Runtime.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getName()
       The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       
      string name = 1;
      Specified by:
      getName in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ListRuntimesResponse.Runtime.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       
      string display_name = 5;
      Specified by:
      getDisplayName in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       
      string display_name = 5;
      Specified by:
      getDisplayNameBytes in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ListRuntimesResponse.Runtime.Builder setDisplayName(String value)
       The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       
      string display_name = 5;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ListRuntimesResponse.Runtime.Builder clearDisplayName()
       The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       
      string display_name = 5;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ListRuntimesResponse.Runtime.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       
      string display_name = 5;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getStageValue

      public int getStageValue()
       The stage of life this runtime is in, e.g., BETA, GA, etc.
       
      .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
      Specified by:
      getStageValue in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The enum numeric value on the wire for stage.
    • setStageValue

      public ListRuntimesResponse.Runtime.Builder setStageValue(int value)
       The stage of life this runtime is in, e.g., BETA, GA, etc.
       
      .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
      Parameters:
      value - The enum numeric value on the wire for stage to set.
      Returns:
      This builder for chaining.
    • getStage

       The stage of life this runtime is in, e.g., BETA, GA, etc.
       
      .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
      Specified by:
      getStage in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The stage.
    • setStage

       The stage of life this runtime is in, e.g., BETA, GA, etc.
       
      .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
      Parameters:
      value - The stage to set.
      Returns:
      This builder for chaining.
    • clearStage

       The stage of life this runtime is in, e.g., BETA, GA, etc.
       
      .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
      Returns:
      This builder for chaining.
    • getWarningsList

      public com.google.protobuf.ProtocolStringList getWarningsList()
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Specified by:
      getWarningsList in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      A list containing the warnings.
    • getWarningsCount

      public int getWarningsCount()
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Specified by:
      getWarningsCount in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The count of warnings.
    • getWarnings

      public String getWarnings(int index)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Specified by:
      getWarnings in interface ListRuntimesResponse.RuntimeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The warnings at the given index.
    • getWarningsBytes

      public com.google.protobuf.ByteString getWarningsBytes(int index)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Specified by:
      getWarningsBytes in interface ListRuntimesResponse.RuntimeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the warnings at the given index.
    • setWarnings

      public ListRuntimesResponse.Runtime.Builder setWarnings(int index, String value)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Parameters:
      index - The index to set the value at.
      value - The warnings to set.
      Returns:
      This builder for chaining.
    • addWarnings

      public ListRuntimesResponse.Runtime.Builder addWarnings(String value)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Parameters:
      value - The warnings to add.
      Returns:
      This builder for chaining.
    • addAllWarnings

      public ListRuntimesResponse.Runtime.Builder addAllWarnings(Iterable<String> values)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Parameters:
      values - The warnings to add.
      Returns:
      This builder for chaining.
    • clearWarnings

      public ListRuntimesResponse.Runtime.Builder clearWarnings()
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Returns:
      This builder for chaining.
    • addWarningsBytes

      public ListRuntimesResponse.Runtime.Builder addWarningsBytes(com.google.protobuf.ByteString value)
       Warning messages, e.g., a deprecation warning.
       
      repeated string warnings = 3;
      Parameters:
      value - The bytes of the warnings to add.
      Returns:
      This builder for chaining.
    • getEnvironmentValue

      public int getEnvironmentValue()
       The environment for the runtime.
       
      .google.cloud.functions.v2.Environment environment = 4;
      Specified by:
      getEnvironmentValue in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The enum numeric value on the wire for environment.
    • setEnvironmentValue

      public ListRuntimesResponse.Runtime.Builder setEnvironmentValue(int value)
       The environment for the runtime.
       
      .google.cloud.functions.v2.Environment environment = 4;
      Parameters:
      value - The enum numeric value on the wire for environment to set.
      Returns:
      This builder for chaining.
    • getEnvironment

      public Environment getEnvironment()
       The environment for the runtime.
       
      .google.cloud.functions.v2.Environment environment = 4;
      Specified by:
      getEnvironment in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The environment.
    • setEnvironment

      public ListRuntimesResponse.Runtime.Builder setEnvironment(Environment value)
       The environment for the runtime.
       
      .google.cloud.functions.v2.Environment environment = 4;
      Parameters:
      value - The environment to set.
      Returns:
      This builder for chaining.
    • clearEnvironment

      public ListRuntimesResponse.Runtime.Builder clearEnvironment()
       The environment for the runtime.
       
      .google.cloud.functions.v2.Environment environment = 4;
      Returns:
      This builder for chaining.
    • hasDeprecationDate

      public boolean hasDeprecationDate()
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
      Specified by:
      hasDeprecationDate in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      Whether the deprecationDate field is set.
    • getDeprecationDate

      public Date getDeprecationDate()
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
      Specified by:
      getDeprecationDate in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The deprecationDate.
    • setDeprecationDate

      public ListRuntimesResponse.Runtime.Builder setDeprecationDate(Date value)
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
    • setDeprecationDate

      public ListRuntimesResponse.Runtime.Builder setDeprecationDate(Date.Builder builderForValue)
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
    • mergeDeprecationDate

      public ListRuntimesResponse.Runtime.Builder mergeDeprecationDate(Date value)
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
    • clearDeprecationDate

      public ListRuntimesResponse.Runtime.Builder clearDeprecationDate()
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
    • getDeprecationDateBuilder

      public Date.Builder getDeprecationDateBuilder()
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
    • getDeprecationDateOrBuilder

      public DateOrBuilder getDeprecationDateOrBuilder()
       Deprecation date for the runtime.
       
      .google.type.Date deprecation_date = 6;
      Specified by:
      getDeprecationDateOrBuilder in interface ListRuntimesResponse.RuntimeOrBuilder
    • hasDecommissionDate

      public boolean hasDecommissionDate()
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
      Specified by:
      hasDecommissionDate in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      Whether the decommissionDate field is set.
    • getDecommissionDate

      public Date getDecommissionDate()
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
      Specified by:
      getDecommissionDate in interface ListRuntimesResponse.RuntimeOrBuilder
      Returns:
      The decommissionDate.
    • setDecommissionDate

      public ListRuntimesResponse.Runtime.Builder setDecommissionDate(Date value)
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
    • setDecommissionDate

      public ListRuntimesResponse.Runtime.Builder setDecommissionDate(Date.Builder builderForValue)
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
    • mergeDecommissionDate

      public ListRuntimesResponse.Runtime.Builder mergeDecommissionDate(Date value)
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
    • clearDecommissionDate

      public ListRuntimesResponse.Runtime.Builder clearDecommissionDate()
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
    • getDecommissionDateBuilder

      public Date.Builder getDecommissionDateBuilder()
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
    • getDecommissionDateOrBuilder

      public DateOrBuilder getDecommissionDateOrBuilder()
       Decommission date for the runtime.
       
      .google.type.Date decommission_date = 7;
      Specified by:
      getDecommissionDateOrBuilder in interface ListRuntimesResponse.RuntimeOrBuilder