- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder extends GeneratedMessageV3.Builder<InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder> implements InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder
Compliance data for an OS policy
Protobuf type
google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceOSPoliciesCompliance.OSPolicyCompliance.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllOsPolicyResourceCompliances(Iterable<? extends OSPolicyResourceCompliance> values)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addAllOsPolicyResourceCompliances(Iterable<? extends OSPolicyResourceCompliance> values)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance> |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyResourceCompliances(OSPolicyResourceCompliance value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyResourceCompliance value)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
value |
OSPolicyResourceCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyResourceCompliances(OSPolicyResourceCompliance.Builder builderForValue)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
OSPolicyResourceCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
OSPolicyResourceCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
OSPolicyResourceCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyResourceCompliancesBuilder()
public OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
OSPolicyResourceCompliance.Builder |
addOsPolicyResourceCompliancesBuilder(int index)
public OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OSPolicyResourceCompliance.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
build()
public InstanceOSPoliciesCompliance.OSPolicyCompliance build()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance |
buildPartial()
public InstanceOSPoliciesCompliance.OSPolicyCompliance buildPartial()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance |
clear()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clear()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
clearField(Descriptors.FieldDescriptor field)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
clearOsPolicyAssignment()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyAssignment()
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
clearOsPolicyId()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyId()
The OS policy id
string os_policy_id = 1;
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
clearOsPolicyResourceCompliances()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyResourceCompliances()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
clearState()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearState()
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
clone()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clone()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
getDefaultInstanceForType()
public InstanceOSPoliciesCompliance.OSPolicyCompliance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOsPolicyAssignment()
public String getOsPolicyAssignment()
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The osPolicyAssignment. |
getOsPolicyAssignmentBytes()
public ByteString getOsPolicyAssignmentBytes()
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for osPolicyAssignment. |
getOsPolicyId()
public String getOsPolicyId()
The OS policy id
string os_policy_id = 1;
Returns | |
---|---|
Type | Description |
String |
The osPolicyId. |
getOsPolicyIdBytes()
public ByteString getOsPolicyIdBytes()
The OS policy id
string os_policy_id = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for osPolicyId. |
getOsPolicyResourceCompliances(int index)
public OSPolicyResourceCompliance getOsPolicyResourceCompliances(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OSPolicyResourceCompliance |
getOsPolicyResourceCompliancesBuilder(int index)
public OSPolicyResourceCompliance.Builder getOsPolicyResourceCompliancesBuilder(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OSPolicyResourceCompliance.Builder |
getOsPolicyResourceCompliancesBuilderList()
public List<OSPolicyResourceCompliance.Builder> getOsPolicyResourceCompliancesBuilderList()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
List<Builder> |
getOsPolicyResourceCompliancesCount()
public int getOsPolicyResourceCompliancesCount()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
int |
getOsPolicyResourceCompliancesList()
public List<OSPolicyResourceCompliance> getOsPolicyResourceCompliancesList()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
List<OSPolicyResourceCompliance> |
getOsPolicyResourceCompliancesOrBuilder(int index)
public OSPolicyResourceComplianceOrBuilder getOsPolicyResourceCompliancesOrBuilder(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OSPolicyResourceComplianceOrBuilder |
getOsPolicyResourceCompliancesOrBuilderList()
public List<? extends OSPolicyResourceComplianceOrBuilder> getOsPolicyResourceCompliancesOrBuilderList()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceComplianceOrBuilder> |
getState()
public OSPolicyComplianceState getState()
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Returns | |
---|---|
Type | Description |
OSPolicyComplianceState |
The state. |
getStateValue()
public int getStateValue()
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InstanceOSPoliciesCompliance.OSPolicyCompliance other)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeFrom(InstanceOSPoliciesCompliance.OSPolicyCompliance other)
Parameter | |
---|---|
Name | Description |
other |
InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
removeOsPolicyResourceCompliances(int index)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder removeOsPolicyResourceCompliances(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
setOsPolicyAssignment(String value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyAssignment(String value)
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The osPolicyAssignment to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setOsPolicyAssignmentBytes(ByteString value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyAssignmentBytes(ByteString value)
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for osPolicyAssignment to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setOsPolicyId(String value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyId(String value)
The OS policy id
string os_policy_id = 1;
Parameter | |
---|---|
Name | Description |
value |
String The osPolicyId to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setOsPolicyIdBytes(ByteString value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyIdBytes(ByteString value)
The OS policy id
string os_policy_id = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for osPolicyId to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
OSPolicyResourceCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
OSPolicyResourceCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
setState(OSPolicyComplianceState value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setState(OSPolicyComplianceState value)
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Parameter | |
---|---|
Name | Description |
value |
OSPolicyComplianceState The state to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setStateValue(int value)
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setStateValue(int value)
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |