Class OSPolicy.OSFilter.Builder

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

public static final class OSPolicy.OSFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<OSPolicy.OSFilter.Builder> implements OSPolicy.OSFilterOrBuilder
 Filtering criteria to select VMs based on OS details.
 
Protobuf type google.cloud.osconfig.v1alpha.OSPolicy.OSFilter
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    This should match OS short name emitted by the OS inventory agent.
    This value should match the version emitted by the OS inventory agent.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    This should match OS short name emitted by the OS inventory agent.
    com.google.protobuf.ByteString
    This should match OS short name emitted by the OS inventory agent.
    This value should match the version emitted by the OS inventory agent.
    com.google.protobuf.ByteString
    This value should match the version emitted by the OS inventory agent.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    This should match OS short name emitted by the OS inventory agent.
    setOsShortNameBytes(com.google.protobuf.ByteString value)
    This should match OS short name emitted by the OS inventory agent.
    This value should match the version emitted by the OS inventory agent.
    setOsVersionBytes(com.google.protobuf.ByteString value)
    This value should match the version emitted by the OS inventory agent.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<OSPolicy.OSFilter.Builder>
    • clear

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

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

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

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

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

      public OSPolicy.OSFilter.Builder mergeFrom(OSPolicy.OSFilter other)
    • isInitialized

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

      public OSPolicy.OSFilter.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<OSPolicy.OSFilter.Builder>
      Throws:
      IOException
    • getOsShortName

      public String getOsShortName()
       This should match OS short name emitted by the OS inventory agent.
       An empty value matches any OS.
       
      string os_short_name = 1;
      Specified by:
      getOsShortName in interface OSPolicy.OSFilterOrBuilder
      Returns:
      The osShortName.
    • getOsShortNameBytes

      public com.google.protobuf.ByteString getOsShortNameBytes()
       This should match OS short name emitted by the OS inventory agent.
       An empty value matches any OS.
       
      string os_short_name = 1;
      Specified by:
      getOsShortNameBytes in interface OSPolicy.OSFilterOrBuilder
      Returns:
      The bytes for osShortName.
    • setOsShortName

      public OSPolicy.OSFilter.Builder setOsShortName(String value)
       This should match OS short name emitted by the OS inventory agent.
       An empty value matches any OS.
       
      string os_short_name = 1;
      Parameters:
      value - The osShortName to set.
      Returns:
      This builder for chaining.
    • clearOsShortName

      public OSPolicy.OSFilter.Builder clearOsShortName()
       This should match OS short name emitted by the OS inventory agent.
       An empty value matches any OS.
       
      string os_short_name = 1;
      Returns:
      This builder for chaining.
    • setOsShortNameBytes

      public OSPolicy.OSFilter.Builder setOsShortNameBytes(com.google.protobuf.ByteString value)
       This should match OS short name emitted by the OS inventory agent.
       An empty value matches any OS.
       
      string os_short_name = 1;
      Parameters:
      value - The bytes for osShortName to set.
      Returns:
      This builder for chaining.
    • getOsVersion

      public String getOsVersion()
       This value should match the version emitted by the OS inventory
       agent.
       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.*`
       
      string os_version = 2;
      Specified by:
      getOsVersion in interface OSPolicy.OSFilterOrBuilder
      Returns:
      The osVersion.
    • getOsVersionBytes

      public com.google.protobuf.ByteString getOsVersionBytes()
       This value should match the version emitted by the OS inventory
       agent.
       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.*`
       
      string os_version = 2;
      Specified by:
      getOsVersionBytes in interface OSPolicy.OSFilterOrBuilder
      Returns:
      The bytes for osVersion.
    • setOsVersion

      public OSPolicy.OSFilter.Builder setOsVersion(String value)
       This value should match the version emitted by the OS inventory
       agent.
       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.*`
       
      string os_version = 2;
      Parameters:
      value - The osVersion to set.
      Returns:
      This builder for chaining.
    • clearOsVersion

      public OSPolicy.OSFilter.Builder clearOsVersion()
       This value should match the version emitted by the OS inventory
       agent.
       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.*`
       
      string os_version = 2;
      Returns:
      This builder for chaining.
    • setOsVersionBytes

      public OSPolicy.OSFilter.Builder setOsVersionBytes(com.google.protobuf.ByteString value)
       This value should match the version emitted by the OS inventory
       agent.
       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.*`
       
      string os_version = 2;
      Parameters:
      value - The bytes for osVersion to set.
      Returns:
      This builder for chaining.