Class Compute.PlatformNotAllowedError.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.PlatformNotAllowedError.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.PlatformNotAllowedError.Builder>
namespace.cloud.compute.v1beta.Compute.PlatformNotAllowedError.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.PlatformNotAllowedErrorOrBuilder
Enclosing class:
Compute.PlatformNotAllowedError

public static final class Compute.PlatformNotAllowedError.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.PlatformNotAllowedError.Builder> implements Compute.PlatformNotAllowedErrorOrBuilder
 Used as a error detail.
 
Protobuf type namespace.cloud.compute.v1beta.PlatformNotAllowedError
  • 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<Compute.PlatformNotAllowedError.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<Compute.PlatformNotAllowedError.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<Compute.PlatformNotAllowedError.Builder>
    • getDefaultInstanceForType

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

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

      public Compute.PlatformNotAllowedError.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<Compute.PlatformNotAllowedError.Builder>
      Throws:
      IOException
    • getRequestedPlatform

      public String getRequestedPlatform()
      string requested_platform = 1;
      Specified by:
      getRequestedPlatform in interface Compute.PlatformNotAllowedErrorOrBuilder
      Returns:
      The requestedPlatform.
    • getRequestedPlatformBytes

      public com.google.protobuf.ByteString getRequestedPlatformBytes()
      string requested_platform = 1;
      Specified by:
      getRequestedPlatformBytes in interface Compute.PlatformNotAllowedErrorOrBuilder
      Returns:
      The bytes for requestedPlatform.
    • setRequestedPlatform

      public Compute.PlatformNotAllowedError.Builder setRequestedPlatform(String value)
      string requested_platform = 1;
      Parameters:
      value - The requestedPlatform to set.
      Returns:
      This builder for chaining.
    • clearRequestedPlatform

      public Compute.PlatformNotAllowedError.Builder clearRequestedPlatform()
      string requested_platform = 1;
      Returns:
      This builder for chaining.
    • setRequestedPlatformBytes

      public Compute.PlatformNotAllowedError.Builder setRequestedPlatformBytes(com.google.protobuf.ByteString value)
      string requested_platform = 1;
      Parameters:
      value - The bytes for requestedPlatform to set.
      Returns:
      This builder for chaining.
    • getAllowedPlatformsList

      public com.google.protobuf.ProtocolStringList getAllowedPlatformsList()
      repeated string allowed_platforms = 2;
      Specified by:
      getAllowedPlatformsList in interface Compute.PlatformNotAllowedErrorOrBuilder
      Returns:
      A list containing the allowedPlatforms.
    • getAllowedPlatformsCount

      public int getAllowedPlatformsCount()
      repeated string allowed_platforms = 2;
      Specified by:
      getAllowedPlatformsCount in interface Compute.PlatformNotAllowedErrorOrBuilder
      Returns:
      The count of allowedPlatforms.
    • getAllowedPlatforms

      public String getAllowedPlatforms(int index)
      repeated string allowed_platforms = 2;
      Specified by:
      getAllowedPlatforms in interface Compute.PlatformNotAllowedErrorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedPlatforms at the given index.
    • getAllowedPlatformsBytes

      public com.google.protobuf.ByteString getAllowedPlatformsBytes(int index)
      repeated string allowed_platforms = 2;
      Specified by:
      getAllowedPlatformsBytes in interface Compute.PlatformNotAllowedErrorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedPlatforms at the given index.
    • setAllowedPlatforms

      public Compute.PlatformNotAllowedError.Builder setAllowedPlatforms(int index, String value)
      repeated string allowed_platforms = 2;
      Parameters:
      index - The index to set the value at.
      value - The allowedPlatforms to set.
      Returns:
      This builder for chaining.
    • addAllowedPlatforms

      public Compute.PlatformNotAllowedError.Builder addAllowedPlatforms(String value)
      repeated string allowed_platforms = 2;
      Parameters:
      value - The allowedPlatforms to add.
      Returns:
      This builder for chaining.
    • addAllAllowedPlatforms

      public Compute.PlatformNotAllowedError.Builder addAllAllowedPlatforms(Iterable<String> values)
      repeated string allowed_platforms = 2;
      Parameters:
      values - The allowedPlatforms to add.
      Returns:
      This builder for chaining.
    • clearAllowedPlatforms

      public Compute.PlatformNotAllowedError.Builder clearAllowedPlatforms()
      repeated string allowed_platforms = 2;
      Returns:
      This builder for chaining.
    • addAllowedPlatformsBytes

      public Compute.PlatformNotAllowedError.Builder addAllowedPlatformsBytes(com.google.protobuf.ByteString value)
      repeated string allowed_platforms = 2;
      Parameters:
      value - The bytes of the allowedPlatforms to add.
      Returns:
      This builder for chaining.