Package com.google.cloud.osconfig.v1beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Architecture of OS running on the instance.Short name of the OS running on the instance.Version of the OS running on the instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Architecture of OS running on the instance.com.google.protobuf.ByteStringArchitecture of OS running on the instance.Short name of the OS running on the instance.com.google.protobuf.ByteStringShort name of the OS running on the instance.Version of the OS running on the instance.com.google.protobuf.ByteStringVersion of the OS running on the instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInstance(String value) Required.setInstanceBytes(com.google.protobuf.ByteString value) Required.setOsArchitecture(String value) Architecture of OS running on the instance.setOsArchitectureBytes(com.google.protobuf.ByteString value) Architecture of OS running on the instance.setOsShortName(String value) Short name of the OS running on the instance.setOsShortNameBytes(com.google.protobuf.ByteString value) Short name of the OS running on the instance.setOsVersion(String value) Version of the OS running on the instance.setOsVersionBytes(com.google.protobuf.ByteString value) Version of the OS running on the instance.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.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<GuestPolicies.LookupEffectiveGuestPolicyRequest.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
public GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.LookupEffectiveGuestPolicyRequest.Builder>- Throws:
IOException
-
getInstance
Required. The VM instance whose policies are being looked up.
string instance = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancein interfaceGuestPolicies.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:
getInstanceBytesin interfaceGuestPolicies.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
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:
getOsShortNamein interfaceGuestPolicies.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:
getOsShortNameBytesin interfaceGuestPolicies.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
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:
getOsVersionin interfaceGuestPolicies.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:
getOsVersionBytesin interfaceGuestPolicies.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
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:
getOsArchitecturein interfaceGuestPolicies.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:
getOsArchitectureBytesin interfaceGuestPolicies.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.
-