Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
- com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder
-
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GuestPolicies.SoftwareRecipe.Artifact.Remote
public static final class GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder> implements GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
Specifies an artifact available via some URI.
Protobuf typegoogle.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
clear
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
getDefaultInstanceForType
public GuestPolicies.SoftwareRecipe.Artifact.Remote getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.SoftwareRecipe.Artifact.Remote build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.SoftwareRecipe.Artifact.Remote buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
setField
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
clearField
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
clearOneof
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
setRepeatedField
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
addRepeatedField
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder mergeFrom(GuestPolicies.SoftwareRecipe.Artifact.Remote other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
mergeFrom
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
- Throws:
IOException
-
getUri
public String getUri()
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
string uri = 1;
- Specified by:
getUri
in interfaceGuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
string uri = 1;
- Specified by:
getUriBytes
in interfaceGuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
- Returns:
- The bytes for uri.
-
setUri
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setUri(String value)
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
string uri = 1;
- Parameters:
value
- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clearUri()
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
string uri = 1;
- Returns:
- This builder for chaining.
-
setUriBytes
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setUriBytes(com.google.protobuf.ByteString value)
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
string uri = 1;
- Parameters:
value
- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getChecksum
public String getChecksum()
Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps.
string checksum = 2;
- Specified by:
getChecksum
in interfaceGuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
- Returns:
- The checksum.
-
getChecksumBytes
public com.google.protobuf.ByteString getChecksumBytes()
Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps.
string checksum = 2;
- Specified by:
getChecksumBytes
in interfaceGuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
- Returns:
- The bytes for checksum.
-
setChecksum
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setChecksum(String value)
Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps.
string checksum = 2;
- Parameters:
value
- The checksum to set.- Returns:
- This builder for chaining.
-
clearChecksum
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder clearChecksum()
Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps.
string checksum = 2;
- Returns:
- This builder for chaining.
-
setChecksumBytes
public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setChecksumBytes(com.google.protobuf.ByteString value)
Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps.
string checksum = 2;
- Parameters:
value
- The bytes for checksum to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
mergeUnknownFields
public final GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
-
-