public static final class CreateRuleRequest.Builder extends GeneratedMessageV3.Builder<CreateRuleRequest.Builder> implements CreateRuleRequestOrBuilder
The request to create a new rule.
Protobuf type google.devtools.artifactregistry.v1.CreateRuleRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateRuleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateRuleRequest build()
public CreateRuleRequest buildPartial()
public CreateRuleRequest.Builder clear()
Overrides
public CreateRuleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateRuleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CreateRuleRequest.Builder clearParent()
Required. The name of the parent resource where the rule will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateRuleRequest.Builder clearRule()
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
public CreateRuleRequest.Builder clearRuleId()
The rule id to use for this repository.
string rule_id = 2;
public CreateRuleRequest.Builder clone()
Overrides
public CreateRuleRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getParent()
Required. The name of the parent resource where the rule will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
public ByteString getParentBytes()
Required. The name of the parent resource where the rule will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
Returns |
Type |
Description |
Rule |
The rule.
|
public Rule.Builder getRuleBuilder()
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
public String getRuleId()
The rule id to use for this repository.
string rule_id = 2;
Returns |
Type |
Description |
String |
The ruleId.
|
public ByteString getRuleIdBytes()
The rule id to use for this repository.
string rule_id = 2;
Returns |
Type |
Description |
ByteString |
The bytes for ruleId.
|
public RuleOrBuilder getRuleOrBuilder()
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
Returns |
Type |
Description |
boolean |
Whether the rule field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateRuleRequest.Builder mergeFrom(CreateRuleRequest other)
public CreateRuleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateRuleRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public CreateRuleRequest.Builder mergeRule(Rule value)
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
Parameter |
Name |
Description |
value |
Rule
|
public final CreateRuleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateRuleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateRuleRequest.Builder setParent(String value)
Required. The name of the parent resource where the rule will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
public CreateRuleRequest.Builder setParentBytes(ByteString value)
Required. The name of the parent resource where the rule will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
public CreateRuleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public CreateRuleRequest.Builder setRule(Rule value)
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
Parameter |
Name |
Description |
value |
Rule
|
public CreateRuleRequest.Builder setRule(Rule.Builder builderForValue)
The rule to be created.
.google.devtools.artifactregistry.v1.Rule rule = 3;
public CreateRuleRequest.Builder setRuleId(String value)
The rule id to use for this repository.
string rule_id = 2;
Parameter |
Name |
Description |
value |
String
The ruleId to set.
|
public CreateRuleRequest.Builder setRuleIdBytes(ByteString value)
The rule id to use for this repository.
string rule_id = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for ruleId to set.
|
public final CreateRuleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides