Class CreateMonitoredProjectRequest.Builder (0.36.0)

public static final class CreateMonitoredProjectRequest.Builder extends GeneratedMessageV3.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder

Request for the CreateMonitoredProject method.

Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMonitoredProjectRequest build()
Returns
Type Description
CreateMonitoredProjectRequest

buildPartial()

public CreateMonitoredProjectRequest buildPartial()
Returns
Type Description
CreateMonitoredProjectRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMonitoredProject()

public CreateMonitoredProjectRequest.Builder clearMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMonitoredProjectRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMonitoredProjectRequest.Builder clearParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMonitoredProjectRequest getDefaultInstanceForType()
Returns
Type Description
CreateMonitoredProjectRequest

getDescriptorForType()

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

getMonitoredProject()

public MonitoredProject getMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProject

The monitoredProject.

getMonitoredProjectBuilder()

public MonitoredProject.Builder getMonitoredProjectBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProject.Builder

getMonitoredProjectOrBuilder()

public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MonitoredProjectOrBuilder

getParent()

public String getParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasMonitoredProject()

public boolean hasMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the monitoredProject field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMonitoredProjectRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MonitoredProject
Returns
Type Description
CreateMonitoredProjectRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MonitoredProject
Returns
Type Description
CreateMonitoredProjectRequest.Builder

setMonitoredProject(MonitoredProject.Builder builderForValue)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MonitoredProject.Builder
Returns
Type Description
CreateMonitoredProjectRequest.Builder

setParent(String value)

public CreateMonitoredProjectRequest.Builder setParent(String value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMonitoredProjectRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateMonitoredProjectRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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