Class OSPolicy.Resource.PackageResource.MSI.Builder

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

public static final class OSPolicy.Resource.PackageResource.MSI.Builder extends com.google.protobuf.GeneratedMessage.Builder<OSPolicy.Resource.PackageResource.MSI.Builder> implements OSPolicy.Resource.PackageResource.MSIOrBuilder
 An MSI package. MSI packages only support INSTALLED state.
 
Protobuf type google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI
  • 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.Resource.PackageResource.MSI.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.Resource.PackageResource.MSI.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.Resource.PackageResource.MSI.Builder>
    • getDefaultInstanceForType

      public OSPolicy.Resource.PackageResource.MSI 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 OSPolicy.Resource.PackageResource.MSI.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.Resource.PackageResource.MSI.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<OSPolicy.Resource.PackageResource.MSI.Builder>
    • mergeFrom

      public OSPolicy.Resource.PackageResource.MSI.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.Resource.PackageResource.MSI.Builder>
      Throws:
      IOException
    • hasSource

      public boolean hasSource()
       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSource in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public OSPolicy.Resource.File getSource()
       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSource in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Returns:
      The source.
    • setSource

       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSource

       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeSource

       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSource

       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSourceBuilder

      public OSPolicy.Resource.File.Builder getSourceBuilder()
       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSourceOrBuilder

      public OSPolicy.Resource.FileOrBuilder getSourceOrBuilder()
       Required. The MSI package.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceOrBuilder in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
    • getPropertiesList

      public com.google.protobuf.ProtocolStringList getPropertiesList()
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Specified by:
      getPropertiesList in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Returns:
      A list containing the properties.
    • getPropertiesCount

      public int getPropertiesCount()
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Specified by:
      getPropertiesCount in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Returns:
      The count of properties.
    • getProperties

      public String getProperties(int index)
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Specified by:
      getProperties in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The properties at the given index.
    • getPropertiesBytes

      public com.google.protobuf.ByteString getPropertiesBytes(int index)
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Specified by:
      getPropertiesBytes in interface OSPolicy.Resource.PackageResource.MSIOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the properties at the given index.
    • setProperties

      public OSPolicy.Resource.PackageResource.MSI.Builder setProperties(int index, String value)
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Parameters:
      index - The index to set the value at.
      value - The properties to set.
      Returns:
      This builder for chaining.
    • addProperties

       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Parameters:
      value - The properties to add.
      Returns:
      This builder for chaining.
    • addAllProperties

       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Parameters:
      values - The properties to add.
      Returns:
      This builder for chaining.
    • clearProperties

       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Returns:
      This builder for chaining.
    • addPropertiesBytes

      public OSPolicy.Resource.PackageResource.MSI.Builder addPropertiesBytes(com.google.protobuf.ByteString value)
       Additional properties to use during installation.
       This should be in the format of Property=Setting.
       Appended to the defaults of `ACTION=INSTALL
       REBOOT=ReallySuppress`.
       
      repeated string properties = 2;
      Parameters:
      value - The bytes of the properties to add.
      Returns:
      This builder for chaining.