public static final class StyleGuideContents.Builder extends GeneratedMessageV3.Builder<StyleGuideContents.Builder> implements StyleGuideContentsOrBuilder
The style guide contents.
Protobuf type google.cloud.apihub.v1.StyleGuideContents
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StyleGuideContents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StyleGuideContents build()
buildPartial()
public StyleGuideContents buildPartial()
clear()
public StyleGuideContents.Builder clear()
Overrides
clearContents()
public StyleGuideContents.Builder clearContents()
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public StyleGuideContents.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMimeType()
public StyleGuideContents.Builder clearMimeType()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public StyleGuideContents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public StyleGuideContents.Builder clone()
Overrides
getContents()
public ByteString getContents()
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public StyleGuideContents getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMimeType()
public String getMimeType()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The mimeType.
|
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for mimeType.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(StyleGuideContents other)
public StyleGuideContents.Builder mergeFrom(StyleGuideContents other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StyleGuideContents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StyleGuideContents.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StyleGuideContents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContents(ByteString value)
public StyleGuideContents.Builder setContents(ByteString value)
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The contents to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public StyleGuideContents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMimeType(String value)
public StyleGuideContents.Builder setMimeType(String value)
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The mimeType to set.
|
setMimeTypeBytes(ByteString value)
public StyleGuideContents.Builder setMimeTypeBytes(ByteString value)
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for mimeType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StyleGuideContents.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StyleGuideContents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides