Class AcquireLeaseRequest.Builder (0.12.0)

public static final class AcquireLeaseRequest.Builder extends GeneratedMessageV3.Builder<AcquireLeaseRequest.Builder> implements AcquireLeaseRequestOrBuilder

Request message for acquiring a lease.

Protobuf type google.cloud.visionai.v1.AcquireLeaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AcquireLeaseRequest build()
Returns
Type Description
AcquireLeaseRequest

buildPartial()

public AcquireLeaseRequest buildPartial()
Returns
Type Description
AcquireLeaseRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLeaseType()

public AcquireLeaseRequest.Builder clearLeaseType()

The lease type.

.google.cloud.visionai.v1.LeaseType lease_type = 4;

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOwner()

public AcquireLeaseRequest.Builder clearOwner()

The owner name.

string owner = 2;

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

clearSeries()

public AcquireLeaseRequest.Builder clearSeries()

The series name.

string series = 1;

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

clearTerm()

public AcquireLeaseRequest.Builder clearTerm()

The lease term.

.google.protobuf.Duration term = 3;

Returns
Type Description
AcquireLeaseRequest.Builder

clone()

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

getDefaultInstanceForType()

public AcquireLeaseRequest getDefaultInstanceForType()
Returns
Type Description
AcquireLeaseRequest

getDescriptorForType()

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

getLeaseType()

public LeaseType getLeaseType()

The lease type.

.google.cloud.visionai.v1.LeaseType lease_type = 4;

Returns
Type Description
LeaseType

The leaseType.

getLeaseTypeValue()

public int getLeaseTypeValue()

The lease type.

.google.cloud.visionai.v1.LeaseType lease_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for leaseType.

getOwner()

public String getOwner()

The owner name.

string owner = 2;

Returns
Type Description
String

The owner.

getOwnerBytes()

public ByteString getOwnerBytes()

The owner name.

string owner = 2;

Returns
Type Description
ByteString

The bytes for owner.

getSeries()

public String getSeries()

The series name.

string series = 1;

Returns
Type Description
String

The series.

getSeriesBytes()

public ByteString getSeriesBytes()

The series name.

string series = 1;

Returns
Type Description
ByteString

The bytes for series.

getTerm()

public Duration getTerm()

The lease term.

.google.protobuf.Duration term = 3;

Returns
Type Description
Duration

The term.

getTermBuilder()

public Duration.Builder getTermBuilder()

The lease term.

.google.protobuf.Duration term = 3;

Returns
Type Description
Builder

getTermOrBuilder()

public DurationOrBuilder getTermOrBuilder()

The lease term.

.google.protobuf.Duration term = 3;

Returns
Type Description
DurationOrBuilder

hasTerm()

public boolean hasTerm()

The lease term.

.google.protobuf.Duration term = 3;

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(AcquireLeaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTerm(Duration value)

public AcquireLeaseRequest.Builder mergeTerm(Duration value)

The lease term.

.google.protobuf.Duration term = 3;

Parameter
Name Description
value Duration
Returns
Type Description
AcquireLeaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLeaseType(LeaseType value)

public AcquireLeaseRequest.Builder setLeaseType(LeaseType value)

The lease type.

.google.cloud.visionai.v1.LeaseType lease_type = 4;

Parameter
Name Description
value LeaseType

The leaseType to set.

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

setLeaseTypeValue(int value)

public AcquireLeaseRequest.Builder setLeaseTypeValue(int value)

The lease type.

.google.cloud.visionai.v1.LeaseType lease_type = 4;

Parameter
Name Description
value int

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

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

setOwner(String value)

public AcquireLeaseRequest.Builder setOwner(String value)

The owner name.

string owner = 2;

Parameter
Name Description
value String

The owner to set.

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

setOwnerBytes(ByteString value)

public AcquireLeaseRequest.Builder setOwnerBytes(ByteString value)

The owner name.

string owner = 2;

Parameter
Name Description
value ByteString

The bytes for owner to set.

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

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

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

setSeries(String value)

public AcquireLeaseRequest.Builder setSeries(String value)

The series name.

string series = 1;

Parameter
Name Description
value String

The series to set.

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

setSeriesBytes(ByteString value)

public AcquireLeaseRequest.Builder setSeriesBytes(ByteString value)

The series name.

string series = 1;

Parameter
Name Description
value ByteString

The bytes for series to set.

Returns
Type Description
AcquireLeaseRequest.Builder

This builder for chaining.

setTerm(Duration value)

public AcquireLeaseRequest.Builder setTerm(Duration value)

The lease term.

.google.protobuf.Duration term = 3;

Parameter
Name Description
value Duration
Returns
Type Description
AcquireLeaseRequest.Builder

setTerm(Duration.Builder builderForValue)

public AcquireLeaseRequest.Builder setTerm(Duration.Builder builderForValue)

The lease term.

.google.protobuf.Duration term = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AcquireLeaseRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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