Class GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder
All Implemented Interfaces:
GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GuestPolicies.LookupEffectiveGuestPolicyRequest

public static final class GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder> implements GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
 A request message for getting the effective guest policy assigned to the
 instance.
 
Protobuf type google.cloud.osconfig.v1beta.LookupEffectiveGuestPolicyRequest
  • 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<GuestPolicies.LookupEffectiveGuestPolicyRequest.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder>
    • getDefaultInstanceForType

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

      public GuestPolicies.LookupEffectiveGuestPolicyRequest.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder>
      Throws:
      IOException
    • getInstance

      public String getInstance()
       Required. The VM instance whose policies are being looked up.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstance in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Required. The VM instance whose policies are being looked up.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceBytes in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

       Required. The VM instance whose policies are being looked up.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

       Required. The VM instance whose policies are being looked up.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Required. The VM instance whose policies are being looked up.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • getOsShortName

      public String getOsShortName()
       Short name of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_short_name = 2;
      Specified by:
      getOsShortName in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The osShortName.
    • getOsShortNameBytes

      public com.google.protobuf.ByteString getOsShortNameBytes()
       Short name of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_short_name = 2;
      Specified by:
      getOsShortNameBytes in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The bytes for osShortName.
    • setOsShortName

       Short name of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_short_name = 2;
      Parameters:
      value - The osShortName to set.
      Returns:
      This builder for chaining.
    • clearOsShortName

       Short name of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_short_name = 2;
      Returns:
      This builder for chaining.
    • setOsShortNameBytes

      public GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder setOsShortNameBytes(com.google.protobuf.ByteString value)
       Short name of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_short_name = 2;
      Parameters:
      value - The bytes for osShortName to set.
      Returns:
      This builder for chaining.
    • getOsVersion

      public String getOsVersion()
       Version of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       VM instance.
       
      string os_version = 3;
      Specified by:
      getOsVersion in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The osVersion.
    • getOsVersionBytes

      public com.google.protobuf.ByteString getOsVersionBytes()
       Version of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       VM instance.
       
      string os_version = 3;
      Specified by:
      getOsVersionBytes in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The bytes for osVersion.
    • setOsVersion

       Version of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       VM instance.
       
      string os_version = 3;
      Parameters:
      value - The osVersion to set.
      Returns:
      This builder for chaining.
    • clearOsVersion

       Version of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       VM instance.
       
      string os_version = 3;
      Returns:
      This builder for chaining.
    • setOsVersionBytes

      public GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder setOsVersionBytes(com.google.protobuf.ByteString value)
       Version of the OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       VM instance.
       
      string os_version = 3;
      Parameters:
      value - The bytes for osVersion to set.
      Returns:
      This builder for chaining.
    • getOsArchitecture

      public String getOsArchitecture()
       Architecture of OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_architecture = 4;
      Specified by:
      getOsArchitecture in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The osArchitecture.
    • getOsArchitectureBytes

      public com.google.protobuf.ByteString getOsArchitectureBytes()
       Architecture of OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_architecture = 4;
      Specified by:
      getOsArchitectureBytes in interface GuestPolicies.LookupEffectiveGuestPolicyRequestOrBuilder
      Returns:
      The bytes for osArchitecture.
    • setOsArchitecture

       Architecture of OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_architecture = 4;
      Parameters:
      value - The osArchitecture to set.
      Returns:
      This builder for chaining.
    • clearOsArchitecture

       Architecture of OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_architecture = 4;
      Returns:
      This builder for chaining.
    • setOsArchitectureBytes

      public GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder setOsArchitectureBytes(com.google.protobuf.ByteString value)
       Architecture of OS running on the instance. The OS Config agent only
       provides this field for targeting if OS Inventory is enabled for that
       instance.
       
      string os_architecture = 4;
      Parameters:
      value - The bytes for osArchitecture to set.
      Returns:
      This builder for chaining.