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 Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<String> values) Additional properties to use during installation.addProperties(String value) Additional properties to use during installation.addPropertiesBytes(com.google.protobuf.ByteString value) Additional properties to use during installation.build()clear()Additional properties to use during installation.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetProperties(int index) Additional properties to use during installation.com.google.protobuf.ByteStringgetPropertiesBytes(int index) Additional properties to use during installation.intAdditional properties to use during installation.com.google.protobuf.ProtocolStringListAdditional properties to use during installation.Required.Required.Required.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setProperties(int index, String value) Additional properties to use during installation.setSource(OSPolicy.Resource.File value) Required.setSource(OSPolicy.Resource.File.Builder builderForValue) Required.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OSPolicy.Resource.PackageResource.MSI.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OSPolicy.Resource.PackageResource.MSI.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OSPolicy.Resource.PackageResource.MSI.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSPolicy.Resource.PackageResource.MSI.Builder>
-
mergeFrom
public OSPolicy.Resource.PackageResource.MSI.Builder mergeFrom(OSPolicy.Resource.PackageResource.MSI other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasSourcein interfaceOSPolicy.Resource.PackageResource.MSIOrBuilder- Returns:
- Whether the source field is set.
-
getSource
Required. The MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourcein interfaceOSPolicy.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
public OSPolicy.Resource.PackageResource.MSI.Builder setSource(OSPolicy.Resource.File.Builder builderForValue) 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
Required. The MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED]; -
getSourceOrBuilder
Required. The MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceOrBuilderin interfaceOSPolicy.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:
getPropertiesListin interfaceOSPolicy.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:
getPropertiesCountin interfaceOSPolicy.Resource.PackageResource.MSIOrBuilder- Returns:
- The count of properties.
-
getProperties
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:
getPropertiesin interfaceOSPolicy.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:
getPropertiesBytesin interfaceOSPolicy.Resource.PackageResource.MSIOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the properties at the given index.
-
setProperties
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.
-