- 2.80.0 (latest)
 - 2.78.0
 - 2.77.0
 - 2.76.0
 - 2.75.0
 - 2.74.0
 - 2.72.0
 - 2.70.0
 - 2.69.0
 - 2.66.0
 - 2.65.0
 - 2.64.0
 - 2.62.0
 - 2.61.0
 - 2.60.0
 - 2.59.0
 - 2.58.0
 - 2.57.0
 - 2.56.0
 - 2.55.0
 - 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 GuestPolicies.SoftwareRecipe.Artifact.Builder extends GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Builder> implements GuestPolicies.SoftwareRecipe.ArtifactOrBuilderSpecifies a resource to be used in the recipe.
 Protobuf type google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GuestPolicies.SoftwareRecipe.Artifact.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
build()
public GuestPolicies.SoftwareRecipe.Artifact build()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact | 
        |
buildPartial()
public GuestPolicies.SoftwareRecipe.Artifact buildPartial()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact | 
        |
clear()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clear()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clearAllowInsecure()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearAllowInsecure()Defaults to false. When false, recipes are subject to validations based on the artifact type:
Remote: A checksum must be specified, and only protocols with transport-layer security are permitted. GCS: An object generation number must be specified.
 bool allow_insecure = 4;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        This builder for chaining.  | 
      
clearArtifact()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearArtifact()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clearGcs()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearGcs()A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clearId()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearId()Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.
 string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clearRemote()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clearRemote()A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
clone()
public GuestPolicies.SoftwareRecipe.Artifact.Builder clone()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
getAllowInsecure()
public boolean getAllowInsecure()Defaults to false. When false, recipes are subject to validations based on the artifact type:
Remote: A checksum must be specified, and only protocols with transport-layer security are permitted. GCS: An object generation number must be specified.
 bool allow_insecure = 4;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        The allowInsecure.  | 
      
getArtifactCase()
public GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase getArtifactCase()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.ArtifactCase | 
        |
getDefaultInstanceForType()
public GuestPolicies.SoftwareRecipe.Artifact getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getGcs()
public GuestPolicies.SoftwareRecipe.Artifact.Gcs getGcs()A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Gcs | 
        The gcs.  | 
      
getGcsBuilder()
public GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder getGcsBuilder()A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder | 
        |
getGcsOrBuilder()
public GuestPolicies.SoftwareRecipe.Artifact.GcsOrBuilder getGcsOrBuilder()A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.GcsOrBuilder | 
        |
getId()
public String getId()Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.
 string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The id.  | 
      
getIdBytes()
public ByteString getIdBytes()Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.
 string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for id.  | 
      
getRemote()
public GuestPolicies.SoftwareRecipe.Artifact.Remote getRemote()A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Remote | 
        The remote.  | 
      
getRemoteBuilder()
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder getRemoteBuilder()A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder | 
        |
getRemoteOrBuilder()
public GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder getRemoteOrBuilder()A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder | 
        |
hasGcs()
public boolean hasGcs()A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the gcs field is set.  | 
      
hasRemote()
public boolean hasRemote()A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the remote field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        GuestPolicies.SoftwareRecipe.Artifact | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
mergeGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        GuestPolicies.SoftwareRecipe.Artifact.Gcs | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
mergeRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        GuestPolicies.SoftwareRecipe.Artifact.Remote | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.SoftwareRecipe.Artifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setAllowInsecure(boolean value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setAllowInsecure(boolean value)Defaults to false. When false, recipes are subject to validations based on the artifact type:
Remote: A checksum must be specified, and only protocols with transport-layer security are permitted. GCS: An object generation number must be specified.
 bool allow_insecure = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        booleanThe allowInsecure to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs value)A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        GuestPolicies.SoftwareRecipe.Artifact.Gcs | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder builderForValue)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder builderForValue)A Google Cloud Storage artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setId(String value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setId(String value)Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.
 string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe id to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        This builder for chaining.  | 
      
setIdBytes(ByteString value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setIdBytes(ByteString value)Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id.
 string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for id to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        This builder for chaining.  | 
      
setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value)A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        GuestPolicies.SoftwareRecipe.Artifact.Remote | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder builderForValue)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder builderForValue)A generic remote artifact.
 .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.SoftwareRecipe.Artifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.SoftwareRecipe.Artifact.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
GuestPolicies.SoftwareRecipe.Artifact.Builder | 
        |