Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Artifact.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Artifact.Builder
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.ArtifactOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Artifact
public static final class GuestPolicies.SoftwareRecipe.Artifact.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Builder>
implements GuestPolicies.SoftwareRecipe.ArtifactOrBuilder
Specifies a resource to be used in the recipe.Protobuf type
google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Defaults to false.clearGcs()A Google Cloud Storage artifact.clearId()Required.A generic remote artifact.booleanDefaults to false.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGcs()A Google Cloud Storage artifact.A Google Cloud Storage artifact.A Google Cloud Storage artifact.getId()Required.com.google.protobuf.ByteStringRequired.A generic remote artifact.A generic remote artifact.A generic remote artifact.booleanhasGcs()A Google Cloud Storage artifact.booleanA generic remote artifact.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A Google Cloud Storage artifact.A generic remote artifact.setAllowInsecure(boolean value) Defaults to false.A Google Cloud Storage artifact.setGcs(GuestPolicies.SoftwareRecipe.Artifact.Gcs.Builder builderForValue) A Google Cloud Storage artifact.Required.setIdBytes(com.google.protobuf.ByteString value) Required.A generic remote artifact.setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder builderForValue) A generic remote artifact.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.SoftwareRecipe.Artifact.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.SoftwareRecipe.Artifact.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.SoftwareRecipe.Artifact.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<GuestPolicies.SoftwareRecipe.Artifact.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Artifact other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Artifact.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.SoftwareRecipe.Artifact.Builder>- Throws:
IOException
-
getArtifactCase
- Specified by:
getArtifactCasein interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder
-
clearArtifact
-
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];- Specified by:
getIdin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.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];- Specified by:
getIdBytesin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- The bytes for id.
-
setId
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];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIdBytes
public GuestPolicies.SoftwareRecipe.Artifact.Builder setIdBytes(com.google.protobuf.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];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasRemote
public boolean hasRemote()A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;- Specified by:
hasRemotein interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- Whether the remote field is set.
-
getRemote
A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;- Specified by:
getRemotein interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- The remote.
-
setRemote
public GuestPolicies.SoftwareRecipe.Artifact.Builder setRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value) A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2; -
setRemote
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; -
mergeRemote
public GuestPolicies.SoftwareRecipe.Artifact.Builder mergeRemote(GuestPolicies.SoftwareRecipe.Artifact.Remote value) A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2; -
clearRemote
A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2; -
getRemoteBuilder
A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2; -
getRemoteOrBuilder
A generic remote artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote remote = 2;- Specified by:
getRemoteOrBuilderin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder
-
hasGcs
public boolean hasGcs()A Google Cloud Storage artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;- Specified by:
hasGcsin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- Whether the gcs field is set.
-
getGcs
A Google Cloud Storage artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;- Specified by:
getGcsin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- The gcs.
-
setGcs
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; -
setGcs
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; -
mergeGcs
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; -
clearGcs
A Google Cloud Storage artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3; -
getGcsBuilder
A Google Cloud Storage artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3; -
getGcsOrBuilder
A Google Cloud Storage artifact.
.google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Gcs gcs = 3;- Specified by:
getGcsOrBuilderin interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder
-
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;- Specified by:
getAllowInsecurein interfaceGuestPolicies.SoftwareRecipe.ArtifactOrBuilder- Returns:
- The allowInsecure.
-
setAllowInsecure
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;- Parameters:
value- The allowInsecure to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-