Class GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder> implements GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
 Specifies an artifact available via some URI.
 
Protobuf type google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact.Remote
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
    • getDefaultInstanceForType

      public GuestPolicies.SoftwareRecipe.Artifact.Remote getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.SoftwareRecipe.Artifact.Remote.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface GuestPolicies.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 interface GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
      Returns:
      The bytes for uri.
    • setUri

       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

       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 interface GuestPolicies.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 interface GuestPolicies.SoftwareRecipe.Artifact.RemoteOrBuilder
      Returns:
      The bytes for checksum.
    • setChecksum

       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

       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.