Class OSPolicy.Resource.File.Remote (2.38.0)

public static final class OSPolicy.Resource.File.Remote extends GeneratedMessageV3 implements OSPolicy.Resource.File.RemoteOrBuilder

Specifies a file available via some URI.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote

Static Fields

SHA256_CHECKSUM_FIELD_NUMBER

public static final int SHA256_CHECKSUM_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OSPolicy.Resource.File.Remote getDefaultInstance()
Returns
TypeDescription
OSPolicy.Resource.File.Remote

getDescriptor()

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

newBuilder()

public static OSPolicy.Resource.File.Remote.Builder newBuilder()
Returns
TypeDescription
OSPolicy.Resource.File.Remote.Builder

newBuilder(OSPolicy.Resource.File.Remote prototype)

public static OSPolicy.Resource.File.Remote.Builder newBuilder(OSPolicy.Resource.File.Remote prototype)
Parameter
NameDescription
prototypeOSPolicy.Resource.File.Remote
Returns
TypeDescription
OSPolicy.Resource.File.Remote.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicy.Resource.File.Remote parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OSPolicy.Resource.File.Remote parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicy.Resource.File.Remote parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicy.Resource.File.Remote parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OSPolicy.Resource.File.Remote parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OSPolicy.Resource.File.Remote parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.File.Remote parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Remote
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OSPolicy.Resource.File.Remote> parser()
Returns
TypeDescription
Parser<Remote>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OSPolicy.Resource.File.Remote getDefaultInstanceForType()
Returns
TypeDescription
OSPolicy.Resource.File.Remote

getParserForType()

public Parser<OSPolicy.Resource.File.Remote> getParserForType()
Returns
TypeDescription
Parser<Remote>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSha256Checksum()

public String getSha256Checksum()

SHA256 checksum of the remote file.

string sha256_checksum = 2;

Returns
TypeDescription
String

The sha256Checksum.

getSha256ChecksumBytes()

public ByteString getSha256ChecksumBytes()

SHA256 checksum of the remote file.

string sha256_checksum = 2;

Returns
TypeDescription
ByteString

The bytes for sha256Checksum.

getUri()

public String getUri()

Required. URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for uri.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OSPolicy.Resource.File.Remote.Builder newBuilderForType()
Returns
TypeDescription
OSPolicy.Resource.File.Remote.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicy.Resource.File.Remote.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OSPolicy.Resource.File.Remote.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OSPolicy.Resource.File.Remote.Builder toBuilder()
Returns
TypeDescription
OSPolicy.Resource.File.Remote.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException