Class ReportInstanceInfoRequest.Builder (1.10.0)

public static final class ReportInstanceInfoRequest.Builder extends GeneratedMessageV3.Builder<ReportInstanceInfoRequest.Builder> implements ReportInstanceInfoRequestOrBuilder

Request for notebook instances to report information to Notebooks API.

Protobuf type google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReportInstanceInfoRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

build()

public ReportInstanceInfoRequest build()
Returns
TypeDescription
ReportInstanceInfoRequest

buildPartial()

public ReportInstanceInfoRequest buildPartial()
Returns
TypeDescription
ReportInstanceInfoRequest

clear()

public ReportInstanceInfoRequest.Builder clear()
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ReportInstanceInfoRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

clearMetadata()

public ReportInstanceInfoRequest.Builder clearMetadata()
Returns
TypeDescription
ReportInstanceInfoRequest.Builder

clearName()

public ReportInstanceInfoRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReportInstanceInfoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

clearVmId()

public ReportInstanceInfoRequest.Builder clearVmId()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.

clone()

public ReportInstanceInfoRequest.Builder clone()
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

containsMetadata(String key)

public boolean containsMetadata(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ReportInstanceInfoRequest getDefaultInstanceForType()
Returns
TypeDescription
ReportInstanceInfoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getVmId()

public String getVmId()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The vmId.

getVmIdBytes()

public ByteString getVmIdBytes()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for vmId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportInstanceInfoRequest other)

public ReportInstanceInfoRequest.Builder mergeFrom(ReportInstanceInfoRequest other)
Parameter
NameDescription
otherReportInstanceInfoRequest
Returns
TypeDescription
ReportInstanceInfoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReportInstanceInfoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReportInstanceInfoRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportInstanceInfoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

putAllMetadata(Map<String,String> values)

public ReportInstanceInfoRequest.Builder putAllMetadata(Map<String,String> values)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ReportInstanceInfoRequest.Builder

putMetadata(String key, String value)

public ReportInstanceInfoRequest.Builder putMetadata(String key, String value)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ReportInstanceInfoRequest.Builder

removeMetadata(String key)

public ReportInstanceInfoRequest.Builder removeMetadata(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
ReportInstanceInfoRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReportInstanceInfoRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

setName(String value)

public ReportInstanceInfoRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReportInstanceInfoRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.

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

public ReportInstanceInfoRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReportInstanceInfoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportInstanceInfoRequest.Builder
Overrides

setVmId(String value)

public ReportInstanceInfoRequest.Builder setVmId(String value)

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The vmId to set.

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.

setVmIdBytes(ByteString value)

public ReportInstanceInfoRequest.Builder setVmIdBytes(ByteString value)

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for vmId to set.

Returns
TypeDescription
ReportInstanceInfoRequest.Builder

This builder for chaining.