Class GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder (2.38.0)

public static final class GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder extends GeneratedMessageV3.Builder<GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder> implements GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder

A guest policy recipe including its source.

Protobuf type google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

build()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe build()
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe

buildPartial()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe buildPartial()
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe

clear()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clear()
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

clearSoftwareRecipe()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clearSoftwareRecipe()

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

clearSource()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clearSource()

Name of the guest policy providing this config.

string source = 1;

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

This builder for chaining.

clone()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder clone()
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

getDefaultInstanceForType()

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe getDefaultInstanceForType()
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSoftwareRecipe()

public GuestPolicies.SoftwareRecipe getSoftwareRecipe()

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe

The softwareRecipe.

getSoftwareRecipeBuilder()

public GuestPolicies.SoftwareRecipe.Builder getSoftwareRecipeBuilder()

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Builder

getSoftwareRecipeOrBuilder()

public GuestPolicies.SoftwareRecipeOrBuilder getSoftwareRecipeOrBuilder()

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Returns
TypeDescription
GuestPolicies.SoftwareRecipeOrBuilder

getSource()

public String getSource()

Name of the guest policy providing this config.

string source = 1;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Name of the guest policy providing this config.

string source = 1;

Returns
TypeDescription
ByteString

The bytes for source.

hasSoftwareRecipe()

public boolean hasSoftwareRecipe()

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Returns
TypeDescription
boolean

Whether the softwareRecipe field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe other)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder mergeFrom(GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe other)
Parameter
NameDescription
otherGuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

mergeSoftwareRecipe(GuestPolicies.SoftwareRecipe value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder mergeSoftwareRecipe(GuestPolicies.SoftwareRecipe value)

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Parameter
NameDescription
valueGuestPolicies.SoftwareRecipe
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides

setSoftwareRecipe(GuestPolicies.SoftwareRecipe value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setSoftwareRecipe(GuestPolicies.SoftwareRecipe value)

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Parameter
NameDescription
valueGuestPolicies.SoftwareRecipe
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

setSoftwareRecipe(GuestPolicies.SoftwareRecipe.Builder builderForValue)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setSoftwareRecipe(GuestPolicies.SoftwareRecipe.Builder builderForValue)

A software recipe to configure on the VM instance.

.google.cloud.osconfig.v1beta.SoftwareRecipe software_recipe = 2;

Parameter
NameDescription
builderForValueGuestPolicies.SoftwareRecipe.Builder
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

setSource(String value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setSource(String value)

Name of the guest policy providing this config.

string source = 1;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setSourceBytes(ByteString value)

Name of the guest policy providing this config.

string source = 1;

Parameter
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe.Builder
Overrides