Class FileContentBuffer (1.43.0)

public final class FileContentBuffer extends GeneratedMessageV3 implements FileContentBufferOrBuilder

Protobuf type google.cloud.compute.v1.FileContentBuffer

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_TYPE_FIELD_NUMBER

public static final int FILE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FileContentBuffer getDefaultInstance()
Returns
TypeDescription
FileContentBuffer

getDescriptor()

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

newBuilder()

public static FileContentBuffer.Builder newBuilder()
Returns
TypeDescription
FileContentBuffer.Builder

newBuilder(FileContentBuffer prototype)

public static FileContentBuffer.Builder newBuilder(FileContentBuffer prototype)
Parameter
NameDescription
prototypeFileContentBuffer
Returns
TypeDescription
FileContentBuffer.Builder

parseDelimitedFrom(InputStream input)

public static FileContentBuffer parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FileContentBuffer parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileContentBuffer parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileContentBuffer parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FileContentBuffer parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FileContentBuffer parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileContentBuffer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileContentBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FileContentBuffer> parser()
Returns
TypeDescription
Parser<FileContentBuffer>

Methods

equals(Object obj)

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

getContent()

public String getContent()

The raw content in the secure keys file.

optional string content = 414659705;

Returns
TypeDescription
String

The content.

getContentBytes()

public ByteString getContentBytes()

The raw content in the secure keys file.

optional string content = 414659705;

Returns
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public FileContentBuffer getDefaultInstanceForType()
Returns
TypeDescription
FileContentBuffer

getFileType()

public String getFileType()

The file type of source file. Check the FileType enum for the list of possible values.

optional string file_type = 294346781;

Returns
TypeDescription
String

The fileType.

getFileTypeBytes()

public ByteString getFileTypeBytes()

The file type of source file. Check the FileType enum for the list of possible values.

optional string file_type = 294346781;

Returns
TypeDescription
ByteString

The bytes for fileType.

getParserForType()

public Parser<FileContentBuffer> getParserForType()
Returns
TypeDescription
Parser<FileContentBuffer>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasContent()

public boolean hasContent()

The raw content in the secure keys file.

optional string content = 414659705;

Returns
TypeDescription
boolean

Whether the content field is set.

hasFileType()

public boolean hasFileType()

The file type of source file. Check the FileType enum for the list of possible values.

optional string file_type = 294346781;

Returns
TypeDescription
boolean

Whether the fileType field is set.

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 FileContentBuffer.Builder newBuilderForType()
Returns
TypeDescription
FileContentBuffer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileContentBuffer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FileContentBuffer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public FileContentBuffer.Builder toBuilder()
Returns
TypeDescription
FileContentBuffer.Builder

writeTo(CodedOutputStream output)

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