Class RenewLeaseRequest.Builder (0.11.0)

public static final class RenewLeaseRequest.Builder extends GeneratedMessageV3.Builder<RenewLeaseRequest.Builder> implements RenewLeaseRequestOrBuilder

Request message for renewing a lease.

Protobuf type google.cloud.visionai.v1.RenewLeaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenewLeaseRequest build()
Returns
Type Description
RenewLeaseRequest

buildPartial()

public RenewLeaseRequest buildPartial()
Returns
Type Description
RenewLeaseRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public RenewLeaseRequest.Builder clearId()

Lease id.

string id = 1;

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOwner()

public RenewLeaseRequest.Builder clearOwner()

Lease owner.

string owner = 3;

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

clearSeries()

public RenewLeaseRequest.Builder clearSeries()

Series name.

string series = 2;

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

clearTerm()

public RenewLeaseRequest.Builder clearTerm()

Lease term.

.google.protobuf.Duration term = 4;

Returns
Type Description
RenewLeaseRequest.Builder

clone()

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

getDefaultInstanceForType()

public RenewLeaseRequest getDefaultInstanceForType()
Returns
Type Description
RenewLeaseRequest

getDescriptorForType()

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

getId()

public String getId()

Lease id.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Lease id.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getOwner()

public String getOwner()

Lease owner.

string owner = 3;

Returns
Type Description
String

The owner.

getOwnerBytes()

public ByteString getOwnerBytes()

Lease owner.

string owner = 3;

Returns
Type Description
ByteString

The bytes for owner.

getSeries()

public String getSeries()

Series name.

string series = 2;

Returns
Type Description
String

The series.

getSeriesBytes()

public ByteString getSeriesBytes()

Series name.

string series = 2;

Returns
Type Description
ByteString

The bytes for series.

getTerm()

public Duration getTerm()

Lease term.

.google.protobuf.Duration term = 4;

Returns
Type Description
Duration

The term.

getTermBuilder()

public Duration.Builder getTermBuilder()

Lease term.

.google.protobuf.Duration term = 4;

Returns
Type Description
Builder

getTermOrBuilder()

public DurationOrBuilder getTermOrBuilder()

Lease term.

.google.protobuf.Duration term = 4;

Returns
Type Description
DurationOrBuilder

hasTerm()

public boolean hasTerm()

Lease term.

.google.protobuf.Duration term = 4;

Returns
Type Description
boolean

Whether the term field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenewLeaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTerm(Duration value)

public RenewLeaseRequest.Builder mergeTerm(Duration value)

Lease term.

.google.protobuf.Duration term = 4;

Parameter
Name Description
value Duration
Returns
Type Description
RenewLeaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public RenewLeaseRequest.Builder setId(String value)

Lease id.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

setIdBytes(ByteString value)

public RenewLeaseRequest.Builder setIdBytes(ByteString value)

Lease id.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

setOwner(String value)

public RenewLeaseRequest.Builder setOwner(String value)

Lease owner.

string owner = 3;

Parameter
Name Description
value String

The owner to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

setOwnerBytes(ByteString value)

public RenewLeaseRequest.Builder setOwnerBytes(ByteString value)

Lease owner.

string owner = 3;

Parameter
Name Description
value ByteString

The bytes for owner to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

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

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

setSeries(String value)

public RenewLeaseRequest.Builder setSeries(String value)

Series name.

string series = 2;

Parameter
Name Description
value String

The series to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

setSeriesBytes(ByteString value)

public RenewLeaseRequest.Builder setSeriesBytes(ByteString value)

Series name.

string series = 2;

Parameter
Name Description
value ByteString

The bytes for series to set.

Returns
Type Description
RenewLeaseRequest.Builder

This builder for chaining.

setTerm(Duration value)

public RenewLeaseRequest.Builder setTerm(Duration value)

Lease term.

.google.protobuf.Duration term = 4;

Parameter
Name Description
value Duration
Returns
Type Description
RenewLeaseRequest.Builder

setTerm(Duration.Builder builderForValue)

public RenewLeaseRequest.Builder setTerm(Duration.Builder builderForValue)

Lease term.

.google.protobuf.Duration term = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RenewLeaseRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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