Class UpgradeInfoEvent.Builder (2.58.0)

public static final class UpgradeInfoEvent.Builder extends GeneratedMessageV3.Builder<UpgradeInfoEvent.Builder> implements UpgradeInfoEventOrBuilder

UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.

Protobuf type google.container.v1.UpgradeInfoEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpgradeInfoEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

build()

public UpgradeInfoEvent build()
Returns
Type Description
UpgradeInfoEvent

buildPartial()

public UpgradeInfoEvent buildPartial()
Returns
Type Description
UpgradeInfoEvent

clear()

public UpgradeInfoEvent.Builder clear()
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

clearCurrentVersion()

public UpgradeInfoEvent.Builder clearCurrentVersion()

The current version before the upgrade.

string current_version = 5;

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearDescription()

public UpgradeInfoEvent.Builder clearDescription()

A brief description of the event.

string description = 11;

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearEndTime()

public UpgradeInfoEvent.Builder clearEndTime()

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Returns
Type Description
UpgradeInfoEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public UpgradeInfoEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpgradeInfoEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

clearOperation()

public UpgradeInfoEvent.Builder clearOperation()

The operation associated with this upgrade.

string operation = 2;

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearResource()

public UpgradeInfoEvent.Builder clearResource()

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

string resource = 7;

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearResourceType()

public UpgradeInfoEvent.Builder clearResourceType()

The resource type associated with the upgrade.

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

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearStartTime()

public UpgradeInfoEvent.Builder clearStartTime()

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
UpgradeInfoEvent.Builder

clearState()

public UpgradeInfoEvent.Builder clearState()

Output only. The state of the upgrade.

.google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clearTargetVersion()

public UpgradeInfoEvent.Builder clearTargetVersion()

The target version for the upgrade.

string target_version = 6;

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

clone()

public UpgradeInfoEvent.Builder clone()
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

getCurrentVersion()

public String getCurrentVersion()

The current version before the upgrade.

string current_version = 5;

Returns
Type Description
String

The currentVersion.

getCurrentVersionBytes()

public ByteString getCurrentVersionBytes()

The current version before the upgrade.

string current_version = 5;

Returns
Type Description
ByteString

The bytes for currentVersion.

getDefaultInstanceForType()

public UpgradeInfoEvent getDefaultInstanceForType()
Returns
Type Description
UpgradeInfoEvent

getDescription()

public String getDescription()

A brief description of the event.

string description = 11;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A brief description of the event.

string description = 11;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Returns
Type Description
TimestampOrBuilder

getOperation()

public String getOperation()

The operation associated with this upgrade.

string operation = 2;

Returns
Type Description
String

The operation.

getOperationBytes()

public ByteString getOperationBytes()

The operation associated with this upgrade.

string operation = 2;

Returns
Type Description
ByteString

The bytes for operation.

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 = 7;

Returns
Type Description
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 = 7;

Returns
Type Description
ByteString

The bytes for resource.

getResourceType()

public UpgradeResourceType getResourceType()

The resource type associated with the upgrade.

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

Returns
Type Description
UpgradeResourceType

The resourceType.

getResourceTypeValue()

public int getResourceTypeValue()

The resource type associated with the upgrade.

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

Returns
Type Description
int

The enum numeric value on the wire for resourceType.

getStartTime()

public Timestamp getStartTime()

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
TimestampOrBuilder

getState()

public UpgradeInfoEvent.State getState()

Output only. The state of the upgrade.

.google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UpgradeInfoEvent.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the upgrade.

.google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTargetVersion()

public String getTargetVersion()

The target version for the upgrade.

string target_version = 6;

Returns
Type Description
String

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

The target version for the upgrade.

string target_version = 6;

Returns
Type Description
ByteString

The bytes for targetVersion.

hasEndTime()

public boolean hasEndTime()

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public UpgradeInfoEvent.Builder mergeEndTime(Timestamp value)

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeInfoEvent.Builder

mergeFrom(UpgradeInfoEvent other)

public UpgradeInfoEvent.Builder mergeFrom(UpgradeInfoEvent other)
Parameter
Name Description
other UpgradeInfoEvent
Returns
Type Description
UpgradeInfoEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpgradeInfoEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpgradeInfoEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

mergeStartTime(Timestamp value)

public UpgradeInfoEvent.Builder mergeStartTime(Timestamp value)

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeInfoEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeInfoEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

setCurrentVersion(String value)

public UpgradeInfoEvent.Builder setCurrentVersion(String value)

The current version before the upgrade.

string current_version = 5;

Parameter
Name Description
value String

The currentVersion to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setCurrentVersionBytes(ByteString value)

public UpgradeInfoEvent.Builder setCurrentVersionBytes(ByteString value)

The current version before the upgrade.

string current_version = 5;

Parameter
Name Description
value ByteString

The bytes for currentVersion to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setDescription(String value)

public UpgradeInfoEvent.Builder setDescription(String value)

A brief description of the event.

string description = 11;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public UpgradeInfoEvent.Builder setDescriptionBytes(ByteString value)

A brief description of the event.

string description = 11;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setEndTime(Timestamp value)

public UpgradeInfoEvent.Builder setEndTime(Timestamp value)

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeInfoEvent.Builder

setEndTime(Timestamp.Builder builderForValue)

public UpgradeInfoEvent.Builder setEndTime(Timestamp.Builder builderForValue)

The time when the operation ended.

.google.protobuf.Timestamp end_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpgradeInfoEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpgradeInfoEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

setOperation(String value)

public UpgradeInfoEvent.Builder setOperation(String value)

The operation associated with this upgrade.

string operation = 2;

Parameter
Name Description
value String

The operation to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setOperationBytes(ByteString value)

public UpgradeInfoEvent.Builder setOperationBytes(ByteString value)

The operation associated with this upgrade.

string operation = 2;

Parameter
Name Description
value ByteString

The bytes for operation to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpgradeInfoEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides

setResource(String value)

public UpgradeInfoEvent.Builder setResource(String value)

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

string resource = 7;

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public UpgradeInfoEvent.Builder setResourceBytes(ByteString value)

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

string resource = 7;

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setResourceType(UpgradeResourceType value)

public UpgradeInfoEvent.Builder setResourceType(UpgradeResourceType value)

The resource type associated with the upgrade.

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

Parameter
Name Description
value UpgradeResourceType

The resourceType to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setResourceTypeValue(int value)

public UpgradeInfoEvent.Builder setResourceTypeValue(int value)

The resource type associated with the upgrade.

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

Parameter
Name Description
value int

The enum numeric value on the wire for resourceType to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setStartTime(Timestamp value)

public UpgradeInfoEvent.Builder setStartTime(Timestamp value)

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeInfoEvent.Builder

setStartTime(Timestamp.Builder builderForValue)

public UpgradeInfoEvent.Builder setStartTime(Timestamp.Builder builderForValue)

The time when the operation was started.

.google.protobuf.Timestamp start_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpgradeInfoEvent.Builder

setState(UpgradeInfoEvent.State value)

public UpgradeInfoEvent.Builder setState(UpgradeInfoEvent.State value)

Output only. The state of the upgrade.

.google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UpgradeInfoEvent.State

The state to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setStateValue(int value)

public UpgradeInfoEvent.Builder setStateValue(int value)

Output only. The state of the upgrade.

.google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setTargetVersion(String value)

public UpgradeInfoEvent.Builder setTargetVersion(String value)

The target version for the upgrade.

string target_version = 6;

Parameter
Name Description
value String

The targetVersion to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setTargetVersionBytes(ByteString value)

public UpgradeInfoEvent.Builder setTargetVersionBytes(ByteString value)

The target version for the upgrade.

string target_version = 6;

Parameter
Name Description
value ByteString

The bytes for targetVersion to set.

Returns
Type Description
UpgradeInfoEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeInfoEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpgradeInfoEvent.Builder
Overrides