Class OSPolicyAssignment.InstanceFilter.Inventory.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OSPolicyAssignment.InstanceFilter.Inventory.Builder>
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
All Implemented Interfaces:
OSPolicyAssignment.InstanceFilter.InventoryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OSPolicyAssignment.InstanceFilter.Inventory

public static final class OSPolicyAssignment.InstanceFilter.Inventory.Builder extends com.google.protobuf.GeneratedMessage.Builder<OSPolicyAssignment.InstanceFilter.Inventory.Builder> implements OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
 VM inventory details.
 
Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
  • 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<OSPolicyAssignment.InstanceFilter.Inventory.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<OSPolicyAssignment.InstanceFilter.Inventory.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<OSPolicyAssignment.InstanceFilter.Inventory.Builder>
    • getDefaultInstanceForType

      public OSPolicyAssignment.InstanceFilter.Inventory 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OSPolicyAssignment.InstanceFilter.Inventory.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<OSPolicyAssignment.InstanceFilter.Inventory.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<OSPolicyAssignment.InstanceFilter.Inventory.Builder>
    • mergeFrom

      public OSPolicyAssignment.InstanceFilter.Inventory.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<OSPolicyAssignment.InstanceFilter.Inventory.Builder>
      Throws:
      IOException
    • getOsShortName

      public String getOsShortName()
       Required. The OS short name
       
      string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsShortName in interface OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
      Returns:
      The osShortName.
    • getOsShortNameBytes

      public com.google.protobuf.ByteString getOsShortNameBytes()
       Required. The OS short name
       
      string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOsShortNameBytes in interface OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
      Returns:
      The bytes for osShortName.
    • setOsShortName

       Required. The OS short name
       
      string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The osShortName to set.
      Returns:
      This builder for chaining.
    • clearOsShortName

       Required. The OS short name
       
      string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setOsShortNameBytes

      public OSPolicyAssignment.InstanceFilter.Inventory.Builder setOsShortNameBytes(com.google.protobuf.ByteString value)
       Required. The OS short name
       
      string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for osShortName to set.
      Returns:
      This builder for chaining.
    • getOsVersion

      public String getOsVersion()
       The OS version
      
       Prefix matches are supported if asterisk(*) is provided as the
       last character. For example, to match all versions with a major
       version of `7`, specify the following value for this field `7.*`
      
       An empty string matches all OS versions.
       
      string os_version = 2;
      Specified by:
      getOsVersion in interface OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
      Returns:
      The osVersion.
    • getOsVersionBytes

      public com.google.protobuf.ByteString getOsVersionBytes()
       The OS version
      
       Prefix matches are supported if asterisk(*) is provided as the
       last character. For example, to match all versions with a major
       version of `7`, specify the following value for this field `7.*`
      
       An empty string matches all OS versions.
       
      string os_version = 2;
      Specified by:
      getOsVersionBytes in interface OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
      Returns:
      The bytes for osVersion.
    • setOsVersion

       The OS version
      
       Prefix matches are supported if asterisk(*) is provided as the
       last character. For example, to match all versions with a major
       version of `7`, specify the following value for this field `7.*`
      
       An empty string matches all OS versions.
       
      string os_version = 2;
      Parameters:
      value - The osVersion to set.
      Returns:
      This builder for chaining.
    • clearOsVersion

       The OS version
      
       Prefix matches are supported if asterisk(*) is provided as the
       last character. For example, to match all versions with a major
       version of `7`, specify the following value for this field `7.*`
      
       An empty string matches all OS versions.
       
      string os_version = 2;
      Returns:
      This builder for chaining.
    • setOsVersionBytes

      public OSPolicyAssignment.InstanceFilter.Inventory.Builder setOsVersionBytes(com.google.protobuf.ByteString value)
       The OS version
      
       Prefix matches are supported if asterisk(*) is provided as the
       last character. For example, to match all versions with a major
       version of `7`, specify the following value for this field `7.*`
      
       An empty string matches all OS versions.
       
      string os_version = 2;
      Parameters:
      value - The bytes for osVersion to set.
      Returns:
      This builder for chaining.