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 TypeMethodDescriptionbuild()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorThis should match OS short name emitted by the OS inventory agent.com.google.protobuf.ByteStringThis 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.ByteStringThis value should match the version emitted by the OS inventory agent.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(OSPolicy.OSFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setOsShortName(String value) 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.setOsVersion(String value) 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, 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.OSFilter.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.OSFilter.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.OSFilter.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.OSFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSPolicy.OSFilter.Builder>- Throws:
IOException
-
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:
getOsShortNamein interfaceOSPolicy.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:
getOsShortNameBytesin interfaceOSPolicy.OSFilterOrBuilder- Returns:
- The bytes for osShortName.
-
setOsShortName
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
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
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
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:
getOsVersionin interfaceOSPolicy.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:
getOsVersionBytesin interfaceOSPolicy.OSFilterOrBuilder- Returns:
- The bytes for osVersion.
-
setOsVersion
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
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
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.
-