Class UpgradeEvent

public final class UpgradeEvent extends GeneratedMessageV3 implements UpgradeEventOrBuilder

UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.

Protobuf type google.container.v1beta1.UpgradeEvent

Fields

CURRENT_VERSION_FIELD_NUMBER

public static final int CURRENT_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATION_FIELD_NUMBER

public static final int OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATION_START_TIME_FIELD_NUMBER

public static final int OPERATION_START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_VERSION_FIELD_NUMBER

public static final int TARGET_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

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

getCurrentVersion()

public String getCurrentVersion()

The current version before the upgrade.

string current_version = 4;

Returns
TypeDescription
String

The currentVersion.

getCurrentVersionBytes()

public ByteString getCurrentVersionBytes()

The current version before the upgrade.

string current_version = 4;

Returns
TypeDescription
ByteString

The bytes for currentVersion.

getDefaultInstance()

public static UpgradeEvent getDefaultInstance()
Returns
TypeDescription
UpgradeEvent

getDefaultInstanceForType()

public UpgradeEvent getDefaultInstanceForType()
Returns
TypeDescription
UpgradeEvent

getDescriptor()

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

getOperation()

public String getOperation()

The operation associated with this upgrade.

string operation = 2;

Returns
TypeDescription
String

The operation.

getOperationBytes()

public ByteString getOperationBytes()

The operation associated with this upgrade.

string operation = 2;

Returns
TypeDescription
ByteString

The bytes for operation.

getOperationStartTime()

public Timestamp getOperationStartTime()

The time when the operation was started.

.google.protobuf.Timestamp operation_start_time = 3;

Returns
TypeDescription
Timestamp

The operationStartTime.

getOperationStartTimeOrBuilder()

public TimestampOrBuilder getOperationStartTimeOrBuilder()

The time when the operation was started.

.google.protobuf.Timestamp operation_start_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

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

getResource()

public String getResource()

Optional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.

string resource = 6;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Optional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.

string resource = 6;

Returns
TypeDescription
ByteString

The bytes for resource.

getResourceType()

public UpgradeResourceType getResourceType()

The resource type that is upgrading.

.google.container.v1beta1.UpgradeResourceType resource_type = 1;

Returns
TypeDescription
UpgradeResourceType

The resourceType.

getResourceTypeValue()

public int getResourceTypeValue()

The resource type that is upgrading.

.google.container.v1beta1.UpgradeResourceType resource_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetVersion()

public String getTargetVersion()

The target version for the upgrade.

string target_version = 5;

Returns
TypeDescription
String

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

The target version for the upgrade.

string target_version = 5;

Returns
TypeDescription
ByteString

The bytes for targetVersion.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasOperationStartTime()

public boolean hasOperationStartTime()

The time when the operation was started.

.google.protobuf.Timestamp operation_start_time = 3;

Returns
TypeDescription
boolean

Whether the operationStartTime 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

newBuilder()

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

newBuilder(UpgradeEvent prototype)

public static UpgradeEvent.Builder newBuilder(UpgradeEvent prototype)
Parameter
NameDescription
prototypeUpgradeEvent
Returns
TypeDescription
UpgradeEvent.Builder

newBuilderForType()

public UpgradeEvent.Builder newBuilderForType()
Returns
TypeDescription
UpgradeEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

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

writeTo(CodedOutputStream output)

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